[exim] Logging incoming IP:port on SMTP connections.

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Peter Radcliffe
Datum:  
To: Lists - Exim
Betreff: [exim] Logging incoming IP:port on SMTP connections.
I've got a couple of mail servers using 4.34 (with exiscan-acl) that
run the same (or similar) configuration on multiple ports and IPs and
I want to log which one a connection is coming in on. I set
log_selector to;

log_selector =  \
              +received_sender \
              +received_recipients \
              +smtp_confirmation \
              +smtp_connection \
              +smtp_syntax_error \
              +incoming_interface \
              +incoming_port \
              +outgoing_port \
              +tls_cipher \
              +tls_peerdn


and on sucessful messages I get (for example) I=[130.64.1.215]:25 in
the logs and all is well. The problem is when messages are not sucessful
(such as this rejection);

2004-11-23 15:48:31 SMTP connection from [210.221.192.134]:3217
(TCP/IP connection count = 1)
2004-11-23 15:48:50 no host name found for IP address 210.221.192.134
2004-11-23 15:49:20 H=[210.221.192.134]:3217 Warning: No reverse DNS -
delaying banner message
2004-11-23 15:49:20 SMTP protocol violation: synchronization error
(input sent without waiting for greeting): rejected connection from
H=[210.221.192.134]:3217

I get the far end port and IP, but no incoming ip:port.
Am I missing something or is this not possible ?

Thanks,
P.

--
pir