MailScanner / v5

MailScanner v5
GNU General Public License v2.0
178 stars 58 forks source link

exim 4.93 spool file format change #431

Closed derringer closed 4 years ago

derringer commented 4 years ago

This commit and change to the exim code requires a change to Mailscanner possibly in Exim.pm https://github.com/Exim/exim/commit/f3ebb786e451da973560f1c9d8cdb151d25108b5

New spool file format as of exim 4.93, tainted values (here helo_name) now have two -- in front of them.

This causes Mailscanner to print: New Batch: Found invalid queue files: 10HmbC-0005vi-00

Example header file (truncated)

10HmbC-0005vi-00-H
EXIMUSER EXIM_UID EXIM_GID
<a@y>
ddddddddd 0
-received_time_usec .uuuuuu
--helo_name rhu.barb
-host_address 127.0.0.1.9999
-interface_address 127.0.0.1.1225
-received_protocol esmtp
-body_linecount 0
-max_received_linelength 25
-deliver_firsttime
waytotheweb commented 4 years ago

If anyone needs a quick fix for this, modify Exim.pm:

281c281
<     $line =~ s/^-(\w+) ?// or last;
---
>     $line =~ s/^--?(\w+) ?// or last;
shawniverson commented 4 years ago

This fix is actually acceptable, preparing PR.