1 |
slords |
1.1 |
--- qpsmtpd-0.40/plugins/check_badrcptto.badrcptto_allowrelay 2007-06-14 11:57:24.000000000 -0600 |
2 |
|
|
+++ qpsmtpd-0.40/plugins/check_badrcptto 2007-06-14 13:26:42.000000000 -0600 |
3 |
slords |
1.2 |
@@ -4,6 +4,7 @@ |
4 |
slords |
1.1 |
|
5 |
|
|
sub hook_rcpt { |
6 |
|
|
my ($self, $transaction, $recipient, %param) = @_; |
7 |
|
|
+ return (DECLINED) if $self->qp->connection->relay_client; |
8 |
|
|
my @badrcptto = $self->qp->config("badrcptto") or return (DECLINED); |
9 |
|
|
return (DECLINED) unless $recipient->host && $recipient->user; |
10 |
|
|
my $host = lc $recipient->host; |