qpsmtpd/plugins/auth/authdeny
Matt Simerson b00f4c7793 initial import - based on my qpsmtpd fork
which will merge into the main branch fairly easily
2012-06-22 05:38:01 -04:00

24 lines
481 B
Perl

#!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 {
my ( $self, $transaction, $method, $user, $passClear, $passHash, $ticket ) =
@_;
$self->log( LOGWARN, "fail: cannot authenticate" );
return ( DECLINED, "$user is not free to abuse my relay" );
}