Re: [exim] Full SMTP session log functionality

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Adam Osuchowski
Date:  
À: exim-users
Sujet: Re: [exim] Full SMTP session log functionality
Ted Cooper wrote:
> If you have a system with multiple clients and any kind of load, then
> all this logging is going to be quite volumous.


This is not a problem for me. I can grep.

> Oops, no. I meant "log_message", which is available in the ACLs. Oops.
> It's all described in the ACL section of the manual. It doesn't require
> you to recompile exim or write any "code", just add some stuff the to
> ACLs, maybe referencing $smtp_command. And add a few extra hard drives
> for all the logging.


Ok, it looks promising. I can do something like this:

    warn log_message = [$sender_host_address]:$sender_host_port SMTP>> $smtp_command


at the beginning of interesting ACLs, but is there general method to log
server replies in this way?

> The SMTP conversation is not particularly difficult to understand and is
> very predictable.


Of course, so if it is not difficult to understand, it all the more
should be included in server log files.

> The existing error messages and log messages provided in the default
> logging allow for easy interpretation of exactly where in the
> conversation any errors occurred.


IMHO it depends on complexity of ACL rules. Really, sometimes it's
easier to look at SMTP dialog to see the situation.