On 9/15/2015 9:25 AM, Mario Rosic wrote: > Hello, > > I am using aliases in /etc/postfix/virtual a lot, they allow me to > register with a different address on every website and to throw away > that address if it receives spam. > > However, I would like to be able to "send" from those aliases too > _without_ creating additional virtual mailbox users. > > Example: > I would like to create a new alias called post...@rosicmario.eu (to > receive mail) AND a rewrite rule that changes the sender from > m...@rosicmario.eu to post...@rosicmario.eu ONLY IF the the recipient is > postfix-users@postfix.org. > > Is that even possible with postfix? > > Regards, > Mario rosic >
Postfix does not implement conditional address rewriting. You may be able to do your conditional rewriting with an external milter or proxy filter. -- Noel Jones