Re: postfix question

2007-04-25 Thread Oliver Peter
On Wed, Apr 25, 2007 at 09:27:48AM +0200, n j wrote:
 Hello,

Hello Nino,
 
 does anybody know is it possible with Postfix to route e-mail based
 on either the inet interface message came from or the sender of a
 message? I'm using Postfix v.2.3.8 on a multihomed machine and have
 two smtpd's defined in master.cf. What I would like is that mail
 submitted through smtpd that is listening on A.B.C.D goes out through
 the smtp client that binds to A.B.C.D and the rest of the mail go
 through the other smtp client. The problem as I see it is that, once
 messages arrive in the queue, it becomes irrelevant where they came
 from and the only routing that is available is recipient-based.
 
 Thanks for any suggestions!

Would it help to pimp your transport map?

#In the case of delivery via SMTP, one  may  specify  host-
#name:service instead of just a host:
#
# example.com  smtp:bar.example:2025

You can replace bar.example with the IP address of the other
interface.
It works with my DBmail configuration.

-- 
Oliver PETER, email: [EMAIL PROTECTED], ICQ# 113969174
Worker bees can leave. Even drones can fly away. The Queen is their slave.


pgpdLK7vKbf0l.pgp
Description: PGP signature


Re: postfix question

2007-04-25 Thread n j

Hello Oliver,


Would it help to pimp your transport map?

#In the case of delivery via SMTP, one  may  specify  host-
#name:service instead of just a host:
#
# example.com  smtp:bar.example:2025

You can replace bar.example with the IP address of the other
interface.


The way I understand, transport map selects messages based on
recipient's address or domain. In the above example, only messages
destined for example.com would get routed through the right interface.
Once messages end up in the queue, qmgr uses trivial-rewrite to
resolve recipient's address and selects a transport based on that. Or
am I wrong?

I need to route messages based on either sender's address/domain (this
would suffice) or incoming interface (better).

Thanks for the suggestion anyway!

--
Nino
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: postfix question

2007-04-25 Thread Gerard
On Wednesday April 25, 2007 at 03:27:48 (AM) n j wrote:


 Hello,
 
 does anybody know is it possible with Postfix to route e-mail based
 on either the inet interface message came from or the sender of a
 message? I'm using Postfix v.2.3.8 on a multihomed machine and have
 two smtpd's defined in master.cf. What I would like is that mail
 submitted through smtpd that is listening on A.B.C.D goes out through
 the smtp client that binds to A.B.C.D and the rest of the mail go
 through the other smtp client. The problem as I see it is that, once
 messages arrive in the queue, it becomes irrelevant where they came
 from and the only routing that is available is recipient-based.
 
 Thanks for any suggestions!

You would probably get better assistance if you asked this question on
the Postfix forum.

-- 
Gerard
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: postfix question

2007-04-25 Thread Ted Mittelstaedt
Remember,

UNIXes and suchlike use a single IP address route table.

Your machine isn't trying to establish a connection to:
[EMAIL PROTECTED]

It is trying to establish a connection to IP address
x.y.z.a

Machines don't speak domainese.  They translate
the human-friendly stuff like domain names and such into
IP addresses.

Once the system resolves the recipient e-mail address
into a destination IP address, the choice of interface that
it goes out on is entirely controlled by the route table.
And due to the single route table in the system, that
is going to be the interface that reaches your default gateway.

Even if this box was a router, like a Cisco that supports
route maps that allow you to bypass the single route table,
since the mail is originating from the system, it would always
follow the same map anyway.

You need 2 mailservers to do what you want.

Ted

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Gerard
 Sent: Wednesday, April 25, 2007 3:38 AM
 To: User Questions
 Subject: Re: postfix question
 
 
 On Wednesday April 25, 2007 at 03:27:48 (AM) n j wrote:
 
 
  Hello,
  
  does anybody know is it possible with Postfix to route e-mail based
  on either the inet interface message came from or the sender of a
  message? I'm using Postfix v.2.3.8 on a multihomed machine and have
  two smtpd's defined in master.cf. What I would like is that mail
  submitted through smtpd that is listening on A.B.C.D goes out through
  the smtp client that binds to A.B.C.D and the rest of the mail go
  through the other smtp client. The problem as I see it is that, once
  messages arrive in the queue, it becomes irrelevant where they came
  from and the only routing that is available is recipient-based.
  
  Thanks for any suggestions!
 
 You would probably get better assistance if you asked this question on
 the Postfix forum.
 
 -- 
 Gerard
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: postfix question

2007-04-25 Thread n j

You would probably get better assistance if you asked this question on
the Postfix forum.


True. However, I did google through a lot of Postfix resources
(documentation, forums, mailing lists...) and didn't find what I was
looking for. I posted this question here hoping that someone already
ran into this problem, solved it somehow and was perhaps willing to
help me. I mean, people reading this list are system admins with
experience.


Your machine isn't trying to establish a connection to: [EMAIL PROTECTED],
it is trying to establish a connection to IP address x.y.z.a...


That is not relevant in my case. What I want to do is define two
different smtp services in master.cf (each bound to a different IP
address with smtp_bind_address option) and have Postfix use one or the
other based on incoming interface or sender's address/domain.


You need 2 mailservers to do what you want.


That might be true with Postfix, although two instances on the same
machine would suffice - I'm looking for a solution that doesn't
include two instances. I know it can easily be done with Exim and I'm
actually testing on my test machine Exim installation right now.

Speaking of which, is FreeBSD with Exim a good combination for a
mailserver, what are your experiences?

Thanks,
--
Nino
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: postfix question

2005-06-28 Thread Giorgos Keramidas
On 2005-06-28 09:25, John Larson [EMAIL PROTECTED] wrote:
 I have a lan with freebsd 4.11 server and one client connected with a
 crossover cable and two nic cards. I want to be able to send a form to
 my server and display it in email.Someone gave me a recipe for the
 main.cf file but I lost it. any help would be appreciated.

There is excellent documentation that is distributed as part of your
Postfix port installation.

There is a great site with online documentation, at www.postfix.org

You should definitely have a look at these first.

BTW, forms are supported by any email setup, as long as: a) the setup
works for sending normal mail messages and b) the forms are posted as
normal mail messages.

- Giorgos

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]