On 2024-09-20 at 09:30:56 UTC-0400 (Fri, 20 Sep 2024 13:30:56 +0000)
hawky--- via Postfix-users <ha...@posteo.de>
is rumored to have said:
Hi!
I'm looking for a way to process and deliver an incoming email, but
return an error (with a meaningful) message to the client.
By looking at the SMTP status codes
(https://en.wikipedia.org/wiki/List_of_SMTP_server_return_codes) I
don't see an obvious way to do that. But maybe it is possible in a
non-obvious way?
Is it possible?
No.
I mean, it is *POSSIBLE* to return a 5xx reply code with text which
explains that your reply code is a lie but you cannot depend on that
message ever reaching the sender. SMTP replies are explicitly unreliable
beyond the initial digit (2,3,4,or 5) and it's a mistake to believe that
because most SMTP replies seem to have meaningful text parts, all text
parts will be meaningful or that they can be used to send meaningful
signals.
A better approach would be to have an automated email reply to the
messages in question.
--
Bill Cole
b...@scconsult.com or billc...@apache.org
(AKA @grumpybozo@toad.social and many *@billmail.scconsult.com
addresses)
Not Currently Available For Hire
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org