How to rewrite recipient address in both envelope and header

Hi All,

I have a requirement to rewrite all mails coming to
[at] secure.mydomain.com to [at] mydomain.com.

For eg., my sendmail server has to accept mail for
RameshD [at] secure.mydomain.com and rewrite the recipient address in
envelope and header to RameshD [at] mydomain.com.

I have tried MASQUERADE but no luck.

Regards,
D Ramesh.
Ramesh D [ Di, 11 September 2007 22:30 ] [ ID #1818026 ]

Re: How to rewrite recipient address in both envelope and header

Ramesh D <mailto.d.ramesh [at] gmail.com> writes:
> I have a requirement to rewrite all mails coming to
> [at] secure.mydomain.com to [at] mydomain.com.
>
> For eg., my sendmail server has to accept mail for
> RameshD [at] secure.mydomain.com and rewrite the recipient address in
> envelope and header to RameshD [at] mydomain.com.
>
> I have tried MASQUERADE but no luck.

You can use FEATURE(`domaintable') to rewrite *ALL* addresses
( headers & envelope, sender & recipient ):
http://www.sendmail.org/m4/features.html#domaintable

domaintable entry:
secure.mydomain.com mydomain.com

--
[pl>en: Andrew] Andrzej Adam Filip : anfi [at] priv.onet.pl : anfi [at] xl.wp.pl
What excuses stand in your way? How can you eliminate them?
-- Roger von Oech
Andrzej Filip [ Di, 11 September 2007 22:51 ] [ ID #1818027 ]
Miscellaneous » comp.mail.sendmail » How to rewrite recipient address in both envelope and header

Vorheriges Thema: cannot received email from pop3
Nächstes Thema: Question about greet-pause