[exim] Per host log_selector

Etusivu
Poista viesti
Vastaa
Lähettäjä: Mike Richardson
Päiväys:  
Vastaanottaja: exim-users
Aihe: [exim] Per host log_selector
This might sound like a fairly limited use wishlist item but I'll ask anyway.

We have a couple of mail hosts behind a hardware load balancers and they
probes all three of the available mail ports to check their status.
However the LBs don't send full SMTP conversations so we get lots
of this:

2004-10-26 13:04:32 SMTP protocol violation: synchronization error (input
sent without waiting for greeting): rejected connection from H=[10.2.18.252] I=[10.2.18.1]:587

with particular log_selector settings.

We're also using the tls-on-connect option so we get:

2004-10-26 13:24:26 TLS error on connection from csm1 [10.2.18.251]:2869
(SSL_accept): error:00000000:lib(0):func(0):reason(0)

Additionally we use nagios to monitor the status of the hosts so we also
get:

2004-10-26 13:23:54 SMTP protocol error in "MAIL FROM:" H=jadzia.mcc.ac.uk
[130.88.202.58]:57855 I=[10.2.18.1]:25 MAIL must have an address operand

The problem is that we get six copies of the first two every 20s and one
copy of the last one every minute. Without these the logs are about 1% of
the size.

I know I could use log_selector to turn them all off but I would lose the
logging of 'real' errors and I'd like to be able to keep smtp_connections on
because it is useful in debugging users and their clients.

Thus a request for per host logging. I'd like to add the IPs of the nagios
machine and the two load balancers to a config option:

log_selector_from = !10.2.18.251:!10.2.18.252:!130.88.202.58

Ultimately per log_selector option per host logging:

log_selector = +smtp_connection:!10.2.18.251 +smtp_protocol_error:!130.88.202.58

would be nice.

Thanks

Mike
--
Mike Richardson
Messaging and Collaboration
Manchester Computing
Email: mike.richardson@???
*Plain text only please - attachments stripped on arrival*