new error, only for single email? "sa-milter.sock: can't read SMFIC_BODY reply packet header: Connection timed out" #5
Labels
No labels
bug
enhancement
suggestion
support
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: glts/spamassassin-milter#5
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
SA-milter's been running fine in a postfix milter chain for quite awhile now.
A few days ago, I started seeing these errors in my log summary reports:
Currently, there's several hundred.
It's a reject/error for one, and ONLY one sender; a legit email from a friend @gmail.com, that apparently contains an attachment.
Gmail keeps attempting the resend of the same email from its queue.
I've grep'd the SA-milter src ... no trace of "SMFIC_BODY" that i can see.
I'm just starting to troubleshoot this now, and dig around various 'timeout' settings.
1st, though -- is this a recognized/known error 'in' SA-milter?
Or, any likely suggestions where to start looking? E.g., which timeout, etc?
The error message is from Postfix.
The error message means that Postfix did not get a timely response while it was executing the milter callback for the body stage. All this callback does is send message content to
spamc
.Postfix has several
milter_*_timeout
parameters. The one that it ran into here ismilter_content_timeout
(default 5 minutes).It is a bit worrying, but I’m not sure SpamAssassin Milter’s the culprit. Perhaps something about that particular message that causes
spamc
/SpamAssassin to become very busy …?This is actually quite easy to reproduce, just let
spamc
sleep for a fewminutes when it is invoked. Postfix simply stops waiting for a milter when it
doesn’t receive a response in time, and logs the above message. I believe all of
this is working as intended.
Possible solutions:
milter_content_timeout
to give theSpamAssassin components more time to process the message.
spamc
timeout (-t
option), to make the SpamAssassincomponents return a response more quickly (before Postfix runs into the
timeout).
components take so long to respond, and find out if it can be avoided.