Operating System - HP-UX
1828354 Members
2939 Online
109976 Solutions
New Discussion

Sendmail from address question

 
joe_91
Super Advisor

Sendmail from address question

I have two servers (both are mail client). on server A when i send the email, the response back is from "username@domainname.company.com (like in joe@vcs.abc.com) on server B the response is from "username@servername.domainname.company.com (like joe@crusader.vcs.abc.com). We want the email like in serverB which includes the server address. Where should the change be made on serverA so that it is same as serverB?

Thanks

Joe
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: Sendmail from address question

Shalom,

I generally handle this with a script.

The attached script does what you want, and a few other things like sending an attachment.

http://www.hpux.ws/?p=7

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
joe_91
Super Advisor

Re: Sendmail from address question

Steven

Thanks..is there a way i can change the sendmail.cf to acheive the desired result?

Thanks

Joe
Dennis Handly
Acclaimed Contributor

Re: Sendmail from address question

>We want the email like in serverB which includes the server address. Where should the change be made on serverA so that it is same as serverB?

This is exactly backwards than the way I want things. I.e. I don't want anyone to know about servers but have all mail sent to a central domain site.

But the way I achieve A is to set the DM macro in serverA. So you need to comment that macro out and then restart sendmail.
TTr
Honored Contributor

Re: Sendmail from address question

Checkout the "DM" setting in sendmail.cf on serverB and remove any settings that have been added there. That is the "DM" should be all by itself on the begining of the line.
Compare it with serverA if you like to verify.
TTr
Honored Contributor

Re: Sendmail from address question

It should be for serverA.

Also I agree with Dennis on hiding the servername specially if the email message goes outside the company. However if the message stays within your company you probably want to know which server the mail comes from for a specific user, such as oracle. You can also leave the DM setting alone and utilize the CE class to exclude users from the DM rule by adding them in the CE class. The root account is in the CE class by default.