On 08/24/10 10:00, Kalpin Erlangga Silaen wrote:
> Hello,
>
> I have problem with postfix + cbpolicyd with null sender.
>
> postfix version: 2.5.5
> cbpolicyd version: 2.0.10
>
> cbpolicyd log:
>
> [2010/08/24-16:47:27 - 24481] [QUOTAS] WARNING: Unknown key
> specification in TrackSender
> [2010/08/24-16:47:27 - 24481] [QUOTAS] ERROR: No key found for quota
> ID '3'
>
> This is happen while sender is Null Sender: from=<>
>
> Aug 24 16:59:25 10.10.20.130 postfix/smtpd[25283]: NOQUEUE: reject:
> RCPT from mx.kxem.ru <http://mx.kxem.ru>[79.98.143.28]: 450 4.3.2
> <[email protected] <mailto:[email protected]>>: Recipient
> address rejected: Try again later; from=<> to=<[email protected]
> <mailto:[email protected]>> proto=ESMTP helo=<mx.kxem.ru
> <http://mx.kxem.ru>>
>
> is there any solution for this?

Fixed in next release, there should be a RC coming out in the next 1-3
days. I've also attached the patch you can try.

Regards
Nigel



Regards
Nigel
Index: cbp/modules/Quotas.pm
===================================================================
--- cbp/modules/Quotas.pm	(revision 504)
+++ cbp/modules/Quotas.pm	(revision 505)
@@ -495,6 +495,11 @@
 
 	my $key;
 
+	# Short-circuit <>
+	if ($addy eq '') {
+		return "@";
+	}
+
 	# We need to track the sender
 	if ($spec eq 'u...@domain') {
 		$key = $addy;

Attachment: signature.asc
Description: OpenPGP digital signature

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

Reply via email to