On Tuesday 06 December 2011 12:55:18 Rick Hazey wrote:
> I use Kerio for email service and have setup Postfix to handle
> outgoing email on the same hardware. I'm using Postfix for
> outbound email since it  can be bound to a particular IP address
> and Kerio cannot. Setup looks like this:

I don't understand this reasoning. If Kerio is inadequate, why use it 
at all? If Postfix lacks some feature Kerio has, perhaps you need to 
concentrate on getting Kerio to work as you need it. (Find out how its 
SMTP client implementation chooses an IP address, make it choose the 
correct one.)

> Kerio SMTP ---> (127.0.0.1) Postfix ----> (public IP) Internet
> 
> My problem occurs when Postfix can't deliver an email, might be a
> non-existent email address for example. Postfix generates a bounce
> message for the sender but won't deliver it and complains that it
> "loops back on myself".

To fix this, ensure that Postfix is not listening on 127.0.0.1, and 
Kerio contacts Postfix using the external IP address.

http://www.postfix.org/postconf.5.html#inet_interfaces

> I've tried using a separate IP for each STMP server and explicitly
> binding SMTP to separate addresses in master.cf but I still get
> the same error. I've also tried setting up a transport map like
> this: smtp:[192.168.1.2] without success.
> 
> I'm relatively new to Postfix, so I've read both the docs and Rolfe
> Hildebrandt's excellent book but I'm still at a loss.
> 
> Any suggestions or advice would be appreciated.

Rethink the structure. Simplify. Choose one or the other MTA; make it 
do everything you need.
-- 
    Offlist mail to this address is discarded unless
    "/dev/rob0" or "not-spam" is in Subject: header

Reply via email to