Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

mail-routing by sender-address ?

0 views
Skip to first unread message

Daniel "demon" Klein

unread,
Aug 10, 2003, 8:38:35 AM8/10/03
to
Hello

I have browsed through the documentatin and FAQs but found no solution to
my problem.

We want to use a mailserver for our lan, beside local delivery it should
also route mail to external relays. The problem is that the users here use
different services for mail.
So, my question is: Is there a chance to configure postfix in a way that
it routes mails based on the sender-address ?
Like user1@foo to relay smtp.foo and user2@bar to relay smtp.bar ?

Because the connection is dialup it would be interessting to clear the
queue by telling it to send only mails for *@foo or *@bar.


Thanks for you time...

Daniel

Roman Neuhauser

unread,
Aug 10, 2003, 8:48:43 AM8/10/03
to
# ryz...@gmx.de / 2003-08-10 14:34:57 +0200:

> I have browsed through the documentatin and FAQs but found no solution to
> my problem.
>
> We want to use a mailserver for our lan, beside local delivery it should
> also route mail to external relays. The problem is that the users here use
> different services for mail.
> So, my question is: Is there a chance to configure postfix in a way that
> it routes mails based on the sender-address ?
> Like user1@foo to relay smtp.foo and user2@bar to relay smtp.bar ?

AFAICT postfix experimental snapshots have such a feature.
search the archives for sender based routing.

--
If you cc me or remove the list(s) completely I'll most likely ignore
your message. see http://www.eyrie.org./~eagle/faqs/questions.html

Wietse Venema

unread,
Aug 10, 2003, 10:25:49 AM8/10/03
to
Roman Neuhauser:

> # ryz...@gmx.de / 2003-08-10 14:34:57 +0200:
> > I have browsed through the documentatin and FAQs but found no solution to
> > my problem.
> >
> > We want to use a mailserver for our lan, beside local delivery it should
> > also route mail to external relays. The problem is that the users here use
> > different services for mail.
> > So, my question is: Is there a chance to configure postfix in a way that
> > it routes mails based on the sender-address ?
> > Like user1@foo to relay smtp.foo and user2@bar to relay smtp.bar ?
>
> AFAICT postfix experimental snapshots have such a feature.
> search the archives for sender based routing.

Beware, this does not work for undeliverable mail that must be
returned to the sender. Such mail has a fixed sender address (the
null string) and will therefore be given to the wrong relay.

Wietse

0 new messages