Re: [exim] debug query

Top Page
Delete this message
Reply to this message
Author: Tony Finch
Date:  
To: carinus.carelse
CC: exim-users
New-Topics: [exim] Deferred Router by hostname after a ldap lookup
Subject: Re: [exim] debug query
On Mon, 4 Apr 2005 carinus.carelse@??? wrote:

> Can I set exim to log debug information in the log file. Currently i only
> see completed is there any way to set verbose logging in the configure
> file.


No, debug information only goes to stderr.

What I do to make debugging slightly more manageable is to have a clause
in my Exim startup script equivalent to the following, so I can say
DEBUG=yes /etc/rc.d/rc.exim restart

case $DEBUG in
yes)    exim -bd -q5m -DDEBUG -d+all-memory </dev/null >>/var/spool/exim/log/debuglog 2>&1 &"
    ;;
*)    exim -bd -q5m
    ;;
esac


The -DDEBUG clause turns on verbose logging via an ifdef clause in the
configuration file. (My usual logging options are very customized.)

.ifdef DEBUG
log_selector    = +all
.else
log_selector    = -retry_defer -skip_delivery -host_lookup_failed \
          +incoming_interface +incoming_port +smtp_confirmation \
          +sender_on_delivery +return_path_on_delivery +delivery_size \
          +received_recipients +all_parents +address_rewrite \
          +tls_certificate_verified +tls_peerdn \
          +smtp_protocol_error +smtp_syntax_error \
          +deliver_time +queue_time \
          -lost_incoming_connection
.endif


Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}