Re: [exim] How to debug when script calls exim via sendmail

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Olaf Hopp (SCC)
Data:  
Para: exim-users
Assunto: Re: [exim] How to debug when script calls exim via sendmail
On 7/4/22 11:12, Evgeniy Berdnikov via Exim-users wrote:
>
> Place a script wrapper instead of symlink on /usr/sbin/sendmail, which
> could add some flags, like that:
>
>     #!/bin/sh
>     exec /path/to/exim -d+all "$@"


Tried that with redirecting that command to <somefile>
I see the beginning of the debug output in <somefile> but then

14:59:10 83016 cwd=/var/lib/sympa/list_data 12 args: /usr/sbin/exim4 -d+all -oi -odi -oem -N success,delay,failure -V00000021 -f bounce+o.hopp==a==example.com.edu==olaftest1==21@??? -- olaf@???
14:59:10 83016 trusted user
exim: debugging permission denied

and the output died. exim is suid root. User sympa is calling the wrapper arounf exim
Anyway the line of interest got already catched up "/usr/sbin/exim4 -d+all -oi -odi -oem..."
That is, what I was searching for, the way how sympa called the exim

> Or enable debug in ACL for non-SMTP messages (acl_not_smtp).


So I gave this a chance. exim is 4.94.2 on Debian Bullseye

acl_not_smtp = not_smtp_acl
[...]
begin acl
not_smtp_acl:
         accept
         control = debug/opts=+all


Logging is expected in file "debuglog" aside the usual exim logs.
But nothing there.

Any hints ?
Olaf


--
Karlsruher Institut für Technologie (KIT)
Steinbuch Centre for Computing (SCC)

Dipl.-Geophys. Olaf Hopp

Zirkel 2
Gebäude 20.21, Raum 316
76131 Karlsruhe

Telefon: +49 721 608-48009
E-Mail: Olaf.Hopp@???
Web: www.scc.kit.edu

Sitz der Körperschaft:
Kaiserstraße 12, 76131 Karlsruhe

KIT - Die Forschungsuniversität in der Helmholtz-Gemeinschaft