Qpsmtpd::DSN(3pm) | User Contributed Perl Documentation | Qpsmtpd::DSN(3pm) |
Qpsmtpd::DSN - Enhanced Mail System Status Codes - RFC 1893
The Qpsmtpd::DSN implements the Enhanced Mail System Status Codes from RFC 1893.
Any qpsmtpd plugin can access these status codes. All sub
routines are used the same way:
use Qpsmtpd::DSN;
...;
return Qpsmtpd::DSN->relaying_denied();
or
return Qpsmtpd::DSN->relaying_denied("Relaying from $ip denied");
or
return Qpsmtpd::DSN->relaying_denied(DENY,"Relaying from $ip denied");
If no status message was given, it will use the predefined one from the RFC. If the first argument is numeric, it will use this as a return code, else the default return code is used. See below which default return code is used in the different functions.
The first example will return (DENY, "Relaying denied"); the others (DENY, "Relaying from $ip denied"); which will be returned to qpsmtpd.
In those sub routines which don't start with addr_, sys_, net_, proto_, media_, sec_ I've added a default message which describes the status better than the RFC message.
Why do we want to DENYSOFT something like this?
2023-02-26 | perl v5.36.0 |