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.
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