postfix-users October 2010 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: one Postfix instance serving messages in two diff

one Postfix instance serving messages in two different directions

From: Zhou, Yan <yzhou_at_nospam>
Date: Mon Oct 25 2010 - 17:43:24 GMT
To: "Postfix users" <>

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 connection arrives, Postfix will deliver message to a
local user's maildir directory.

I know we can configure Postfix to use different content filters based
on different IP, but this is a little different in that I wish to route
message differently.

I noticed the following two "smtp" entry in What do they

smtp inet n - n - - smtpd
smtp unix - - n - - smtp

If I want to accomplish what I wanted, would my look like the
following, i.e., I have to create my own smtpd deamon process? inet n - n - - smtpd
(which deliver messages in local maildir) inet n - n - -
smtpcustomized (which uses my customized transport)


Confidentiality Notice: The information contained in this electronic transmission is confidential and may be legally privileged. It is intended only for the addressee(s) named above. If you are not an intended recipient, be aware that any disclosure, copying, distribution or use of the information contained in this transmission is prohibited and may be unlawful. If you have received this transmission in error, please notify us by telephone (513) 229-5500 or by email ( After replying, please erase it from your computer system.