bug-mailfromd


Search for: Advanced

Re: [Bug-mailfromd] Returning action on prog helo


Hi Mehmet,

> Is it possible to return an action on 'prog helo' stage, or even earlier?

Yes, of course. However, MTA handles action returns from helo in a
special way: it switches to "nullmailer mode", in which it continues
the SMTP session and benevolently accepts any further commands, but
responds to them with the same error code and message as was given in
helo.

Returns from connect are also treated similarly: unless the return code
is set to 421, the server switches to nullmailer. The code 421 causes
the connection to be closed immediately. Furthermore, Sendmail treats
textual messages returned from connect specially. This is described
in detail in the manual, see:

  https://www.gnu.org.ua/software/mailfromd/manual/Handlers.html#connect-handler

Regards,
Sergey