Page 1 of 1

server name appears on email

Posted: Tue Mar 28, 2006 1:17 am
by steves
I'm sending a sample email from root to user steves

[root@m1 mail]# echo 123 |mail -s 123 steves@metrofire.com.au

When I look in Outlook the email comes from
root@m1.metrofire.com.au

Why does "m1" (server name) appears in the email? I run Mailscanner.
I added m1.metrofire.com.au to /etc/mail/local-host-names but it hasn't made any differences.

Posted: Tue Mar 28, 2006 2:11 am
by ScalixSupport
Root is a specific user that is not masqueraded.

You need to edit /etc/mail/sendmail.cf and change the line

Code: Select all

C{E}root
and restart sendmail.

Cheers

Dave

Posted: Tue Mar 28, 2006 7:57 pm
by steves
So remove "root" from that line, you are saying?

The second line in sendmail.cf has "localhost.localdomain" is that correct?


C{E}root
C{w}localhost.localdomain

Thanks

Posted: Wed Mar 29, 2006 5:09 am
by ScalixSupport
You can remove that line.

Cheers,

Sascha.