On 29/01/12 00:00, Alessandro Vicari wrote:
> Thanks Peter, but I think I didn't make myself clear.
> Let me try in a different way, without useless details
> I need this 2 configurations:
> - create a mailbox and configure it to forward all the incoming messages
> to another mailbox without storing it (deleting the message from the
> original recipient): for example a message to foobar@ has to be
> forwarded to foo@ and in foo@ I don't need to keep the message;
> - create a mailbox and configure it to forward all the incoming messages
> to another mailbox and to keep the message; for example a message to
> foobar@ has to be forwarded to foo@ and the message has to be present in
> both mailbox.

alias_maps (or virtual_alias_maps) can do both of these things.  You can
have a mailbox that is f...@example.com and an alias that looks like this:
f...@example.com f...@example.com,b...@example.com

The alias will cause a copy to be delivered to f...@example.com and
another copy to be forwarded to b...@example.com (the above is an example
for virtual aliases, local ones would be similar).

>From your original email:
> I know I can use aliases but I need to let the "alias" address
> authenticate on postfix in order to send emails.

You need to separate the concept of aliases from that of SASL AUTH.  You
can alias anything you want, and you can auth with any username/password
combination you want, they are separate beasts.  Aliases are controlled
with alias_maps (or virtual_alias_maps) and the authentication is done
via your SASL AUTH daemon (most likely dovecot).


Peter

Reply via email to