Exim panic log & filtering it

Sander Smeenk ssmeenk at freshdot.net
Tue Nov 21 08:57:32 GMT 2023


Hi,

My LDAP lookups sometimes fail and this causes a line to be written to
the panic log which i've abbreviated for obvious reasons:

| 2023-11-20 09:55:55 1r504M-00BW1W-QL failed to expand "${sg{${lookup
| ldapm{binddn pass=MyActualLDAPBindPassword ldaps:///..." while checking a
| list: lookup of ... pass=MyActualLDAPBindPassword ... gave DEFER: ...

As i'd rather not mail plain text passwords i thought i'd try to filter
those out and found a reference to "/usr/local/lib/exim4/nonzero_paniclog_hook"
being called from /etc/cron.daily/exim4-base if it exists.

Google has about 5 results for "nonzero_paniclog_hook".

This looks a bit like a "forgotten feature", so i wonder what the idea
for this hook was and wether my way of using it to sed -E certain things
before the log gets e-mailed is the correct way to do this. ;)

Thanks!

-Sndr.
-- 
| Experience is a wonderful thing. 
| It enables you to recognize a mistake when you make it again.
| 4096R/20CC6CD2 - 6D40 1A20 B9AA 87D4 84C7  FBD6 F3A9 9442 20CC 6CD2



More information about the Pkg-exim4-users mailing list