Overhauling the $MailCommand bit

The config varibles $MailCommand, $SendmailArguments, and
$SendmailPath frequently confuse users. I was going to suggest
re-naming them, but I’m not sure what to rename them too, and after
staring at the code I think it needs to be tweaked a bit.

I’m not yet sure how. Has anyone thought much about this? When I
figure out how I think it should work, I’ll send a patch, but I
haven’t figured that out yet.

seph

That’s where I made few extra loops today when installing RT on Solaris 8.

The issues are:

1). With default mail settings, RT doesn’t send any message at
all, with no error diagnostics.

2). First thing that I saw in the config, was about “sendmailpipe”.
Until I looked into the code (grep sendmailpipe //*), it wasn’t clear
what I should change.

3). Only after that, I found that sendmail path is invalid: it must
be /usr/lib/sendmail, instead of in /usr/sbin. Isn’t that the default
path for most systems?

4). Finally it required masquerading, because default solaris
sendmail.cf rewrites From: addresses into the host’s name.
This isn’t RT issue, but nice to know.

In fact, those with sendmail are the only Solaris-specific issues
that I encountered. Tomorrow I’ll write a short OS note that Jesse
can add to the installation guide.

So, first thing that I would change, is putting $SendmailPath
to be the first mail-related config option.
And it should be verified somehow at installation or runtime.

Regards,
Stan— seph seph@commerceflow.com wrote:

The config varibles $MailCommand, $SendmailArguments, and
$SendmailPath frequently confuse users. I was going to suggest
re-naming them, but I’m not sure what to rename them too, and after
staring at the code I think it needs to be tweaked a bit.

I’m not yet sure how. Has anyone thought much about this? When I
figure out how I think it should work, I’ll send a patch, but I
haven’t figured that out yet.

Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2

Stanislav Sinyagin wrote:

3). Only after that, I found that sendmail path is invalid: it must
be /usr/lib/sendmail, instead of in /usr/sbin. Isn’t that the default
path for most systems?

Only on systems with historically broken filesystem layout.
I thought Solaris had finally got this right, guess I was
mistaken. sendmail is not a library. it does not belong
in /usr/lib.
Phil Homewood, Systems Janitor, www.SnapGear.com
pdh@snapgear.com Ph: +61 7 3435 2810 Fx: +61 7 3891 3630
SnapGear - Custom Embedded Solutions and Security Appliances