2012-06-22 11:38:01 +02:00
|
|
|
#!perl -w
|
|
|
|
|
|
|
|
=head1 NAME
|
|
|
|
|
|
|
|
authdeny
|
|
|
|
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
|
|
|
|
This plugin doesn't actually check anything and will fail any
|
|
|
|
user no matter what they type. It is strictly a proof of concept for
|
|
|
|
the Qpsmtpd::Auth module. Don't run this in production!!!
|
|
|
|
|
|
|
|
=cut
|
|
|
|
|
|
|
|
sub hook_auth {
|
2013-04-21 06:50:39 +02:00
|
|
|
my ($self, $transaction, $method, $user, $passClear, $passHash, $ticket) =
|
2012-06-22 11:38:01 +02:00
|
|
|
@_;
|
|
|
|
|
2013-04-21 06:50:39 +02:00
|
|
|
$self->log(LOGWARN, "fail: cannot authenticate");
|
2012-06-22 11:38:01 +02:00
|
|
|
|
2013-04-21 06:50:39 +02:00
|
|
|
return (DECLINED, "$user is not free to abuse my relay");
|
2012-06-22 11:38:01 +02:00
|
|
|
}
|
|
|
|
|