qpsmtpd-0.40-badrcptto_allowrelay.patch 498 B

1234567891011
  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. @@ -3,6 +3,7 @@
  4. sub hook_rcpt {
  5. my ($self, $transaction, $recipient, %param) = @_;
  6. + return (DECLINED) if $self->qp->connection->relay_client;
  7. my @badrcptto = $self->qp->config("badrcptto") or return (DECLINED);
  8. return (DECLINED) unless $recipient->host && $recipient->user;
  9. my $host = lc $recipient->host;