OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: translating just the domain name (for all users in the domain)

From: Wietse Venema (wietseporcupine.org)
Date: Wed May 19 2010 - 14:13:14 CDT


Phil Howard:
[ Charset ISO-8859-1 unsupported, converting... ]
> On Wed, May 19, 2010 at 12:10, Noel Jones <njonesmegan.vbhcs.org> wrote:
>
> > While postfix does support wildcard domain > domain rewriting, it is highly
> > discouraged because it disables recipient validation -- that tends to fill
> > your queue with undeliverable mail and will get you blacklisted as a
> > backscatter source.
> >
>
> So it doesn't perform any form of domain-only mapping at RCPT TO time?
>
> What about a regexp form like:
>
> /^(.*)example\.com$/ ${1}example.net <1%7Dexample.net>
>

Don't do that.

Postfix will accept mail for addresses that don't exist and later
bounce that mail to innocent people.

        Wietse
>
>
>
> > As an alternative, you may be able to use smtp_generic_maps to rewrite the
> > destination domain on the fly during delivery. See:
> > http://www.postfix.org/ADDRESS_REWRITING_README.html#generic
> >
>
> I do want the username checked during SMTP arrival time. Will it do so for
> the virtual_alias_maps if I use regexp: format?