Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exim 4.93 spool file format change #431

Closed
derringer opened this issue Dec 22, 2019 · 2 comments
Closed

exim 4.93 spool file format change #431

derringer opened this issue Dec 22, 2019 · 2 comments
Labels

Comments

@derringer
Copy link

This commit and change to the exim code requires a change to Mailscanner possibly in Exim.pm
Exim/exim@f3ebb78

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
Copy link

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

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

@shawniverson
Copy link
Member

This fix is actually acceptable, preparing PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants