[policyd-users] policyd v2 smtpd_end_of_data_restrictions
Hi, 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-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. Best regards, hw - 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
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-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_re strictions
Nigel, readers, On Thu, 26 Jun 2008 08:32:21 +, Nigel Kukard <[EMAIL PROTECTED]> wrote: > 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-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. Will start logging also, because this is the same issue as i was and still facing. The regex looks good from my humble point of view? > > -N -- Regards, Jacco van Koll [EMAIL PROTECTED] Via Webmail - 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
> >> 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-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. > > Will start logging also, because this is the same issue as i was and still > facing. The regex looks good from my humble point of view? You running stable aswell? -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_re strictions
Nigel, On Thu, 26 Jun 2008 09:54:53 +, Nigel Kukard <[EMAIL PROTECTED]> wrote: > >> >> 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-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. >> >> Will start logging also, because this is the same issue as i was and > still >> facing. The regex looks good from my humble point of view? > > You running stable aswell? > > -N Yep, running the stable. Want to evaluate it first before we are going to use it in a large production environment. If you like, i can provide you with a login to my test-server so you can investigate? -- Regards, Jacco van Koll [EMAIL PROTECTED] Via Webmail - 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
[policyd-users] [BUGFIX] v2.0.1 sql syntax fix
* Fixed rogue ,'s in SQL * Added CREATE INDEX instead of INDEX() for better cross-database support * Added indexing back to sqlite Index: convert-tsql === --- convert-tsql (revision 251) +++ convert-tsql (revision 252) @@ -59,7 +59,6 @@ -e 's/@SERIAL_TYPE@/SERIAL/' \ -e 's/@BIG_INTEGER@/BIGINT UNSIGNED/' \ -e 's/@TRACK_KEY_LEN@/255/' \ - -e 's/@INDEX@/, INDEX/' \ -e 's/@SERIAL_REF_TYPE@/BIGINT UNSIGNED/' < "$file" ;; @@ -71,7 +70,6 @@ -e 's/@SERIAL_TYPE@/SERIAL/' \ -e 's/@BIG_INTEGER@/BIGINT UNSIGNED/' \ -e 's/@TRACK_KEY_LEN@/512/' \ - -e 's/@INDEX@/, INDEX/' \ -e 's/@SERIAL_REF_TYPE@/BIGINT UNSIGNED/' < "$file" ;; @@ -83,7 +81,6 @@ -e 's/@SERIAL_TYPE@/SERIAL PRIMARY KEY/' \ -e 's/@BIG_INTEGER@/INT8/' \ -e 's/@TRACK_KEY_LEN@/512/' \ - -e 's/@INDEX@/, INDEX/' \ -e 's/@SERIAL_REF_TYPE@/INT8/' < "$file" ;; @@ -95,7 +92,6 @@ -e 's/@SERIAL_TYPE@/INTEGER PRIMARY KEY AUTOINCREMENT/' \ -e 's/@BIG_INTEGER@/INT8/' \ -e 's/@TRACK_KEY_LEN@/512/' \ - -e 's/@[EMAIL PROTECTED]//' \ -e 's/@SERIAL_REF_TYPE@/INT8/' < "$file" ;; Index: greylisting.tsql === --- greylisting.tsql (revision 251) +++ greylisting.tsql (revision 252) @@ -108,7 +108,7 @@ Tries @BIG_INTEGER@ NOT NULL, /* Authentication tries */ Count @BIG_INTEGER@ NOT NULL, /* Authenticated count */ - UNIQUE(TrackKey,Sender,Recipient), - @INDEX@ (LastUpdate,Count) + UNIQUE(TrackKey,Sender,Recipient) ) @CREATE_TABLE_SUFFIX@; +CREATE INDEX greylisting_tracking_idx1 ON greylisting_tracking (LastUpdate,Count); Index: checkhelo.tsql === --- checkhelo.tsql (revision 251) +++ checkhelo.tsql (revision 252) @@ -13,13 +13,13 @@ /* Blacklisting, we want to reject people impersonating us */ UseBlacklist SMALLINT, /* Checks blacklist table */ - BlacklistPeriod BIGINT, /* Period to keep the host blacklisted for, if not set or 0 + BlacklistPeriod @BIG_INTEGER@, /* Period to keep the host blacklisted for, if not set or 0 the check will be live */ /* Random helo prevention */ UseHRPSMALLINT, /* Use helo randomization prevention */ - HRPPeriod BIGINT, /* Period/window we check for random helo's */ - HRPLimit BIGINT, /* Our limit for the number of helo's is this */ + HRPPeriod @BIG_INTEGER@, /* Period/window we check for random helo's */ + HRPLimit @BIG_INTEGER@, /* Our limit for the number of helo's is this */ /* RFC compliance options */ RejectInvalid SMALLINT, /* Reject invalid HELO */ @@ -82,9 +82,9 @@ CREATE TABLE checkhelo_tracking ( Address VARCHAR(64) NOT NULL, Helo VARCHAR(255) NOT NULL, - LastUpdate BIGINT UNSIGNED NOT NULL, + LastUpdate @BIG_INTEGER@ NOT NULL, - UNIQUE (Address,Helo), - @INDEX@ (LastUpdate) + UNIQUE (Address,Helo) ) @CREATE_TABLE_SUFFIX@; +CREATE INDEX checkhelo_tracking_idx1 ON checkhelo_tracking (LastUpdate); Index: checkspf.tsql === --- checkspf.tsql (revision 251) +++ checkspf.tsql (revision 252) @@ -9,7 +9,7 @@ PolicyID @SERIAL_REF_TYPE@, - Name TINYTEXT NOT NULL, + Name VARCHAR(255) NOT NULL, /* Do we want to use SPF? 1 or 0 */ UseSPFSMALLINT, Index: core.tsql === --- core.tsql (revision 251) +++ core.tsql (revision 252) @@ -146,11 +146,10 @@ RecipientData TEXT, /* Policy state information */ - UNIQUE (Instance), - @INDEX@ (QueueID,ClientAddress,Sender), - @INDEX@ (Timestamp) + UNIQUE (Instance) ) @CREATE_TABLE_SUFFIX@; +CREATE INDEX session_tracking_idx1 ON session_tracking (QueueID,ClientAddress,Sender); +CREATE INDEX session_tracking_idx2 ON session_tracking (Timestamp); - Index: quotas.tsql === --- quotas.tsql (revision 251) +++ quotas.tsql (revision 252) @@ -64,10 +64,7 @@ Counter NUMERIC(10,4), UNIQUE (QuotasLimitsID,TrackKey), - @INDEX@ (LastUpdate), FOREIGN KEY (QuotasLimitsID) REFERENCES quotas_limits(ID) ) @CREATE_TABLE_SUFFIX@; +CREATE INDEX quotas_tracking_idx1 ON quotas_tracking (LastUpdate); - - - 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
> >> > 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. > >> > >> Will start logging also, because this is the same issue as i was and > > still > >> facing. The regex looks good from my humble point of view? > > > > You running stable aswell? > > > > -N > > Yep, running the stable. Want to evaluate it first before we are going to > use it in a large production environment. If you like, i can provide you > with a login to my test-server so you can investigate? I don't think thats necessary at this point :), more than likely something simple, the missing debug line should print out what its moaning about. -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
[policyd-users] policyd v2 smtpd_end_of_data_restrictions
Hi, 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. br hw 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-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 - 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
> 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
[policyd-users] [BUGFIX] v2.0.1 MySQL index lengh vs. charset fix
* Set table charset to latin1 for MySQL or we exceed the MySQL index length limitation MySQL has an index limitation of 1000 bytes. Using some character sets, especially UTF-8 requires 3x the number of bytes for storage and exceeds this limit in some tables. -N Index: convert-tsql === --- convert-tsql (revision 252) +++ convert-tsql (working copy) @@ -55,7 +55,7 @@ sed \ -e 's/@PRELOAD@/SET FOREIGN_KEY_CHECKS=0;/' \ -e 's/@POSTLOAD@/SET FOREIGN_KEY_CHECKS=1;/' \ - -e 's/@CREATE_TABLE_SUFFIX@/TYPE=InnoDB/' \ + -e 's/@CREATE_TABLE_SUFFIX@/TYPE=InnoDB CHARACTER SET latin1 COLLATE latin1_bin/' \ -e 's/@SERIAL_TYPE@/SERIAL/' \ -e 's/@BIG_INTEGER@/BIGINT UNSIGNED/' \ -e 's/@TRACK_KEY_LEN@/255/' \ @@ -66,7 +66,7 @@ sed \ -e 's/@PRELOAD@/SET FOREIGN_KEY_CHECKS=0;/' \ -e 's/@POSTLOAD@/SET FOREIGN_KEY_CHECKS=1;/' \ - -e 's/@CREATE_TABLE_SUFFIX@/TYPE=InnoDB/' \ + -e 's/@CREATE_TABLE_SUFFIX@/TYPE=InnoDB CHARACTER SET latin1 COLLATE latin1_bin/' \ -e 's/@SERIAL_TYPE@/SERIAL/' \ -e 's/@BIG_INTEGER@/BIGINT UNSIGNED/' \ -e 's/@TRACK_KEY_LEN@/512/' \ 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
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
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_re strictions
On Thu, 26 Jun 2008 11:48:18 +, Nigel Kukard <[EMAIL PROTECTED]> wrote: > >> >> > 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. >> >> >> >> Will start logging also, because this is the same issue as i was and >> > still >> >> facing. The regex looks good from my humble point of view? >> > >> > You running stable aswell? >> > >> > -N >> >> Yep, running the stable. Want to evaluate it first before we are going > to >> use it in a large production environment. If you like, i can provide you >> with a login to my test-server so you can investigate? > > I don't think thats necessary at this point :), more than likely > something simple, the missing debug line should print out what its > moaning about. > > -N Will do this this evening. Have no console access right now. -- Regards, Jacco van Koll [EMAIL PROTECTED] Via Webmail - 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-users Digest, Vol 25, Issue 4
[EMAIL PROTECTED] wrote: > Send policyd-users mailing list submissions to > policyd-users@lists.sourceforge.net > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/policyd-users > or, via email, send a message with subject or body 'help' to > [EMAIL PROTECTED] > > You can reach the person managing the list at > [EMAIL PROTECTED] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of policyd-users digest..." > > > Today's Topics: > >1. policyd v2 smtpd_end_of_data_restrictions (Helge Waastad) >2. Re: policyd v2 smtpd_end_of_data_restrictions (Nigel Kukard) >3. Re: policyd v2 smtpd_end_of_data_restrictions (Jacco van Koll) >4. Re: policyd v2 smtpd_end_of_data_restrictions (Nigel Kukard) >5. Re: policyd v2 smtpd_end_of_data_restrictions (Jacco van Koll) >6. [BUGFIX] v2.0.1 sql syntax fix (Nigel Kukard) > > > -- > > Message: 1 > Date: Thu, 26 Jun 2008 10:28:49 +0200 > From: Helge Waastad <[EMAIL PROTECTED]> > Subject: [policyd-users] policyd v2 smtpd_end_of_data_restrictions > To: policyd-users@lists.sourceforge.net > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="utf-8" > > ??Hi, > 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-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. > > > Best regards, > hw > -- next part -- > An HTML attachment was scrubbed... > > -- > > Message: 2 > Date: Thu, 26 Jun 2008 08:32:21 + > From: Nigel Kukard <[EMAIL PROTECTED]> > Subject: Re: [policyd-users] policyd v2 smtpd_end_of_data_restrictions > To: policyd-users@lists.sourceforge.net > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="us-ascii" > > 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-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 > -- next part -- > A non-text attachment was scrubbed... > Name: not available > Type: application/pgp-signature > Size: 189 bytes > Desc: This is a digitally signed message part > > -- > > Message: 3 > Date: Thu, 26 Jun 2008 11:20:29 +0200 > From: Jacco van Koll <[EMAIL PROTECTED]> > Subject: Re: [policyd-users] policyd v2 smtpd_end_of_data_restrictions > To: policyd-users@lists.sourceforge.net > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="UTF-8" > > Nigel, readers, > > On Thu, 26 Jun 2008 08:32:21 +, Nigel Kukard <[EMAIL PROTECTED]> wrote: > >> 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-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 P
Re: [policyd-users] Contents of policyd-users digest
[EMAIL PROTECTED] wrote: > Send policyd-users mailing list submissions to > policyd-users@lists.sourceforge.net > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/policyd-users > or, via email, send a message with subject or body 'help' to > [EMAIL PROTECTED] > > You can reach the person managing the list at > [EMAIL PROTECTED] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of policyd-users digest..." > > > Today's Topics: > >1. policyd v2 smtpd_end_of_data_restrictions (Helge Waastad) >2. Re: policyd v2 smtpd_end_of_data_restrictions (Nigel Kukard) >3. Re: policyd v2 smtpd_end_of_data_restrictions (Jacco van Koll) >4. Re: policyd v2 smtpd_end_of_data_restrictions (Nigel Kukard) >5. Re: policyd v2 smtpd_end_of_data_restrictions (Jacco van Koll) >6. [BUGFIX] v2.0.1 sql syntax fix (Nigel Kukard) > > > -- > > Message: 1 > Date: Thu, 26 Jun 2008 10:28:49 +0200 > From: Helge Waastad <[EMAIL PROTECTED]> > Subject: [policyd-users] policyd v2 smtpd_end_of_data_restrictions > To: policyd-users@lists.sourceforge.net > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="utf-8" > > ??Hi, > 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-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. > > > Best regards, > hw > -- next part -- > An HTML attachment was scrubbed... > > -- > > Message: 2 > Date: Thu, 26 Jun 2008 08:32:21 + > From: Nigel Kukard <[EMAIL PROTECTED]> > Subject: Re: [policyd-users] policyd v2 smtpd_end_of_data_restrictions > To: policyd-users@lists.sourceforge.net > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="us-ascii" > > 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-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 > -- next part -- > A non-text attachment was scrubbed... > Name: not available > Type: application/pgp-signature > Size: 189 bytes > Desc: This is a digitally signed message part > > -- > > Message: 3 > Date: Thu, 26 Jun 2008 11:20:29 +0200 > From: Jacco van Koll <[EMAIL PROTECTED]> > Subject: Re: [policyd-users] policyd v2 smtpd_end_of_data_restrictions > To: policyd-users@lists.sourceforge.net > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="UTF-8" > > Nigel, readers, > > On Thu, 26 Jun 2008 08:32:21 +, Nigel Kukard <[EMAIL PROTECTED]> wrote: > >> 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-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 P
Re: [policyd-users] Contents of policyd-users digest
[EMAIL PROTECTED] wrote: > Send policyd-users mailing list submissions to > policyd-users@lists.sourceforge.net > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/policyd-users > or, via email, send a message with subject or body 'help' to > [EMAIL PROTECTED] > > You can reach the person managing the list at > [EMAIL PROTECTED] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of policyd-users digest..." > > > Today's Topics: > >1. Re: policyd v2 smtpd_end_of_data_restrictions (Nigel Kukard) >2. policyd v2 smtpd_end_of_data_restrictions (Helge Waastad) >3. Re: policyd v2 smtpd_end_of_data_restrictions (Nigel Kukard) >4. [BUGFIX] v2.0.1 MySQL index lengh vs. charset fix (Nigel Kukard) >5. Re: policyd v2 smtpd_end_of_data_restrictions (Helge Waastad) >6. Re: policyd v2 smtpd_end_of_data_restrictions (Nigel Kukard) >7. Re: policyd v2 smtpd_end_of_data_restrictions (Jacco van Koll) > > > -- > > Message: 1 > Date: Thu, 26 Jun 2008 11:48:18 + > From: Nigel Kukard <[EMAIL PROTECTED]> > Subject: Re: [policyd-users] policyd v2 smtpd_end_of_data_restrictions > To: policyd-users@lists.sourceforge.net > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="us-ascii" > > > > 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. > Will start logging also, because this is the same issue as i was and >>> still >>> facing. The regex looks good from my humble point of view? >>> You running stable aswell? >>> >>> -N >>> >> Yep, running the stable. Want to evaluate it first before we are going to >> use it in a large production environment. If you like, i can provide you >> with a login to my test-server so you can investigate? >> > > I don't think thats necessary at this point :), more than likely > something simple, the missing debug line should print out what its > moaning about. > > -N > -- next part -- > A non-text attachment was scrubbed... > Name: not available > Type: application/pgp-signature > Size: 189 bytes > Desc: This is a digitally signed message part > > -- > > Message: 2 > Date: Thu, 26 Jun 2008 14:02:26 +0200 > From: Helge Waastad <[EMAIL PROTECTED]> > Subject: [policyd-users] policyd v2 smtpd_end_of_data_restrictions > To: policyd-users@lists.sourceforge.net > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="us-ascii" > > Hi, > 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. > > > br hw > > 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-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 > -- next part -- > An HTML attachment was scrubbed... > > -- > > Message: 3 > Date: Thu, 26 Jun 2008 12:07:06 + > From: Nigel Kukard <[EMAIL PROTECTED]> > Subject: Re: [policyd-users] policyd v2 smtpd_end_of_data_restrictions > To: policyd-users@lists.sourceforge.net > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="us-ascii" > > > > >> 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)
Re: [policyd-users] policyd v2 smtpd_end_of_data_restrictions
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
Re: [policyd-users] policyd v2 smtpd_end_of_data_restrictions
> > > 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 Index: cbpolicyd === --- cbpolicyd (revision 251) +++ cbpolicyd (working copy) @@ -395,8 +395,7 @@ # Data mangling... $request->{'sender'} = lc($request->{'sender'}); - $request->{'recipient'} = lc($request->{'recipient'}); - $request->{'recipient'} = lc($request->{'recipient'}); + $request->{'recipient'} = lc($request->{'recipient'}) if (defined($request->{'recipient'})); $request->{'sasl_username'} = lc($request->{'sasl_username'}) if (defined($request->{'sasl_username'})); # Internal data Index: cbp/protocols/Postfix.pm === --- cbp/protocols/Postfix.pm (revision 251) +++ cbp/protocols/Postfix.pm (working copy) @@ -212,27 +212,34 @@ # 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"; + } + if (!defined($request->{'client_address'}) || !($request->{'client_address'} =~ /^\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}$/) ) { $server->log(LOG_ERR,"[PROTOCOLS/Postfix] Error, parameter 'client_address' cannot be ". - defined($request->{'client_address'}) ? "'".$request->{'client_address'}."'" : "undef") if ($log); +defined($request->{'client_address'}) ? "'".$request->{'client_address'}."'" : "undef") if ($log); return "required parameter 'client_address' was not found or invalid format"; } if (!defined($request->{'sender'}) || !($request->{'sender'} =~ /^(?:[EMAIL PROTECTED]|)$/) ) { $server->log(LOG_ERR,"[PROTOCOLS/Postfix] Error, parameter 'sender' cannot be ". - defined($request->{'sender'}) ? "'".$request->{'sender'}."'" : "undef") if ($log); +defined($request->{'sender'}) ? "'".$request->{'sender'}."'" : "undef") if ($log); return "required parameter 'sender' was not found or invalid format"; } - if (!defined($request->{'recipient'}) || !($request->{'recipient'} =~ /[EMAIL PROTECTED]/) ) { - $server->log(LOG_ERR,"[PROTOCOLS/Postfix] Error, parameter 'recipient' cannot be ". - defined($request->{'recipient'}) ? "'".$request->{'recipient'}."'" : "undef") if ($log); - return "required parameter 'recipient' was not found or invalid format"; + if ($request->{'protocol_state'} eq "RCPT") { + if (!defined($request->{'recipient'}) || !($request->{'recipient'} =~ /[EMAIL PROTECTED]/) ) { + $server->log(LOG_ERR,"[PROTOCOLS/Postfix] Error, parameter 'recipient' cannot be ". + defined($request->{'recipient'}) ? "'".$request->{'recipient'}."'" : "undef") if ($log); + return "required parameter 'recipient' was not found or invalid format"; + } } if (!defined($request->{'instance'}) || $request->{'instance'} eq "") { $server->log(LOG_ERR,"[PROTOCOLS/Postfix] Error, parameter 'instance' cannot be ". - defined($request->{'instance'}) ? "'".$request->{'instance'}."'" : "undef") if ($log); +defined($request->{'instance'}) ? "'".$request->{'instance'}."'" : "undef") if ($log); return "required parameter 'instance' was not found or invalid format"; } } 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-user