s/recipient/sender/ since this is the MAIL FROM filter ... :-)
git-svn-id: https://svn.perl.org/qpsmtpd/trunk@65 958fd67b-6ff1-0310-b445-bb7760255be9
This commit is contained in:
parent
46d6195f38
commit
2fd504ce6a
@ -7,10 +7,10 @@ sub register {
|
||||
}
|
||||
|
||||
sub mail_handler {
|
||||
my ($self, $transaction, $recipient) = @_;
|
||||
return (DECLINED) unless $recipient->host && $recipient->user;
|
||||
my $host = lc $recipient->host;
|
||||
my $from = $recipient->user . '@' . $host;
|
||||
my ($self, $transaction, $sender) = @_;
|
||||
return (DECLINED) unless $sender->host && $sender->user;
|
||||
my $host = lc $sender->host;
|
||||
my $from = $sender->user . '@' . $host;
|
||||
my @badmailfrom = $self->qp->config("badmailfrom");
|
||||
for my $bad (@badmailfrom) {
|
||||
$bad =~ s/^\s*(\S+)/$1/;
|
||||
|
Loading…
Reference in New Issue
Block a user