Operating System - HP-UX
1846591 Members
2213 Online
110256 Solutions
New Discussion

Re: sendmail masquerading

 
Jay D Koonz
Occasional Advisor

sendmail masquerading

I want to change my mail from my unix servers so it shows as coming from "usco.com" instead of "servername.usco.com"
my latest attempt at the xxx.mc file added the following to the generic sample.

FEATURE(`masquerade_envelope')dnl
FEATURE(`masquerade_entire_domain')dnl
MASQUERADE_AS(usco.com)dnl
MASQUERADE_DOMAIN(usco.com)dn

What am I missing here ?
Ride Boldly Ride, but watch out for El Dorados
2 REPLIES 2
benoit Bruckert
Honored Contributor

Re: sendmail masquerading

Hi,
You can remove the last line (Masquerade_domain)
and add this feature :
GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')dnl

you store in /etc/mail/generics-domains :
servername
servername.yourdomain.com

In fact, it means that you will masq all mails coming from host of this file.

You can also to check before recreate the cf file, change directly sendmail.cf, and uncomment the CM line to add :
CM servername servername.yourdomain.com

don't forget to kill -1 your sendmail PID to read the new conf file..

hope it may help


Une application mal pansée aboutit à une usine à gaze (GHG)
U.SivaKumar_2
Honored Contributor

Re: sendmail masquerading

hi,
You may be sending mails as a exposed user in sendmail. The masquerading will done for all except the exposed users .
This is the macro in sendmail.mc
EXPOSED_USER(usernames)

That adds the below line in /etc/sendmail.cf
C{E}root
So if you send a mail as root ( exposed user ) the server name will not be masqueraded as domain name.

So edit /etc/sendmail.cf and remove root and line should be like this,
C{E]
Hope it will work now.

regards,
U.SivaKumar

Innovations are made when conventions are broken