1847836 Members
6278 Online
104021 Solutions
New Discussion

Re: mail alias

 
SOLVED
Go to solution
skt_skt
Honored Contributor

mail alias

HP-UX 11.00
sendmail 8.9.3.1

here is the alias details.what we are trying to achieve is the mail send to afshil@hostname.yyy.zzz.com will be redirected to the mailbox afshil@zzz.com which is configured in the windows/exchange server.this part works fine.

# grep afshil /etc/mail/aliases.local
afshil : afshil@zzz.com


The other part is the mail send from afshil@hostname.yyy.zzz.com should be seen as coming afshil@zzz.com. But i am not sure if i can achive that by modifying something in UNIX.
why we need this way is the destination mail box (out side our domain) accepts mail from only zzz.com not from hostname.yyy.zzz.com

let me know if any one has something similar implemented.

2 REPLIES 2
Bob E Campbell
Honored Contributor
Solution

Re: mail alias

Edit the file /etc/mail/sendmail.cf and look for "DM" or the term [Mm]asquerade. I *think* that changing the value to "DMzzz.com" is what you need, but then I only play with sendmail every 5 years or so...
skt_skt
Honored Contributor

Re: mail alias

opted for "sendmail -f" which does the same magic.