one Postfix instance serving messages in two different directions

2010-10-25 Thread Zhou, Yan
Hi there, How can I have one single Postfix instance routing messages differently, depends on which IP address they are arriving at SMTP. If an outside connection arrives, Postfix will deliver message to my customized transport, which calls a script and passes the message. If an internal

Re: one Postfix instance serving messages in two different directions

2010-10-25 Thread Jeroen Geilman
On 10/25/2010 07:43 PM, Zhou, Yan wrote: Hi there, How can I have one single Postfix instance routing messages differently, depends on which IP address they are arriving at SMTP. By making postfix listen with separate smtpd listeners on those IPs. Those instances can then have different

Re: one Postfix instance serving messages in two different directions

2010-10-25 Thread Wietse Venema
Zhou, Yan: Hi there, How can I have one single Postfix instance routing messages differently, depends on which IP address they are arriving at SMTP. If an outside connection arrives, Postfix will deliver message to my customized transport, which calls a script and passes the message.

RE: one Postfix instance serving messages in two different directions

2010-10-25 Thread Zhou, Yan
Can you elaborate how different smtpd can have different transport settings? I won't want to create my own SMTPD process. The following won't work, because the transport cannot distinguish IP address. I tried this but does not work. I wonder if only smtp process can vary based on different IP.

Re: one Postfix instance serving messages in two different directions

2010-10-25 Thread Victor Duchovni
On Mon, Oct 25, 2010 at 02:25:32PM -0400, Zhou, Yan wrote: Can you elaborate how different smtpd can have different transport settings? I won't want to create my own SMTPD process. The following won't work, because the transport cannot distinguish IP address. I tried this but does not

Re: one Postfix instance serving messages in two different directions

2010-10-25 Thread Wietse Venema
To send mail to a script depending on the arriving SMTP port: /etc/postfix/master.cf: 1.2.3.4:smtp inet n - n - - smtpd -o content_filter=script_for_1_2_3_4: script_for_1_2_3_4 unix - n n - - pipe

Re: one Postfix instance serving messages in two different directions

2010-10-25 Thread Jeroen Geilman
On 10/25/2010 08:30 PM, Victor Duchovni wrote: On Mon, Oct 25, 2010 at 02:25:32PM -0400, Zhou, Yan wrote: Can you elaborate how different smtpd can have different transport settings? I won't want to create my own SMTPD process. The following won't work, because the transport cannot