2012-04-29 05:41:31 +02:00
|
|
|
#!perl -Tw
|
2004-06-29 23:45:35 +02:00
|
|
|
#
|
|
|
|
# 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!!!
|
|
|
|
#
|
|
|
|
|
2005-07-07 06:17:39 +02:00
|
|
|
sub hook_auth {
|
2004-06-29 23:45:35 +02:00
|
|
|
my ( $self, $transaction, $method, $user, $passClear, $passHash, $ticket ) =
|
|
|
|
@_;
|
|
|
|
|
|
|
|
# $DB::single = 1;
|
|
|
|
|
|
|
|
$self->log( LOGWARN, "Cannot authenticate using authdeny" );
|
|
|
|
|
|
|
|
return ( DECLINED, "$user is not free to abuse my relay" );
|
|
|
|
}
|
|
|
|
|