Sendmail configuration and changing "from" addresses

Steven J. Norton yellowdog-general@lists.terrasoftsolutions.com
Thu May 6 09:20:01 2004


Hello, all:

In my continuing journey to secure my web server, I've been trying to set up
a log monitoring system (LogWatch) to keep an eye on system logs. It seems
to work ok, but my main problem is with getting its reports.

Since I don't really want to read separate mail directly on the server, I've
been trying to set things up so that the reports are mailed to a regular
account that I check. This would seem to be straightforward, except that I
have continued to have problems with my ISP's server balking at the
messages' "from" line: <root@localhost.localdomain>. I believe I've done all
the steps to configure generic addresses and domain aliases in sendmail
(using Webmin and having installed the sendmail-cf configuration package),
but nothing seems to change the outgoing address. This, of course, then gets
bounced back.

Details:
YDL 3.01 on a Powermac G3 desktop

Sendmail and sendmail-cf up to date (sendmail 8.12.8-9.90)

Logwatch config is set to "MailTo = root" (had similar problems when sent
directly to my account) and "mailer = /bin/mail"

Mail.rc includes "set sendmail=/usr/sbin/sendmail" (just to be sure it was
using all the fancy configurations)

Sendmail is configured to replace outgoing addresses with an address in my
public domain (but hasn't been doing so), and to alias the
"localhost.localdomain" with my public domain (but, again, has not).
A user alias is set for root to my regular address, so that I do eventually
get the error messages, but not the messages directly.

I've spent way too much time on this, but I figured it will be a problem
that crops up a lot if I want to be notified of system events via a public
e-mail address. Any ideas?

Thanks,
Steve Norton