On Tue, Nov 19, 2024 at 10:01:14PM +0100, Thomas Landauer via Postfix-users wrote:
> when handing over incoming messages to an external command (i.e. a `pipe` > delivery in `master.cf`), is it possible to keep the sender "on hold" in the > SMTP session and then answer with 500 right away (if the external command > returns 1), instead of answering with `250 2.0.0 Ok: queued as...` and > sending a bounce? As Wietse replied, NO. But, if your goal is to inspect and be able to reject the message, then perhaps what you're looking for is either an smtpd_proxy_filter or milter: http://www.postfix.org/SMTPD_PROXY_README.html http://www.postfix.org/MILTER_README.html If either of these objects, then the sender will see a 5XX response, if they don't reject the message, delivery proceeds normally, and you'd ultimately hand off the message for mailbox storage to a delivery agent that is less picky about its content. -- Viktor. _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org