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

SMFIC_MAIL: bad packet when Postfix dispatches a DSN via non_smtpd_milters #5

Open
irsl opened this issue Sep 30, 2018 · 0 comments
Open

Comments

@irsl
Copy link

irsl commented Sep 30, 2018

From http://www.postfix.org/MILTER_README.html#non-smtp-milters:
"There's one small complication when using Milter applications for non-SMTP mail: there is no SMTP session. To keep Milter applications happy, the Postfix cleanup(8) server actually has to simulate the SMTP client CONNECT and DISCONNECT events, and the SMTP client EHLO, MAIL FROM, RCPT TO and DATA commands. "

This is actually reflected by dispatching an envfrom callback with an empty payload,which makes the lib die with "SMFIC_MAIL: bad packet" error message (Context.pm, line 267). Turning it into a warn fixes the problem and the filter then works as expected.

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

No branches or pull requests

1 participant