Commit 83c74f5e authored by Nigel Kukard's avatar Nigel Kukard
Browse files

* Fixed bug where getPolicy was being called in the amavisd-policyd module...

* Fixed bug where getPolicy was being called in the amavisd-policyd module with incorrect parameters. This was triggered when recipeits changed because of aliases or similar and the alias is not found in the session data stored during the Postfix RCPT checks.

parent 0a6de5e2
......@@ -166,8 +166,10 @@ sub process_policy {
# If this recipient isn't part of the stored policy, get the policy ourselves
# This means that the recipients addy changed, or there is no policy for them??
if (!defined($sessionData->{'_Recipient_To_Policy'}{$emailAddy})) {
# Override recipient
$sessionData->{'Recipient'} = $emailAddy;
# Now pull in policy
my $policy = getPolicy($self,$msginfo->client_addr,$msginfo->sender,$sessionData->{'SASLUsername'});
my $policy = getPolicy($self,$sessionData);
if (!$policy) {
next;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment