server name appears on email

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

steves
Posts: 23
Joined: Mon Mar 20, 2006 10:02 pm

server name appears on email

Postby steves » Tue Mar 28, 2006 1:17 am

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.

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Tue Mar 28, 2006 2:11 am

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

steves
Posts: 23
Joined: Mon Mar 20, 2006 10:02 pm

Postby steves » Tue Mar 28, 2006 7:57 pm

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

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Wed Mar 29, 2006 5:09 am

You can remove that line.

Cheers,

Sascha.


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 8 guests