Operating System - HP-UX
1755847 Members
4966 Online
108838 Solutions
New Discussion юеВ

Re: sendmail: want outgoing mail not to have sending system name

 
SOLVED
Go to solution
B. Chapman
Frequent Advisor

sendmail: want outgoing mail not to have sending system name

How do I configure sendmail so that the system I am sending email from will hide the system name. Ex. system is server1.hp.com want outgoing email sent without hostname -xxxx.hp.com or just hp.com.
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: sendmail: want outgoing mail not to have sending system name

First step:

in /etc/mail/sendmail.cf

Change:

#Dj$w.Foo.Com

to

Djwhateveryouwant

Save it

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

This will not make your mail untraceable. There will be a IP address in the log of each message accepted on the target server's mail log.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
B. Chapman
Frequent Advisor

Re: sendmail: want outgoing mail not to have sending system name

THanks.
Shannon Petry
Honored Contributor
Solution

Re: sendmail: want outgoing mail not to have sending system name

You need to change the class of server, changing the $j will not have impact on this problem.

Edit sendmail.cf (normally in /etc/mail) and search for "CE root".

Change that entry to "CM root"

This will remove the hostname.domain and replace it with simply domain.

Note: This will only change mail from the server where the change is made. Incoming mail can not have the address changed by sendmail.

Sincerely,
Shannon Petry
Microsoft. When do you want a virus today?
Dave La Mar
Honored Contributor

Re: sendmail: want outgoing mail not to have sending system name

Actually, I just tried bot of the above and neither seemed to meet your criteria.
To do what you asked I changed:

# who I masquerade as (null for no masquerading) (see also $=M)
DM gumbo

Stopped and started sendmail. The mail sent came from username@gumbo after making the change.

Best of luck.

Regards,

dl
"I'm not dumb. I just have a command of thoroughly useless information."