Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
cancel
Showing results for 
Search instead for 
Did you mean: 

send mail

Chakravarthi
Trusted Contributor

send mail

how to hide the hostname while sending mail through sendmail??
2 REPLIES
Alexander Chuzhoy
Honored Contributor

Re: send mail

Hi.
edit the file /etc/mail/sendmail.mc
locate the line that includes:
EXPOSED_USER...
put dnl in fron of it so it'll look like this
dnl EXPOSED_USER
then look for line that includes:
dnl MASQUERADE_AS(`mydomain.com')
and remove the preceding dnl and replace mydomain.com with your domain name.

save your change.
do:
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
and
service sendmail restart

Then it'll work...
Steven E. Protter
Exalted Contributor

Re: send mail

You can do several things:

You can use the Dj directive in sendmail.cf

You can change the actual hostname of the machine.

In the end though, be aware that your public Internet IP address will be associated with the mail logs, even if you use a relay server, it will show up on those logs.

There is no such thing as anonymous mail.

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