0

I have a dual-homed mail server, so it have IP1 and IP2 on it. I set it up so it answers on both IPs while send via single link only.

The only thing I miss is how to figure out (and log it) which interface given connection comes to? It is for statistics mostly but I'd like to know which incoming interface is used for message to send it or by IMAP/POP session.

In Exim I can log IP of interface that received the message, but in Postfix can't find any. Frankly it won't say much in logs at all, and I think I need some trick to allow it.

1 Answer 1

0

The easiest way to solve this is via different syslog names. Set up your smtpd's as separate entries in master.cf and set them different syslog_name options via -o syslog_name=my-public-ip_1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .