Cool, thanks for the response. I'm in the process of setting this up right
now, but while I do that, I have a couple quick questions:

1) This seems like it might redirect *all* mail coming from
from_address@domain to new_to_address@anotherdomain. That's not quite what
I want. In my first example, pers...@gmail.com might be subscribed to more
than one mailing list, so I need to redirect based both on the sender and
the mailing list. I can see that this wasn't clear from my first email, so
sorry about that. To be absolutely clear,

an email from pers...@gmail.com to mail...@example.com should go to
mailm...@lists.example.com,

an email from pers...@gmail.com to another_l...@example.com should go to
another_li...@lists.example.com <mailm...@lists.example.com>,

an email from pers...@gmail.com to mail...@example.com should go to
mailm...@lists.example.com

2) I assume it's possible to enter the redirect mappings into a mysql
database directly, rather than write the mapping in a file, right? (e.g.: I
enter my aliases in the way described here:
http://flurdy.com/docs/postfix/#data)


Thanks for your help!

On Thu, May 31, 2012 at 9:36 AM, Robert Wysocki
<robert.wyso...@contium.pl>wrote:

> 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
>
>
>

Reply via email to