This is also very interesting for learning how qpsmtpd works, but I see
some strange output in my log file:
dispatching RCPT TO: <[EMAIL PROTECTED]>
to email address : [<[EMAIL PROTECTED]>]
DENIED by rcpt_ok
550 Relaying denied (#5.7.1)
This occurs about 50 times in a row in the same process with the same
remote address. Why should rcpt_ok be run last (that's what it says
inside the file)? After all this is a pretty basic and cheap test.
Shouldn't rcpt_ok have a counter and disconnect after a few DENY's,
similar to count_unrecognized_commands? Does it even make sense to
continue the session after the first illegal relay attempt? Could the
client follow up with allowable recipients and successfully continue the
session?
Does DENY only apply to a single SMTP command, not the entire session?
Is there a way to DENY the entire session, short of DENY_DISCONNECT?
Hans
Jens Weibler wrote:
Hi,
just a proposal for the current trunk: logging/generic_log
-------------------------------------------------------------
#!perl
sub register {
my ( $self, $qp, %args ) = @_;
}
sub hook_deny {
my ( $self, $transaction, $prev_hook, $return, $return_text ) = @_;
$self->log(LOGINFO, "DENIED by $prev_hook");
}
-------------------------------------------------------------
This plugins makes creating statistics [1] a lot easier ;)
[1] http://wiki.qpsmtpd.org/resources:statistics