Thanks Peter for the explanaition and for pointing me to the right direction to look at. I tried it and it works great. Now the thing is to make postfixadmin be able to create these aliases (which is not because so far as I saw it checks if the alias already exists and by default it creates a new alias with the same name of every new mailbox created). If anyone will be interested, I'll try to send a patch for this in the ML, unless I'll find a patch already avaliable. Thanks again! Alex
2012/1/28 Peter Ajamian <pe...@pajamian.dhs.org> > 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 >