OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: aliases, envelope, and rewrite

From: Victor Duchovni (Victor.DuchovniMorganStanley.com)
Date: Wed Mar 08 2006 - 06:42:31 CST


On Wed, Mar 08, 2006 at 03:27:53AM -0800, Eric Andrews wrote:

> I apologize in advance for the seemingly simple question. I've read
> the docs and even bought the O'Reilly Postfix book, but I can't seem
> to put all the techniques together to get what I want working. I
> appreciate any and all help/pointers.
>
> If I have an alias that points to 10 different email addresses, how do I also:
> a) rewrite the "From:" to a valid address on the outgoing messages? (I
> think I've got this one)

With Postfix 2.2 and later:

    http://www.postfix.org/postconf.5.html#smtp_generic_maps

With Postfix 2.0 and 2.1:

    http://www.postfix.org/postconf.5.html#canonical_maps
    http://www.postfix.org/postconf.5.html#virtual_alias_maps

With Postfix 1.x:

    http://www.postfix.org/postconf.5.html#canonical_maps
    http://www.postfix.org/postconf.5.html#virtual_maps

Use canonical(5) to map internal -> external, and virtual(5) to
map external -> internal. This will leave the envelope recipient
in internal (delivery mailbox) form, while all other addresses
will be external.

> b) envelope the message to each individual address in the alias' list?
> (rewrite? if so, how?)

This is not clear. Aliases(5) deliver local mail (domain in mydestination)
to all the addresses on the list.

> c) prevent anyone from outside my domain sending a message to the
> alias? (relay control? if so, where and how?)

    http://www.postfix.org/RESTRICTION_CLASS_README.html#internal

--
        Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:majordomopostfix.org?body=unsubscribe%20postfix-users>

If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.