For the pmg-log-tracker to match the pmg-smtp-filter on a reject, we
need some kind of information. With the addition of the pmg-smtp-filter
ID we can match it the same way we do for an accept.
Signed-off-by: Mira Limbeck <m.limbeck@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
my @reject_rec = grep { $qstat->{$_} eq 'blocked' } @rec;
if (scalar(@reject_rec) == scalar(@rec)) {
- $self->reply ("554 5.7.1 Rejected for policy reasons");
+ $self->reply ("554 5.7.1 Rejected for policy reasons ($queueid)");
syslog('info', "reject mail $queueid");
} elsif ((scalar(@reject_rec) + scalar(@success_rec)) == scalar(@rec)) {
$self->reply ("250 2.5.0 OK ($queueid)");
generate_ndr($self->{from}, [ @reject_rec ], $dnsinfo->{fqdn}, $queueid) if scalar(@reject_rec);
}
} else {
- $self->reply ("451 4.4.0 detected undelivered mail");
+ $self->reply ("451 4.4.0 detected undelivered mail ($queueid)");
}
}
}