Changing log output
Alex Regan
mysqlstudent at gmail.com
Sun Nov 9 23:34:12 CET 2014
Hi,
I have amavisd-new-2.9.1 on fedora20 and would like to change the
maillog line entry to include the name of the quarantined file for
messages determined to be spam. For example:
Nov 9 00:08:16 mail02 amavis[29903]: (29903-02) header_edits_for_quar:
<root at connecting-to-guests.info> -> <user at example.com>, Yes, score=7.795
tag=-200 tag2=5 kill=5 tests=[BAYES_60=1.5, NO_DNS_FOR_FROM=0.001,
RAZOR2_CHECK=0.8, RDNS_NONE=0.793, URIBL_BLACK=1.7, URIBL_JP_SURBL=1.25]
autolearn=no autolearn_force=no
A few lines later is this:
Nov 9 00:08:16 bwimail02 amavis[29903]: (29903-02) local delivery: <>
-> spam-quarantine,
mbx=/var/spool/amavisd/quarantine/spam-9e0fb7846fdc9fa92087c2d36cff2496-20141109T000814-29903-02.gz
I'd like to somehow tie these two lines together so I can more easily
write a script to correlate the email with the quarantine file.
Would I need to create an additional log entry through something like
amavisd-custom.conf, or can the original somehow be configured?
Thanks,
Alex
More information about the amavis-users
mailing list