OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Postfix Archives: Re: 2 SMTP Relays, depending on the From: add

Re: 2 SMTP Relays, depending on the From: address


Subject: Re: 2 SMTP Relays, depending on the From: address
From: Craig Sanders (castaz.net.au)
Date: Mon Jan 03 2000 - 21:15:49 CST


On Tue, Jan 04, 2000 at 01:14:08AM +0100, Martin Schulze wrote:
> How do you want to distinguish if:
>
> . You read mail locally on the mail host
> . You use the same MUA for both commercial and non-commercial mail
> . The MUA does not use an IP address for submitting mail but uses
> something like /usr/sbin/sendmail -t

ok, i see where the confusion is coming from now. when i say "relay
control", i am talking about preventing 3rd party relay so you don't get
hijacked by spammers. you're talking about controlling which external
smtp relay to use.

to do what you want, you don't even really need two instances of
postfix. just set up a transport table to route mail via different
transports (e.g. smtp to relayA, smtp to relayB, uucp to relayC, or
direct smtp to the destination...etc) depending on the destination
address.

this is not exactly what you seem to be asking for (transport selection
based on source address) but is or can be a workable solution. AFAIK,
what you want isn't supported by postfix right now.

> > probably the best you can do is use a transport map to send mail
> > for particular domains via your non-commercial link and mail for
> > everything else via your commercial link.
>
> That's not usable since some of my commercial customers are also my
> friends so I also send private email to them - or I send debian email
> to them, which is non-commercial.

it may not be an ideal solution, but it's a reasonable solution in many
cases (and if you will recall, my original message in this thread was in
response to someone else's question, not to your particular situation).

fact is, if you don't like my answers or can't use them then you are
perfectly free to ignore them...but i object to your attitude which
seems to carry the implication that i'm obliged to find a perfect
solution for you. sorry, it doesn't work like that. if my suggestions
are no use to you then the polite thing to do is to say "thanks but
it doesn't work, i'll try something else"...rather than to hassle out
someone who is trying to help.

craig

--
craig sanders



This archive was generated by hypermail 2b27 : Mon Jan 03 2000 - 21:16:33 CST