Dnia 2012-05-30, śro o godzinie 22:08 +0100, t t pisze: > Hi, > > > I'm using postfix aliases for mapping incoming emails to my mailman > mailing lists, as described in the "Adding MySQL aliases" of this > guide: > > > http://freemars.org/howto/mailman.html#conadd > > > What I'd like to do is to make this mapping sender-dependent. For > instance, a mail from pers...@gmail.com to mail...@example.com should > go to mailm...@lists.example.com, but a mail from pers...@gmail.com to > mail...@example.com should go to mailm...@lists.example.com. (Here, > mailman1 and mailman2 are two completely separate mailing lists.) > > > Is there a simple way to configure postfix to do this? I've seen the > sender dependent functionality like sender dependent transport map, > but I'm still a little unclear about how to accomplish what I want. > > > I'm sorry if this turns out to be trivial. I've been searching around > for a couple hours for an answer to this question to no avail, so I > figured I'd ask here. > > Hi t t,
You can use sender-dependant aliases like that: main.cf: smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/sender_access sender_access: from_address@domain redirect new_to_address@anotherdomain Regards, -- Robert Wysocki administrator systemów linuksowych Contium S.A., http://www.contium.pl