/usr/share/qpsmtpd/plugins/auth/authdeny is in qpsmtpd 0.84-9.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #!/usr/bin/perl
#
# 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!!!
#
sub hook_auth {
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" );
}
|