Debian Codegraph @

plugins/auth/authdeny

raw
1 #!perl -w
2
3 =head1 NAME
4
5 authdeny
6
7 =head1 SYNOPSIS
8
9 This plugin doesn't actually check anything and will fail any
10 user no matter what they type. It is strictly a proof of concept for
11 the Qpsmtpd::Auth module. Don't run this in production!!!
12
13 =cut
14
15 sub hook_auth {
16 my ($self, $transaction, $method, $user, $passClear, $passHash, $ticket) =
17 @_;
18
19 $self->log(LOGWARN, "fail: cannot authenticate");
20
21 return (DECLINED, "$user is not free to abuse my relay");
22 }
23