Re: [policyd-users] policyd v2 smtpd_end_of_data_restrictions

2008-06-27 Thread Helge Waastad
Hi,
Tried the patch, but there is an typo:
# Check params
+   if (!defined($request-{'protocol_state'})) {
+   $server-log(LOG_ERR,[PROTOCOLS/Postfix] Error, parameter
'protocol_state' must be defined if ($log);
+   return required parameter 'protocol_state' was not found;
+   }

Should be

# Check params
+   if (!defined($request-{'protocol_state'})) {
+   $server-log(LOG_ERR,[PROTOCOLS/Postfix] Error, parameter
'protocol_state' must be defined) if ($log);
+   return required parameter 'protocol_state' was not found;
+   }

But it seems to work now :-)

Thx again.

Br hw


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nigel
Kukard
Sent: 27. juni 2008 08:18
To: policyd-users@lists.sourceforge.net
Subject: Re: [policyd-users] policyd v2 smtpd_end_of_data_restrictions


 
snip /
  I've turned on all cluebringer debugging and this is what I see:
  
  [2008/06/26-14:32:38 - 5761] [CORE] INFO: 2008/06/26-14:32:38 
  CONNECT TCP Peer: 127.0.0.1:47941 Local: 127.0.0.1:10031
  [2008/06/26-14:32:38 - 5761] [PROTOCOLS/Postfix] DEBUG: Possible 
  Postfix protocol
  [2008/06/26-14:32:38 - 5761] [PROTOCOLS/Postfix] INFO: Identified 
  Postfix protocol
  [2008/06/26-14:32:38 - 5633] [CORE] INFO: Starting 1 children
  [2008/06/26-14:32:38 - 5761] [CORE] ERROR: ''
  [2008/06/26-14:32:38 - 5761] [CBPOLICYD] ERROR: Protocol data 
  validation error, required parameter 'recipient' was not found or 
  invalid format
  [2008/06/26-14:32:38 - 6018] [CORE] DEBUG: Child Preforked (6018)
  [2008/06/26-14:32:38 - 6018] [CBPOLICYD] DEBUG: Starting up caching 
  engine
 
 Where are you doing your check_policy_service?
This is my config:
 
 smtpd_recipient_restrictions=
 reject_unauth_pipelining,
 permit_mynetworks,
 permit_sasl_authenticated,
 reject_non_fqdn_recipient,
 reject_unauth_destination,
 check_policy_service inet:127.0.0.1:10031,
 permit
 
 smtpd_end_of_data_restrictions =
check_policy_service inet:127.0.0.1:10031
 

Can you try the attached patch and let me know if it fixes your problem?

-N



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
policyd-users mailing list
policyd-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/policyd-users


Re: [policyd-users] policyd v2 smtpd_end_of_data_restrictions

2008-06-26 Thread Nigel Kukard
Good day,

 I've been running the policyd v2 for a while now. Everything works as
 a charm, but I have one problem.
 If I enable the smtpd_end_of_data_restrictions  and using policyd, I
 always get bounced when I try mailing several contacts:
 
 postfix:
 reject: END-OF-MESSAGE from unknown[10.216.8.138]: 450 4.3.2
 END-OF-MESSAGE: End-of-data rejected: Try again later;
 from=[EMAIL PROTECTED] proto=ESMTP helo=[10.216.8.138]
 
 policyd:
 [CORE] ERROR: ''
 [2008/06/26-09:00:13 - 1218] [CBPOLICYD] ERROR: Protocol data
 validation error, required parameter 'recipient' was not found or
 invalid format
 
 Is there someone out there that can explain to me what happens?
 If I send email to a single contact, everything is OK.

Could you give me some instruction how to reproduce?

/[EMAIL PROTECTED]/  = that is the regex being used to check for a valid email
address.

Are you running latest stable?  It should give you one or two more lines
of info.

-N


signature.asc
Description: This is a digitally signed message part
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
policyd-users mailing list
policyd-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/policyd-users


Re: [policyd-users] policyd v2 smtpd_end_of_data_restrictions

2008-06-26 Thread Nigel Kukard


 and thx for your answer.
 
 I've upgraded to stable today, but the problem has been there also
 through the last release (snapshot)
 
 I'm now testing with a evolution client
 
 Just trying to send an email to two contacts (outbound)
 (BTW, it also happens on inbound email)
 
 Please let me know if there are any more debugging I can do.
 
 I'm still testing.

I need the line that looks like  
[PROTOCOLS/Postfix] Error, parameter 'sender' cannot be 'xxxyyy'

to see exactly what email addy its choking on.

-N


signature.asc
Description: This is a digitally signed message part
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
policyd-users mailing list
policyd-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/policyd-users


Re: [policyd-users] policyd v2 smtpd_end_of_data_restrictions

2008-06-26 Thread Helge Waastad
I've turned on all cluebringer debugging and this is what I see:

[2008/06/26-14:32:38 - 5761] [CORE] INFO: 2008/06/26-14:32:38 CONNECT
TCP Peer: 127.0.0.1:47941 Local: 127.0.0.1:10031
[2008/06/26-14:32:38 - 5761] [PROTOCOLS/Postfix] DEBUG: Possible Postfix
protocol
[2008/06/26-14:32:38 - 5761] [PROTOCOLS/Postfix] INFO: Identified
Postfix protocol
[2008/06/26-14:32:38 - 5633] [CORE] INFO: Starting 1 children
[2008/06/26-14:32:38 - 5761] [CORE] ERROR: ''
[2008/06/26-14:32:38 - 5761] [CBPOLICYD] ERROR: Protocol data validation
error, required parameter 'recipient' was not found or invalid format
[2008/06/26-14:32:38 - 6018] [CORE] DEBUG: Child Preforked (6018)
[2008/06/26-14:32:38 - 6018] [CBPOLICYD] DEBUG: Starting up caching
engine


to., 26.06.2008 kl. 12.07 +, skrev Nigel Kukard:

 
  and thx for your answer.
  
  I've upgraded to stable today, but the problem has been there also
  through the last release (snapshot)
  
  I'm now testing with a evolution client
  
  Just trying to send an email to two contacts (outbound)
  (BTW, it also happens on inbound email)
  
  Please let me know if there are any more debugging I can do.
  
  I'm still testing.
 
 I need the line that looks like  
 [PROTOCOLS/Postfix] Error, parameter 'sender' cannot be 'xxxyyy'
 
 to see exactly what email addy its choking on.
 
 -N
 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://sourceforge.net/services/buy/index.php
 ___ policyd-users mailing list 
 policyd-users@lists.sourceforge.net 
 https://lists.sourceforge.net/lists/listinfo/policyd-users
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
policyd-users mailing list
policyd-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/policyd-users


Re: [policyd-users] policyd v2 smtpd_end_of_data_restrictions

2008-06-26 Thread Nigel Kukard

On Thu, 2008-06-26 at 14:33 +0200, Helge Waastad wrote:
 I've turned on all cluebringer debugging and this is what I see:
 
 [2008/06/26-14:32:38 - 5761] [CORE] INFO: 2008/06/26-14:32:38 CONNECT
 TCP Peer: 127.0.0.1:47941 Local: 127.0.0.1:10031
 [2008/06/26-14:32:38 - 5761] [PROTOCOLS/Postfix] DEBUG: Possible
 Postfix protocol
 [2008/06/26-14:32:38 - 5761] [PROTOCOLS/Postfix] INFO: Identified
 Postfix protocol
 [2008/06/26-14:32:38 - 5633] [CORE] INFO: Starting 1 children
 [2008/06/26-14:32:38 - 5761] [CORE] ERROR: ''
 [2008/06/26-14:32:38 - 5761] [CBPOLICYD] ERROR: Protocol data
 validation error, required parameter 'recipient' was not found or
 invalid format
 [2008/06/26-14:32:38 - 6018] [CORE] DEBUG: Child Preforked (6018)
 [2008/06/26-14:32:38 - 6018] [CBPOLICYD] DEBUG: Starting up caching
 engine

Where are you doing your check_policy_service?

-N


signature.asc
Description: This is a digitally signed message part
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
policyd-users mailing list
policyd-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/policyd-users


Re: [policyd-users] policyd v2 smtpd_end_of_data_restrictions

2008-06-26 Thread Helge Waastad
Hi,
This is my config:

smtpd_recipient_restrictions=
reject_unauth_pipelining,
permit_mynetworks,
permit_sasl_authenticated,
reject_non_fqdn_recipient,
reject_unauth_destination,
check_policy_service inet:127.0.0.1:10031,
permit

smtpd_end_of_data_restrictions =
   check_policy_service inet:127.0.0.1:10031


br hw

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nigel
Kukard
Sent: 26. juni 2008 14:47
To: policyd-users@lists.sourceforge.net
Subject: Re: [policyd-users] policyd v2 smtpd_end_of_data_restrictions


On Thu, 2008-06-26 at 14:33 +0200, Helge Waastad wrote:
 I've turned on all cluebringer debugging and this is what I see:
 
 [2008/06/26-14:32:38 - 5761] [CORE] INFO: 2008/06/26-14:32:38 CONNECT 
 TCP Peer: 127.0.0.1:47941 Local: 127.0.0.1:10031
 [2008/06/26-14:32:38 - 5761] [PROTOCOLS/Postfix] DEBUG: Possible 
 Postfix protocol
 [2008/06/26-14:32:38 - 5761] [PROTOCOLS/Postfix] INFO: Identified 
 Postfix protocol
 [2008/06/26-14:32:38 - 5633] [CORE] INFO: Starting 1 children
 [2008/06/26-14:32:38 - 5761] [CORE] ERROR: ''
 [2008/06/26-14:32:38 - 5761] [CBPOLICYD] ERROR: Protocol data 
 validation error, required parameter 'recipient' was not found or 
 invalid format
 [2008/06/26-14:32:38 - 6018] [CORE] DEBUG: Child Preforked (6018)
 [2008/06/26-14:32:38 - 6018] [CBPOLICYD] DEBUG: Starting up caching 
 engine

Where are you doing your check_policy_service?

-N


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
policyd-users mailing list
policyd-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/policyd-users