>>>> The error on line 314, thats an odd one .... are you using latest stable
>>>> or trunk?  can you try snapshotting the svn stable branch and trying that?
>>>>         
>
> Installed the stable branch with the same result. The only difference
> between sending to an alias and sending to a full account is the
> "strict refs" warning.
>
> (!)custom
> process_policy error: Can't use string ("209.85.219.163") as a HASH
> ref while "strict refs" in use at /usr/lib/policyd-2.0/cbp/policies.pm
> line 314, <GEN31> line 31.
>
> There is also no difference that I can see between the
> session_tracking entries for sending to an alias or a full account.
>
> Is there anything further I can do to help narrow down what might be
> causing this? I'm afraid I'm not familiar with perl though.
>   
Try the attached patch.

Regards
Nigel
Index: contrib/amavisd-new/amavisd-policyd.pm
===================================================================
--- contrib/amavisd-new/amavisd-policyd.pm	(revision 429)
+++ contrib/amavisd-new/amavisd-policyd.pm	(working copy)
@@ -166,8 +166,10 @@
 		# 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;
 			}

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
Users mailing list
[email protected]
http://lists.policyd.org/mailman/listinfo/users

Reply via email to