Hi,
thanks!
What I was looking for is a way to kinda "suspend" Postfix while doing
maintenance on the server (i.e. local transport not available).
I now solved this by adding:
smtpd_client_restrictions = check_client_access static:{ defer Maintenance! }
But this also requires:
smtpd_delay_reject = no
So maybe you could introduce a dedicated option for that?: Answer with
400 to everything, with a custom message.
Cheers,
Thomas
Am 19.11.24 um 22:49 schrieb Wietse Venema:
Thomas Landauer via Postfix-users:
Hi,
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?
No. Receiving is decoupled from delivering. The only available
feedback from a Postfix delivery agent to a Postfix SMTP server is
through sender or recipient address verification.
This does not use any message content from the remote SMTP client.
Instead, it generates a new test message, sends the test message
envelope content, and discards the test message content.
Wietse
As I understand it, every mail is handed over to Postfix'es `qmgr`,
which works asynchronously/independently of the SMTP session - but maybe
there's a way around this?
Thanks!!
--
Cheers,
Thomas
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org