A NOTE has been added to this issue. ====================================================================== http://www.dbmail.org/mantis/view.php?id=445 ====================================================================== Reported By: jasb Assigned To: ====================================================================== Project: DBMail Issue ID: 445 Category: Sieve (delivery, dbmail-sievecmd, dbmail-timsieved) Reproducibility: always Severity: minor Priority: normal Status: new target: ====================================================================== Date Submitted: 10-Nov-06 23:24 CET Last Modified: 17-Nov-06 10:44 CET ====================================================================== Summary: Sieve script error with 3 rules Description: I have reports from some users that have the follow sieve script, that receive about an error message for each received email.
Below, the sieve script created by squirrelmail's avelsieve plugin, and some info about the error message they receive. # This script has been automatically generated by avelsieve # (Sieve Mail Filters Plugin for Squirrelmail) # Warning: If you edit this manually, then the changes will not # be reflected in the users' front-end! #AVELSIEVE_VERSIONYTo0OntzOjU6Im1ham9yIjtpOjE7czo1OiJtaW5vciI7aTo5O3M6NzoicmVsZWFzZSI7aTo3O3M6Njoic3RyaW5nIjtzOjU6IjEuOS43Ijt9 #AVELSIEVE_CREATED1157841771 #AVELSIEVE_MODIFIED1163173733 require ["fileinto","envelope","reject","regex"]; if #START_SIEVE_RULEYTo2OntzOjQ6ImNvbmQiO2E6MTp7aTowO2E6MTp7czo0OiJ0eXBlIjtzOjM6ImFsbCI7fX1zOjQ6InR5cGUiO3M6MToiMSI7czo5OiJjb25kaXRpb24iO3M6MzoiYW5kIjtzOjY6ImFjdGlvbiI7czoxOiI0IjtzOjEzOiJyZWRpcmVjdGVtYWlsIjtzOjE4OiJhbGxtYWlsQGVjb2ZtZXEucHQiO3M6NDoia2VlcCI7czoyOiJvbiI7fQ%3D%3DEND_SIEVE_RULE true { keep; redirect "[EMAIL PROTECTED]"; } if #START_SIEVE_RULEYTo0OntzOjQ6ImNvbmQiO2E6Mjp7aTowO2E6NDp7czo0OiJ0eXBlIjtzOjY6ImhlYWRlciI7czo2OiJoZWFkZXIiO3M6NDoiRnJvbSI7czo5OiJtYXRjaHR5cGUiO3M6ODoiY29udGFpbnMiO3M6MTE6ImhlYWRlcm1hdGNoIjtzOjI4OiJwYXVsby5maWd1ZWlyZWRvLjdAZ21haWwuY29tIjt9aToxO2E6NDp7czo0OiJ0eXBlIjtzOjY6ImhlYWRlciI7czo2OiJoZWFkZXIiO3M6MjoiVG8iO3M6OToibWF0Y2h0eXBlIjtzOjg6ImNvbnRhaW5zIjtzOjExOiJoZWFkZXJtYXRjaCI7czoyMjoibmFvc2VpQHlhaG9vZ3JvdXBzLmNvbSI7fX1zOjQ6InR5cGUiO3M6MToiMSI7czo5OiJjb25kaXRpb24iO3M6MzoiYW5kIjtzOjY6ImFjdGlvbiI7czoxOiIyIjt9END_SIEVE_RULE allof (header :contains "From" "[EMAIL PROTECTED]", header :contains "To" "[EMAIL PROTECTED]") { discard; } if #START_SIEVE_RULEYTo0OntzOjQ6ImNvbmQiO2E6MTp7aTowO2E6NDp7czo0OiJ0eXBlIjtzOjY6ImhlYWRlciI7czo2OiJoZWFkZXIiO3M6NzoiU3ViamVjdCI7czo5OiJtYXRjaHR5cGUiO3M6ODoiY29udGFpbnMiO3M6MTE6ImhlYWRlcm1hdGNoIjtzOjE0OiIqKioqKlNQQU0qKioqKiI7fX1zOjQ6InR5cGUiO3M6MToiMSI7czo5OiJjb25kaXRpb24iO3M6MzoiYW5kIjtzOjY6ImFjdGlvbiI7czoxOiIyIjt9END_SIEVE_RULE header :contains "Subject" "*****SPAM*****" { discard; } Your Sieve script [phpscript] failed to parse correctly. Messages will be delivered to your INBOX for now. The error message is: unsupported feature: vacation regex ====================================================================== ---------------------------------------------------------------------- aaron - 10-Nov-06 23:56 ---------------------------------------------------------------------- Works for me with libSieve 2.2.1 and DBMail 2.2.0rc2. ---------------------------------------------------------------------- jasb - 10-Nov-06 23:59 ---------------------------------------------------------------------- Well i updated to last svn (2.2.0 rc2 i supose) today, this report had 2/3 days, i'm going to see in the next days is something happen and i'll let you know. But tell me, the error message i sent you, is generated from who, dbmail right? ---------------------------------------------------------------------- jasb - 11-Nov-06 00:01 ---------------------------------------------------------------------- Just confirming you. Right now, svn 2366 and libsieve 2.2.1 ---------------------------------------------------------------------- aaron - 11-Nov-06 03:56 ---------------------------------------------------------------------- Oh, you know what, did you turn off vacation support in dbmail.conf? Make sure you have a line that says: [DELIVERY] SIEVE_VACATION=Yes Otherwise Vacation support will not be enabled. Now, the script you have posted does not use Vacation, but does use Regex. Regex is always enabled in libSieve. So I am not sure what's going on here. Make sure that you have the latest libSieve and no older versions hanging around. ---------------------------------------------------------------------- jasb - 11-Nov-06 12:50 ---------------------------------------------------------------------- I've thinked in that, but i don't use no vacation script i've confirmed it, strange, i'm confused about it. I compiled libsieve with the default path's, that goes into /usr/local/lib and then just moved the files to /usr/local/lib/dbmail, i supose i'm doing it correct Could it be some spam email mailformed that can be causing this when dbmail processes the sieve script against the mailformed email? ---------------------------------------------------------------------- paul - 11-Nov-06 17:53 ---------------------------------------------------------------------- Jorge, that's just silly. The libsieve files do *not* belong in /usr/local/lib/dbmail. Only libdbmail and the dbmail modules (like libsortsieve.so) belong there. ---------------------------------------------------------------------- jasb - 12-Nov-06 11:29 ---------------------------------------------------------------------- Hum, but if i compile libsieve with the default and let the lib files in /usr/local/lib dbmail complains that cannot find them, that's why i moved them to there. I'm i doing right this or can it be something else? ---------------------------------------------------------------------- jasb - 12-Nov-06 11:37 ---------------------------------------------------------------------- I just reconfirmed it. For each received message, the account receives one error message like the one i showed you, complaining with the vacation+regex support ---------------------------------------------------------------------- jasb - 12-Nov-06 12:56 ---------------------------------------------------------------------- Ok i have more info: Attached i have 2 files, "sieve error already sent" and "sieve error sent", in the already sent that the end mailbox already received this error today and he says: in line 279: Nov 12 11:10:12 lira dbmail/lmtpd[22216]: Info:[delivery] pipe.c,send_alert(+679): Already sent alert [Sieve script parse error] to user [267] today in the other file it sent the error to the client, and i see in lines 103 and 104. Nov 12 11:20:36 lira dbmail/lmtpd[22216]: Debug:[sql] dbmysql.c,db_query(+286): query [SELECT script FROM dbmail_sievescripts WHERE owner_idnr = 214 AND name = 'phpscript'] Nov 12 11:20:36 lira dbmail/lmtpd[22216]: Info:[sort] sortsieve.c,sort_errparse(+273): Error is PARSE: Line is [8], Message is [unsupported feature: vacation regex] and line 8 of the sieve script has: require ["fileinto","envelope","reject","vacation","regex"]; this user is another one, it has a similar script from the one i posted on the beginning, but i pasted it again below, it has the adicional "vacation" # This script has been automatically generated by avelsieve # (Sieve Mail Filters Plugin for Squirrelmail) # Warning: If you edit this manually, then the changes will not # be reflected in the users' front-end! #AVELSIEVE_VERSIONYTo0OntzOjU6Im1ham9yIjtpOjE7czo1OiJtaW5vciI7aTo5O3M6NzoicmVsZWFzZSI7aTo3O3M6Njoic3RyaW5nIjtzOjU6IjEuOS43Ijt9 #AVELSIEVE_CREATED1157842014 #AVELSIEVE_MODIFIED1159004937 require ["fileinto","envelope","reject","vacation","regex"]; if #START_SIEVE_RULEYTo2OntzOjQ6ImNvbmQiO2E6MTp7aTowO2E6MTp7czo0OiJ0eXBlIjtzOjM6ImFsbCI7fX1zOjQ6InR5cGUiO3M6MToiMSI7czo5OiJjb25kaXRpb24iO3M6MzoiYW5kIjtzOjY6ImFjdGlvbiI7czoxOiI0IjtzOjEzOiJyZWRpcmVjdGVtYWlsIjtzOjE4OiJhbGxtYWlsQGVjb2ZtZXEucHQiO3M6NDoia2VlcCI7czoyOiJvbiI7fQ%3D%3DEND_SIEVE_RULE true { keep; redirect "[EMAIL PROTECTED]"; } if #START_SIEVE_RULEYTo0OntzOjQ6ImNvbmQiO2E6Mjp7aTowO2E6NDp7czo0OiJ0eXBlIjtzOjY6ImhlYWRlciI7czo2OiJoZWFkZXIiO3M6MjoiVG8iO3M6OToibWF0Y2h0eXBlIjtzOjg6ImNvbnRhaW5zIjtzOjExOiJoZWFkZXJtYXRjaCI7czoyMjoibmFvc2VpQHlhaG9vZ3JvdXBzLmNvbSI7fWk6MTthOjQ6e3M6NDoidHlwZSI7czo2OiJoZWFkZXIiO3M6NjoiaGVhZGVyIjtzOjQ6IkZyb20iO3M6OToibWF0Y2h0eXBlIjtzOjg6ImNvbnRhaW5zIjtzOjExOiJoZWFkZXJtYXRjaCI7czoyODoicGF1bG8uZmlndWVpcmVkby43QGdtYWlsLmNvbSI7fX1zOjQ6InR5cGUiO3M6MToiMSI7czo5OiJjb25kaXRpb24iO3M6MzoiYW5kIjtzOjY6ImFjdGlvbiI7czoxOiIyIjt9END_SIEVE_RULE allof (header :contains "To" "[EMAIL PROTECTED]", header :contains "From" "[EMAIL PROTECTED]") { discard; } I rechecked dbmail.conf and i had: SIEVE_VACATION=yes but, why is he complaining about regex? the sieve script i pasted in the beginning of this bug report is from another user that the only diferences is on the load: (script of the begining of bug report) require ["fileinto","envelope","reject","regex"]; (script from the logs with error) require ["fileinto","envelope","reject","vacation","regex"]; Both end with that error message. ---------------------------------------------------------------------- aaron - 12-Nov-06 22:45 ---------------------------------------------------------------------- I'm sorry, I still can't reproduce this bug :-( I've tried each of your scripts, and I've generated a few with Squirrelmail/Avelsieve myself and they work fine :-) ---------------------------------------------------------------------- jasb - 12-Nov-06 22:56 ---------------------------------------------------------------------- This is really strange i know.. reconfirm me one thing aaron, dbmail look's the the sieve libs where, /usr/local/lib/dbmail or /usr/local/lib ? compiling libsieve with the default they go to /usr/local/lib, but dbmail can't find them there so i just move them to /usr/local/lib/dbmail and works fine. ---------------------------------------------------------------------- aaron - 13-Nov-06 02:56 ---------------------------------------------------------------------- Is /usr/local/lib in your ld.so.conf? ---------------------------------------------------------------------- jasb - 13-Nov-06 10:27 ---------------------------------------------------------------------- Hum.. no :) Should it be there? :$ ---------------------------------------------------------------------- paul - 13-Nov-06 10:36 ---------------------------------------------------------------------- No Jorge, it doesn't need to be in there on modern linux distros. But it will help make sure the loader can find libraries installed in /usr/local/lib You can also configure libsieve with --prefix=/usr so libsieve.so will be installed in /usr/lib. If your system can't find shared libs there you have a problem (unrelated to dbmail that is). ---------------------------------------------------------------------- jasb - 15-Nov-06 17:14 ---------------------------------------------------------------------- Hi, I've noticed something else, the script wich deletes email that conteins "*****SPAM*****" in the subject it's not beeing executed. ---------------------------------------------------------------------- jasb - 16-Nov-06 22:56 ---------------------------------------------------------------------- Me again, Doing some tests, i confirm that with the script only with: --- require ["fileinto","envelope","reject","regex"]; if true { keep; redirect "[EMAIL PROTECTED]"; } --- This happens sometimes also ---------------------------------------------------------------------- aaron - 17-Nov-06 09:39 ---------------------------------------------------------------------- Jorge, please contact me directly -- aaron at serendipity dot cx -- so that we can diagnose this further and try to nail down the issue. This bug report is starting to look more like a web forum :-P ---------------------------------------------------------------------- jasb - 17-Nov-06 10:44 ---------------------------------------------------------------------- heeh ok aaron, you're right, this is in fact "big" Issue History Date Modified Username Field Change ====================================================================== 10-Nov-06 23:24 jasb New Issue 10-Nov-06 23:56 aaron Note Added: 0001584 10-Nov-06 23:59 jasb Note Added: 0001585 11-Nov-06 00:01 jasb Note Added: 0001586 11-Nov-06 03:56 aaron Note Added: 0001587 11-Nov-06 12:50 jasb Note Added: 0001588 11-Nov-06 17:53 paul Note Added: 0001589 12-Nov-06 11:29 jasb Note Added: 0001590 12-Nov-06 11:37 jasb Note Added: 0001591 12-Nov-06 12:56 jasb Note Added: 0001592 12-Nov-06 22:45 aaron Note Added: 0001593 12-Nov-06 22:46 aaron Note Added: 0001594 12-Nov-06 22:56 jasb Note Added: 0001595 13-Nov-06 02:55 aaron Note Added: 0001596 13-Nov-06 02:55 aaron Note Deleted: 0001594 13-Nov-06 02:55 aaron Note Deleted: 0001596 13-Nov-06 02:56 aaron Note Added: 0001597 13-Nov-06 10:27 jasb Note Added: 0001598 13-Nov-06 10:36 paul Note Added: 0001599 15-Nov-06 17:14 jasb Note Added: 0001601 16-Nov-06 22:56 jasb Note Added: 0001602 17-Nov-06 09:39 aaron Note Added: 0001605 17-Nov-06 10:44 jasb Note Added: 0001606 ======================================================================