-
Notifications
You must be signed in to change notification settings - Fork 5
Exim and correct log parsing
drlight17 edited this page May 25, 2024
·
1 revision
!!! From the MLP 1.8 version in order to correctly parse exim log files you will need to set log_selector = +all
in exim.conf !!!
Also in order to parse recipients of milter rejected messages in acl_check_data you will need to configure exim log messages to output string that can be parsed by the following regexp: .*DATA:.*for.([a-zA-Z0-9-+_.=]+@[a-zA-Z0-9-+_.]+)
.
For example if use milter like rspamd to greylist and reject messages you can set log output as the following example:
# use greylisting available in rspamd v1.3+
defer message = Message for $recipients is temporary deferred due to greylisting test
condition = ${if eq{$spam_action}{soft reject}}
deny message = Message for $recipients discarded as high-probability spam
condition = ${if eq{$acl_m2}{YES}{1}{0}}
condition = ${if eq{$spam_action}{reject}}
Don't forget to restart exim service!