1753326 Members
5051 Online
108792 Solutions
New Discussion юеВ

Re: sendmail aderess

 
Jos de Ruiter
Advisor

sendmail aderess

Hi,
I have a unix server (11.00) call srv01.testje.nl,
So when a send a mail, the reciever an the recievd mail sever see's root@srv01.testje.nl

I want that both systeems see root@testje.nl

I have try the -F option but the mail recievd mailserver see's root@srv01.testje.nl

Thanks!
Jozef
Jos de Ruiter
5 REPLIES 5
U.SivaKumar_2
Honored Contributor

Re: sendmail aderess

Hi,

Edit sendmail.cf and put this line.

DM testje.nl

restart sendmail.

regards,

U.SivaKumar

Innovations are made when conventions are broken
Jos de Ruiter
Advisor

Re: sendmail aderess

I have add the line in sendmail.cf, but nothing change, hier are the two line's

This is the one who already is in the file:
Dj$w.testje.nl

And i add line: at your request
DM testje.nl

Thanks,
Jozef.
Jos de Ruiter
Michael Steele_2
Honored Contributor

Re: sendmail aderess

DM is for "masquarade" and "Dj" is for sendmail domains.

This reads the FQDN from /etc/hosts.

Dj$w

Don't forget to:

/sbin.init.d/sendmail stop
/sbin/init.d/sendamil start

You may also have a problem with /etc/resolv.conf and how DNS and /etc/hosts appear. So test with 'nslookup' for the FQDN.

nslookup x.x.x.x
nslookup hostname

Default /etc/resolv.conf file exists in /usr/newconfig/etc.
Support Fatherhood - Stop Family Law
Kasper Haitsma
Trusted Contributor

Re: sendmail aderess

Hi Jozef,

The restarting of the sendmail after changing of sendmail.cf is only needed for the receiving daemon. Sending takes immediate advantage of the sendmail.cf changes, so you can leave the restart to after you are satisfied with your changes.

Good working name resolving is also crucial for sendmail. hp-ux sendmail will always try DNS first, when it is mentioned in /etc/resolv.conf for the hosts line.

Now to the 'root' of your question. In sendmail.cf there is also a parameter CE 'Names that should be exposed, even if we masquerade'. You could remove root from this list (default, only root is there). However, what if someone wants to reply to the mail sent by root@testje.nl If you have for example 3 unix machines, there are 3 potential recipients, where it should go. If you want it delivered on your central mailserver, you need a mail-user root, or an alias so that the responsable user will get these mail addressed for root@testje.nl

Hope this helps

Kasper
It depends
Berlene Herren
Honored Contributor

Re: sendmail aderess

Also, make sure there is no space between the DM and testje.nl, and recycle sendmail.

Berlene
http://www.mindspring.com/~bkherren/dobes/index.htm