Re: [Exim] reject log information

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Philip Hazel
Date:  
À: Glenn Carver
CC: exim-users
Sujet: Re: [Exim] reject log information
On Tue, 30 Jul 2002, Glenn Carver wrote:

> For example, if my exim-filter rejects a message and uses:
> logwrite "Exim filter rejected message"
>
> in the rejectlog file I get this exactly verbatim. ie. a line would
> appear thus:
> Exim filter rejected message.


I assume you are talking about a system filter here. Presumably you have
used the "logfile" command to specify that "logwrite" should actually
write to the rejectlog file. There is no code in Exim to note this as a
special case - it works exactly the same as it does for user filters. It
writes exactly what you tell it to write to the file you specify.

> However, if I reject a message from one of the acl_smtp_data then the
> log entry prints out the TOD, the value of the 'message' option and
> also the headers.


In that situation, Exim knows it is writing to its own log, and uses its
log-writing function, which adds the TOD etc.

> I know how to add more to the log for the exim-filter rejections;
> what I can't find is how to affect the logging from the acls?


Have you noticed the "log_message" qualifier for the ACLs?

Philip

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.