Hi *,

this is the enhanced version of what I showed Matt on IRC yesterday. It
adds the RFC 1893 status codes to the messages which are returned to the
sending client.

One example is the check_loop plugin. Instead of 
 return DENY, "Too many hops. This message is looping.";
it now uses
 return $self->qp->dsn->too_many_hops(DENY);
which results in 
 "Too many hops (#5.4.6)"

or rcpt_ok:
 return $self->qp->dsn->relaying_denied(DENY);
 => "Relaying denied (#5.7.1)"

If more aliases (like 'relaying_denied' for 'sec_sender_unauthorized')
are needed/wanted, I'll add them.

The documentation is mainly just a reference to the RFC, in doubt search
the RFC for the "X.y.z" to see, what a message means.

        Hanno

Attachment: qp-dsn.diff.gz
Description: Binary data

Reply via email to