debugging rule files

Ralf Cirksena ci at holmco.de
Wed Apr 22 09:21:18 UTC 2020


Hello,

I just noticed that my filetype rules are not used.

How can I find out which filetype rules are used for a particular mail?
The entries in the log file (/var/log/mail.log) just shows something like:

mail MailScanner[8235]: New Batch: Scanning 1 messages, 5814 bytes
mail MailScanner[8235]: Filename Checks: Allowing 1jRBSN-00029D-Iz
msg-8235-2.txt
mail MailScanner[8235]: Filename Checks: Allowing 1jRBSN-00029D-Iz textfile
mail MailScanner[8235]: Filename Checks: Allowing 1jRBSN-00029D-Iz
msg-8235-1.txt
mail MailScanner[8235]: Filetype Checks: Allowing 1jRBSN-00029D-Iz
msg-8235-1.txt
mail MailScanner[8235]: Filetype Checks: Allowing 1jRBSN-00029D-Iz textfile
mail MailScanner[8235]: Filetype Checks: Allowing 1jRBSN-00029D-Iz
msg-8235-2.txt
I'd like to see something like:
checking %rulesdir%/my_filetype_rules.conf checking <rule in rules file>

Thanks.


More information about the MailScanner mailing list