Re: [Exim] reject log information

Top Page
Delete this message
Reply to this message
Author: Glenn Carver
Date:  
To: exim-users
Subject: Re: [Exim] reject log information
Phil,

Thanks for the reply. Sorry I'm not being very specific am I? Let's
forget the logging from the exim-filter. I understand that. I only
mentioned it as a comparison (bad idea).

The log_message qualifier I know about and understand. This just adds
to the log information written out. My question is concerns the rest
of the information written out: the sending host, mailfrom & rcpt to
information before the log_message string is written.

If I reject a message using an acl_smtp_rcpt, then the log includes
the host,mailfrom & rcptto info. If I reject a message using an
acl_smtp_data, then I get this but also all the headers. Presumably
this is because at the acl_smtp_data stage Exim has all the headers
and decides to write them out. I was just wondering if I can turn
this off? (I'm just being fussy, I can live with it. Just trying to
cut down on my logfile size).

One other small question. In reporting the F=<user@???>
address in the mainlog, what variable should I use in the exim-filter
to get the same address? I'm afraid I get confused over the
differences between $sender_address, $return_path etc and I'd like to
get my logging consistent.

Thanks for your patience!

Glenn


>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.