-
Notifications
You must be signed in to change notification settings - Fork 1
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
What is the correct way to set incoming mail to quarantine? #18
Comments
After some try & error and sendmail manual reading I managed to put the mail in hold queue
|
So it appears MTA (Postfix) is waiting for a Continue after SMFIR_QUARANTINE response. |
That is indeed the case. I had tried all combinations, until finally I checked opendmarc's source code and noticed QUARANTINE then ACCEPT or CONTINUE was the appropriate method. For python version reasons, I had to use pymilter instead of purepythonmilter which was my #1 choice so, just in case someone is in a similar situation: sdgathman/pymilter#63 (comment) - Cheers! |
I was trying set some some incoming emails to quarantine
As the Quarantine class did not have encode method, I tried to do my own class derived from Quarantine class that defines the encode method.
I can successfully reject the message by replacing the
return MyQuarantine()
line withreturn ppm.RejectWithCode(primary_code=(5, 7, 1), text="Blocked address")
The text was updated successfully, but these errors were encountered: