rewrite recipient before sending to internal relay via MAIL_HUB

rewrite recipient before sending to internal relay via MAIL_HUB

am 08.09.2007 09:46:03 von rsurfer

scenerio...
i have a host called dmz doing inbound/outbound for 1 xyz.com
dmz has a MAIL_HUB set for xyz.com to go to a host inside named
charlie. charlie wants to receive the mail as it came in to dmz,
user@xyz.com. instead sendmail sends it to user@charlie.

can i rewrite this back to the original on finding @charlie before it
is sent to the hub?

Thank you!

Re: rewrite recipient before sending to internal relay via MAIL_HUB

am 09.09.2007 01:17:17 von per

In article <1189237563.670004.310180@r34g2000hsd.googlegroups.com>
rsurfer writes:
>scenerio...
>i have a host called dmz doing inbound/outbound for 1 xyz.com
>dmz has a MAIL_HUB set for xyz.com to go to a host inside named
>charlie. charlie wants to receive the mail as it came in to dmz,
>user@xyz.com. instead sendmail sends it to user@charlie.
>
>can i rewrite this back to the original on finding @charlie before it
>is sent to the hub?

Better to not rewrite it wrongly in the first place - instead of
MAIL_HUB, use mailertable with

xyz.com esmtp:charlie

- this won't modify the recipient address.

--Per Hedeland
per@hedeland.org

Re: rewrite recipient before sending to internal relay via MAIL_HUB

am 08.10.2007 02:24:19 von Joe Maimon

On Sep 8, 3:46 am, rsurfer wrote:
> scenerio...
> i have a host called dmz doing inbound/outbound for 1 xyz.com
> dmz has a MAIL_HUB set for xyz.com to go to a host inside named
> charlie. charlie wants to receive the mail as it came in to dmz,
> u...@xyz.com. instead sendmail sends it to user@charlie.
>
> can i rewrite this back to the original on finding @charlie before it
> is sent to the hub?
>
> Thank you!

http://www.jmaimon.com/sendmail/#preserve_domain_luser_relay