Discussion:
Mail stuck in hold loop
(too old to reply)
t***@gmail.com
2015-12-15 17:32:05 UTC
Permalink
I have configured postfix to hold certain messages so I can inspect their contents before deciding to remove them or letting them through.

However, when I requeue a message with postsuper -r it is requeued and then gets thrown back into the hold directory as it still matches my hold rule.

My current solution is to requeue the message, wait till it shows up in the hold directory again and then move it to the incoming directory, for some reason body_checks are then skipped an the message is delivered (this won't work without issuing postsuper -r at least once before moving it)

Is there a better way to do this?
d***@gmail.com
2016-01-16 14:12:56 UTC
Permalink
Hi

In master.cf add a smtp listener on port 10025 for exemple which doesn't do any filtering then requeue the message using this port instead of 25.

Here is an exemple : http://www.postfix.org/FILTER_README.html

Regards

Victor d'Agostino
Post by t***@gmail.com
I have configured postfix to hold certain messages so I can inspect their contents before deciding to remove them or letting them through.
However, when I requeue a message with postsuper -r it is requeued and then gets thrown back into the hold directory as it still matches my hold rule.
My current solution is to requeue the message, wait till it shows up in the hold directory again and then move it to the incoming directory, for some reason body_checks are then skipped an the message is delivered (this won't work without issuing postsuper -r at least once before moving it)
Is there a better way to do this?
Loading...