logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

Mail::Milter::Wrapper::DeferToRCPT - milter wrapper to delay failure returns

Author

       Todd Vierling, <tv@duh.org> <tv@pobox.com>

Description

       Mail::Milter::Wrapper::DeferToRCPT is a convenience milter wrapper which defers any error return during
       the "connect", "helo", and/or "envfrom" callbacks to the "envrcpt" callback.

       Many broken client mailers exist in the real world and will do such things as instantaneously reconnect
       when receiving an error at the MAIL FROM: stage.  This wrapper ensures that errors are never propagated
       back to the MTA until at least the RCPT TO: phase.

       Errors in "connect" and "helo" will apply to the entire SMTP transaction.  Errors in "envfrom" will only
       apply to that particular message.

       This wrapper can also be used to enhance logging.  Though the contained milter may wish to reject a mail
       in progress, it may be useful for logging purposes to capture the HELO string, sender, and recipient
       addresses of each attempted mail.

Name

       Mail::Milter::Wrapper::DeferToRCPT - milter wrapper to delay failure returns

See Also

       Mail::Milter::Wrapper

perl v5.36.0                                       2023-01-22             Mail::Milter::W...er::DeferToRCPT(3pm)

Synopsis

           use Mail::Milter::Wrapper::DeferToRCPT;

           my $milter = ...;
           my $wrapper = new Mail::Milter::Wrapper::DeferToRCPT($milter);

           my $wrapper2 = &DeferToRCPT($milter); # convenience

See Also