OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: Migrating from sendmail, a few questions...

From: Wietse Venema (wietseporcupine.org)
Date: Mon Aug 30 2010 - 08:43:43 CDT


Jean-Yves Avenard:
> > I thought I could add something like this in the canonical file:
> > /^(reg)-(.*)-(.*)$/ ${2}
> >
> > However, I read in a few place that this would break recipient validation.
>
> Should add that while with the canonical above I do get the email to
> the proper mailbox delivered, the recipient is being rewritten to the
> simple form instead.
> so if I send to reg-jya-likelyspammerdomain.com, the recipient I can
> see in the mail client is jyadomain.com

I kindly suggest that you read the manual (RTFM) before asking
questions that are already answered there.

Canonical mappings can rewrite the envelope addresses (i.e. what
Postfix delivers) without changing the addresses in the message
header (i.e. what the mail client shows).

http://www.postfix.org/ADDRESS_REWRITING_README.html

If it is not documented, then it is not supported.

        Wietse