Re: strange sieve problem
Hello, Oh, didn't change waldinet.local to my.local I found out why I had problems, the 2nd worked, the first not ... in /var/lib/imap/sieve there I had 2 folders: global and w/walter and both contained a sieve script, the one under w/walter was older and didn't handle the 2nd mail, and I guess that the other in global didn't come to work ... I did the following service cyrus-imapd stop rm -rf w/walter mv global w/walter service cyrus-imapd start and this solved it, but I don't know why there were 2 sieve scripts - one global and for user walter (me) when I update my sieve script I do the following: sieveshell --authname=cyrus --user=walter localhost and there put filter.script quite strange how this happened; Greetings, Walter On Tue, April 4, 2017 12:15, Patrick Boutilier wrote: > Is it the second email sample that does not work? If so the To: on that > one is walter@waldinet.local and I don't see any rules for > walter@waldinet.local. Also, where does the mail that doesn't work end up? > > > On 04/04/2017 03:00 AM, Walter H. via Info-cyrus wrote: >> Hello, >> >> I've found a Sieve Tester, where everything works as I expect >> >> https://www.fastmail.com/cgi-bin/sievetest.pl >> >> but Cyrus Sieve doesn't >> >> here the Sieve-Script >> >> >> # Sieve filter >> >> require ["fileinto", "relational"]; >> >> if not exists ["from"] >> { >> discard; >> } >> elsif allof (address :all :is "from" "sq...@proxy.my.local", >> address :all :is "to" "walter@my.local") >> { >> if header :matches "subject" "[proxy] Video-URL (*) detected" >> { >> fileinto "INBOX._Info.hbbtvVideoURLs"; >> } >> elsif header :matches "subject" "[proxy] File-URL (*) detected" >> { >> fileinto "INBOX._Info.ftpFileURLs"; >> } >> else >> { >> fileinto "INBOX._Info"; >> } >> } >> elsif allof (address :all :is "from" "cla...@mail.my.local", >> address :all :is "to" "walter@my.local") >> { >> if header :matches "subject" "[mail] Virus detected in E-mail" >> { >> fileinto "INBOX._Alert"; >> } >> } >> elsif header :matches "list-id" "*" >> { >> fileinto "INBOX._MailLists._CENTOS"; >> } >> elsif header :is "precedence" "bulk" >> { >> fileinto "INBOX.Trash"; >> } >> else >> { >> keep; >> } >> >> >> and this is the Mail >> >> >> Return-Path:>> Received: from storage.mail ([unix socket]) >> by storage.mail (Cyrus v2.3.16-Fedora-RPM-2.3.16-13.el6_6) with >> LMTPA; >> Mon, 03 Apr 2017 21:27:35 +0200 >> X-Sieve: CMU Sieve 2.3 >> Received: from proxy.host by storage.mail (Postfix) with ESMTP id >> 19B2C79235 >> Received: by proxy.host (Postfix, userid 23) id EB81D2B0BE >> Date: Mon, 03 Apr 2017 21:27:34 +0200 >> To: walter@my.local >> Subject: [proxy] File-URL (PC) detected >> User-Agent: Heirloom mailx 12.4 7/29/08 >> MIME-Version: 1.0 >> Content-Type: text/plain; charset=us-ascii >> Content-Transfer-Encoding: 7bit >> Message-Id: <20170403192734.eb81d2b...@proxy.my.local> >> From: sq...@proxy.my.local (Squid) >> >> The following information came from the Squid proxy virtual machine. >> >> --[ Data submitted >> ]--- >> >> File-URL: ftp://ftp.adobe.com/lbtest.txt >> >> >> >> this Mail is sorted correct by the sieve script >> >> >> Return-Path: >> Received: from storage.mail ([unix socket]) >> by storage.mail (Cyrus v2.3.16-Fedora-RPM-2.3.16-13.el6_6) with LMTPA; >> Sun, 05 Feb 2017 19:14:15 +0100 >> X-Sieve: CMU Sieve 2.3 >> Received: from filter.mail by storage.mail (Postfix) with ESMTP id >> 5634078BA8 >> Received: by filter.mail (Postfix) id 48F198E9 >> Delivered-To: r...@filter.mail >> Received: from filter.mail [local] by filter.mail (Postfix) with ESMTP >> id >> 35E838E8 >> Received: by filter.mail (Postfix, userid 496) id 2A20D8E9 >> From: ClamAV >> To: walter@waldinet.local >> Subject: [mail] Virus detected in E-mail >> Message-Id: <20170205181415.2a20d...@mail.my.local> >> Date: Sun, 5 Feb 2017 19:14:15 +0100 (CET) >> X-AV-Scanned: ClamAV using ClamSMTP (filter.mail) >> >> The following information came from the Mail filter virtual machine. >> >> --[ Data submitted >> ]--- >> >> Virus name: Heuristics.Phishing.Email.SpoofedDomain >> Sender: >> rte+ne-null-b1cb1a01203481e6zubgcse...@sellernotifications.amazon.com >> >> Quarantined to: /var/lib/clamd.clamsmtp/virus.XeKpYL >> >> --[ E-Mail header >> ] >> >> ... >> >> >> >> can someone give me a hint, what is wrong, >> >> Thanks, >> Walter >> >> >> Cyrus Home Page: http://www.cyrusimap.org/ >> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ >> To Unsubscribe: >> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Re: strange sieve problem
Is it the second email sample that does not work? If so the To: on that one is walter@waldinet.local and I don't see any rules for walter@waldinet.local. Also, where does the mail that doesn't work end up? On 04/04/2017 03:00 AM, Walter H. via Info-cyrus wrote: Hello, I've found a Sieve Tester, where everything works as I expect https://www.fastmail.com/cgi-bin/sievetest.pl but Cyrus Sieve doesn't here the Sieve-Script # Sieve filter require ["fileinto", "relational"]; if not exists ["from"] { discard; } elsif allof (address :all :is "from" "sq...@proxy.my.local", address :all :is "to" "walter@my.local") { if header :matches "subject" "[proxy] Video-URL (*) detected" { fileinto "INBOX._Info.hbbtvVideoURLs"; } elsif header :matches "subject" "[proxy] File-URL (*) detected" { fileinto "INBOX._Info.ftpFileURLs"; } else { fileinto "INBOX._Info"; } } elsif allof (address :all :is "from" "cla...@mail.my.local", address :all :is "to" "walter@my.local") { if header :matches "subject" "[mail] Virus detected in E-mail" { fileinto "INBOX._Alert"; } } elsif header :matches "list-id" "*" { fileinto "INBOX._MailLists._CENTOS"; } elsif header :is "precedence" "bulk" { fileinto "INBOX.Trash"; } else { keep; } and this is the Mail Return-Path:Received: from storage.mail ([unix socket]) by storage.mail (Cyrus v2.3.16-Fedora-RPM-2.3.16-13.el6_6) with LMTPA; Mon, 03 Apr 2017 21:27:35 +0200 X-Sieve: CMU Sieve 2.3 Received: from proxy.host by storage.mail (Postfix) with ESMTP id 19B2C79235 Received: by proxy.host (Postfix, userid 23) id EB81D2B0BE Date: Mon, 03 Apr 2017 21:27:34 +0200 To: walter@my.local Subject: [proxy] File-URL (PC) detected User-Agent: Heirloom mailx 12.4 7/29/08 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20170403192734.eb81d2b...@proxy.my.local> From: sq...@proxy.my.local (Squid) The following information came from the Squid proxy virtual machine. --[ Data submitted ]--- File-URL: ftp://ftp.adobe.com/lbtest.txt this Mail is sorted correct by the sieve script Return-Path: Received: from storage.mail ([unix socket]) by storage.mail (Cyrus v2.3.16-Fedora-RPM-2.3.16-13.el6_6) with LMTPA; Sun, 05 Feb 2017 19:14:15 +0100 X-Sieve: CMU Sieve 2.3 Received: from filter.mail by storage.mail (Postfix) with ESMTP id 5634078BA8 Received: by filter.mail (Postfix) id 48F198E9 Delivered-To: r...@filter.mail Received: from filter.mail [local] by filter.mail (Postfix) with ESMTP id 35E838E8 Received: by filter.mail (Postfix, userid 496) id 2A20D8E9 From: ClamAV To: walter@waldinet.local Subject: [mail] Virus detected in E-mail Message-Id: <20170205181415.2a20d...@mail.my.local> Date: Sun, 5 Feb 2017 19:14:15 +0100 (CET) X-AV-Scanned: ClamAV using ClamSMTP (filter.mail) The following information came from the Mail filter virtual machine. --[ Data submitted ]--- Virus name: Heuristics.Phishing.Email.SpoofedDomain Sender: rte+ne-null-b1cb1a01203481e6zubgcse...@sellernotifications.amazon.com Quarantined to: /var/lib/clamd.clamsmtp/virus.XeKpYL --[ E-Mail header ] ... can someone give me a hint, what is wrong, Thanks, Walter Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus <> Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Re: strange sieve problem
On Tue, April 4, 2017 08:42, ellie timoney wrote: >> Received: from storage.mail ([unix socket]) >> by storage.mail (Cyrus v2.3.16-Fedora-RPM-2.3.16-13.el6_6) with >> LMTPA; >> Mon, 03 Apr 2017 21:27:35 +0200 >> X-Sieve: CMU Sieve 2.3 > > Wild guess, is your script using sieve features that are not available > in 2.3.16? can't imagine, because when you look at the samples below, you see, that one works and the other not, but why? and there is used the same feature inside the script for both ... > 2.3.16 was released in 2009. its the release that comes with CentOS 6 Thanks, Walter Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Re: strange sieve problem
> Received: from storage.mail ([unix socket]) > by storage.mail (Cyrus v2.3.16-Fedora-RPM-2.3.16-13.el6_6) with > LMTPA; > Mon, 03 Apr 2017 21:27:35 +0200 > X-Sieve: CMU Sieve 2.3 Wild guess, is your script using sieve features that are not available in 2.3.16? 2.3.16 was released in 2009. On Tue, Apr 4, 2017, at 04:00 PM, Walter H. via Info-cyrus wrote: > Hello, > > I've found a Sieve Tester, where everything works as I expect > > https://www.fastmail.com/cgi-bin/sievetest.pl > > but Cyrus Sieve doesn't > > here the Sieve-Script > > > # Sieve filter > > require ["fileinto", "relational"]; > > if not exists ["from"] > { > discard; > } > elsif allof (address :all :is "from" "sq...@proxy.my.local", > address :all :is "to" "walter@my.local") > { > if header :matches "subject" "[proxy] Video-URL (*) detected" > { > fileinto "INBOX._Info.hbbtvVideoURLs"; > } > elsif header :matches "subject" "[proxy] File-URL (*) detected" > { > fileinto "INBOX._Info.ftpFileURLs"; > } > else > { > fileinto "INBOX._Info"; > } > } > elsif allof (address :all :is "from" "cla...@mail.my.local", > address :all :is "to" "walter@my.local") > { > if header :matches "subject" "[mail] Virus detected in E-mail" > { > fileinto "INBOX._Alert"; > } > } > elsif header :matches "list-id" "*" > { > fileinto "INBOX._MailLists._CENTOS"; > } > elsif header :is "precedence" "bulk" > { > fileinto "INBOX.Trash"; > } > else > { > keep; > } > > > and this is the Mail > > > Return-Path:> Received: from storage.mail ([unix socket]) > by storage.mail (Cyrus v2.3.16-Fedora-RPM-2.3.16-13.el6_6) with > LMTPA; > Mon, 03 Apr 2017 21:27:35 +0200 > X-Sieve: CMU Sieve 2.3 > Received: from proxy.host by storage.mail (Postfix) with ESMTP id > 19B2C79235 > Received: by proxy.host (Postfix, userid 23) id EB81D2B0BE > Date: Mon, 03 Apr 2017 21:27:34 +0200 > To: walter@my.local > Subject: [proxy] File-URL (PC) detected > User-Agent: Heirloom mailx 12.4 7/29/08 > MIME-Version: 1.0 > Content-Type: text/plain; charset=us-ascii > Content-Transfer-Encoding: 7bit > Message-Id: <20170403192734.eb81d2b...@proxy.my.local> > From: sq...@proxy.my.local (Squid) > > The following information came from the Squid proxy virtual machine. > > --[ Data submitted > ]--- > > File-URL: ftp://ftp.adobe.com/lbtest.txt > > > > this Mail is sorted correct by the sieve script > > > Return-Path: > Received: from storage.mail ([unix socket]) > by storage.mail (Cyrus v2.3.16-Fedora-RPM-2.3.16-13.el6_6) with LMTPA; > Sun, 05 Feb 2017 19:14:15 +0100 > X-Sieve: CMU Sieve 2.3 > Received: from filter.mail by storage.mail (Postfix) with ESMTP id > 5634078BA8 > Received: by filter.mail (Postfix) id 48F198E9 > Delivered-To: r...@filter.mail > Received: from filter.mail [local] by filter.mail (Postfix) with ESMTP id > 35E838E8 > Received: by filter.mail (Postfix, userid 496) id 2A20D8E9 > From: ClamAV > To: walter@waldinet.local > Subject: [mail] Virus detected in E-mail > Message-Id: <20170205181415.2a20d...@mail.my.local> > Date: Sun, 5 Feb 2017 19:14:15 +0100 (CET) > X-AV-Scanned: ClamAV using ClamSMTP (filter.mail) > > The following information came from the Mail filter virtual machine. > > --[ Data submitted > ]--- > > Virus name: Heuristics.Phishing.Email.SpoofedDomain > Sender: > rte+ne-null-b1cb1a01203481e6zubgcse...@sellernotifications.amazon.com > > Quarantined to: /var/lib/clamd.clamsmtp/virus.XeKpYL > > --[ E-Mail header > ] > > ... > > > > can someone give me a hint, what is wrong, > > Thanks, > Walter > > > Cyrus Home Page: http://www.cyrusimap.org/ > List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ > To Unsubscribe: > https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
strange sieve problem
Hello, I've found a Sieve Tester, where everything works as I expect https://www.fastmail.com/cgi-bin/sievetest.pl but Cyrus Sieve doesn't here the Sieve-Script # Sieve filter require ["fileinto", "relational"]; if not exists ["from"] { discard; } elsif allof (address :all :is "from" "sq...@proxy.my.local", address :all :is "to" "walter@my.local") { if header :matches "subject" "[proxy] Video-URL (*) detected" { fileinto "INBOX._Info.hbbtvVideoURLs"; } elsif header :matches "subject" "[proxy] File-URL (*) detected" { fileinto "INBOX._Info.ftpFileURLs"; } else { fileinto "INBOX._Info"; } } elsif allof (address :all :is "from" "cla...@mail.my.local", address :all :is "to" "walter@my.local") { if header :matches "subject" "[mail] Virus detected in E-mail" { fileinto "INBOX._Alert"; } } elsif header :matches "list-id" "*" { fileinto "INBOX._MailLists._CENTOS"; } elsif header :is "precedence" "bulk" { fileinto "INBOX.Trash"; } else { keep; } and this is the Mail Return-Path:Received: from storage.mail ([unix socket]) by storage.mail (Cyrus v2.3.16-Fedora-RPM-2.3.16-13.el6_6) with LMTPA; Mon, 03 Apr 2017 21:27:35 +0200 X-Sieve: CMU Sieve 2.3 Received: from proxy.host by storage.mail (Postfix) with ESMTP id 19B2C79235 Received: by proxy.host (Postfix, userid 23) id EB81D2B0BE Date: Mon, 03 Apr 2017 21:27:34 +0200 To: walter@my.local Subject: [proxy] File-URL (PC) detected User-Agent: Heirloom mailx 12.4 7/29/08 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20170403192734.eb81d2b...@proxy.my.local> From: sq...@proxy.my.local (Squid) The following information came from the Squid proxy virtual machine. --[ Data submitted ]--- File-URL: ftp://ftp.adobe.com/lbtest.txt this Mail is sorted correct by the sieve script Return-Path: Received: from storage.mail ([unix socket]) by storage.mail (Cyrus v2.3.16-Fedora-RPM-2.3.16-13.el6_6) with LMTPA; Sun, 05 Feb 2017 19:14:15 +0100 X-Sieve: CMU Sieve 2.3 Received: from filter.mail by storage.mail (Postfix) with ESMTP id 5634078BA8 Received: by filter.mail (Postfix) id 48F198E9 Delivered-To: r...@filter.mail Received: from filter.mail [local] by filter.mail (Postfix) with ESMTP id 35E838E8 Received: by filter.mail (Postfix, userid 496) id 2A20D8E9 From: ClamAV To: walter@waldinet.local Subject: [mail] Virus detected in E-mail Message-Id: <20170205181415.2a20d...@mail.my.local> Date: Sun, 5 Feb 2017 19:14:15 +0100 (CET) X-AV-Scanned: ClamAV using ClamSMTP (filter.mail) The following information came from the Mail filter virtual machine. --[ Data submitted ]--- Virus name: Heuristics.Phishing.Email.SpoofedDomain Sender: rte+ne-null-b1cb1a01203481e6zubgcse...@sellernotifications.amazon.com Quarantined to: /var/lib/clamd.clamsmtp/virus.XeKpYL --[ E-Mail header ] ... can someone give me a hint, what is wrong, Thanks, Walter Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Sieve Problem
Hello, I'm running Cyrus IMAP on a Debian wheezy machine with sieve. Mails are filtered correctly. However since some days I get an error when I try to connect via sieveshell: Bad protocol from MANAGESIEVE server: EOL2 netstat gives me the following relevate outputs: tcp0 0 w.x.y.z:143 0.0.0.0:* LISTEN 0 40631 11677/cyrmaster tcp0 0 127.0.0.1:4190 0.0.0.0:* LISTEN 0 40641 11677/cyrmaster unix 2 [ ] DGRAM4065311713/timsieved sieve is activated in cyrus.conf: sieve cmd=timsieved listen=localhost:sieve prefork=0 maxchild=100 in imapd.conf sieveusehomedir: false sievedir: /var/spool/sieve permissions of $sievedir are cyrus:mail Already having done al lot of searching I didn't find any hint what's wrong. Thanks Harry Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Re: sieve problem with vacation filter again.
Hello, in sieve there are some restrictions for vacations to prevent mailloops and replys to mails not sent directly to the mailaddress of the user. The vacation rule has the option :addresses to specify additional addresses which belong to the user. There is no way cyrus could know the Forwarded address, so you have to add it to the rule for the vacation to work. Quoting Maria McKinley ma...@shadlen.org: I have both addresses in the sieve rule. If you send a mail to the address that gets forwarded, you do not get a response, but if you send a mail to the direct address, you do get a vacation response. ~maria Date: Wed, 21 Apr 2010 15:45:26 -0400 From: Joseph Brennan bren...@columbia.edu Subject: Re: sieve problem with vacation filter again. To: info-cyrus@lists.andrew.cmu.edu Message-ID: 47d6211e92001626abbc9...@sodor.cc.columbia.edu Content-Type: text/plain; charset=us-ascii; format=flowed Maria McKinley ma...@shadlen.org wrote: The only thing unusual about this account, that I can think of, is that he is forwarding mail to this account from other accounts. Did you put those other addresses in the sieve rule? Joseph Brennan Columbia University Information Technology -- ___ Info-cyrus mailing list Info-cyrus@lists.andrew.cmu.edu https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus End of Info-cyrus Digest, Vol 57, Issue 28 ** Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html M.MengeTel.: (49) 7071/29-70316 Universität Tübingen Fax.: (49) 7071/29-5912 Zentrum für Datenverarbeitung mail: michael.me...@zdv.uni-tuebingen.de Wächterstraße 76 72074 Tübingen smime.p7s Description: S/MIME Signatur Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: sieve problem with vacation filter again.
Thanks, I think I am already doing what you are suggesting, but not sure. Here is what my sieve script looks like (spam stuff makes no difference to vacation problem): # 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_CREATED1116909362 #AVELSIEVE_MODIFIED1271887955 require [fileinto,envelope,reject,vacation,imapflags,relational,comparator-i;ascii-numeric,regex,notify]; if header :contains X-Spam-Flag YES { fileinto INBOX.spam; } if true { vacation :days 1 :addresses [ma...@local.address,ma...@forwarded.address] text: This is an automated reply; I am testing the vacation messages. You can safely ignore this message, I am currently checking email, and will get your message. thanks, maria . ; } So, I think I am doing what you are saying, since I have both email addresses in the addresses section, or are you saying there is someplace else that forwarded addresses should go? thanks, maria Message: 3 Date: Fri, 23 Apr 2010 13:47:50 +0200 From: Michael Menge michael.me...@zdv.uni-tuebingen.de Subject: Re: sieve problem with vacation filter again. To: info-cyrus@lists.andrew.cmu.edu Message-ID: 20100423134750.20064db2451ml...@webmail.uni-tuebingen.de Content-Type: text/plain; charset=utf-8 Hello, in sieve there are some restrictions for vacations to prevent mailloops and replys to mails not sent directly to the mailaddress of the user. The vacation rule has the option :addresses to specify additional addresses which belong to the user. There is no way cyrus could know the Forwarded address, so you have to add it to the rule for the vacation to work. Quoting Maria McKinley ma...@shadlen.org: I have both addresses in the sieve rule. If you send a mail to the address that gets forwarded, you do not get a response, but if you send a mail to the direct address, you do get a vacation response. ~maria Date: Wed, 21 Apr 2010 15:45:26 -0400 From: Joseph Brennan bren...@columbia.edu Subject: Re: sieve problem with vacation filter again. To: info-cyrus@lists.andrew.cmu.edu Message-ID: 47d6211e92001626abbc9...@sodor.cc.columbia.edu Content-Type: text/plain; charset=us-ascii; format=flowed Maria McKinley ma...@shadlen.org wrote: The only thing unusual about this account, that I can think of, is that he is forwarding mail to this account from other accounts. Did you put those other addresses in the sieve rule? Joseph Brennan Columbia University Information Technology -- ___ Info-cyrus mailing list Info-cyrus@lists.andrew.cmu.edu https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus End of Info-cyrus Digest, Vol 57, Issue 28 ** Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html M.MengeTel.: (49) 7071/29-70316 Universit?t T?bingen Fax.: (49) 7071/29-5912 Zentrum f?r Datenverarbeitung mail: michael.me...@zdv.uni-tuebingen.de W?chterstra?e 76 72074 T?bingen -- next part -- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 5339 bytes Desc: S/MIME Signatur Url : http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20100423/69f73f0e/attachment-0001.bin -- ___ Info-cyrus mailing list Info-cyrus@lists.andrew.cmu.edu https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus End of Info-cyrus Digest, Vol 57, Issue 29 ** Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: sieve problem with vacation filter again.
I have both addresses in the sieve rule. If you send a mail to the address that gets forwarded, you do not get a response, but if you send a mail to the direct address, you do get a vacation response. ~maria Date: Wed, 21 Apr 2010 15:45:26 -0400 From: Joseph Brennan bren...@columbia.edu Subject: Re: sieve problem with vacation filter again. To: info-cyrus@lists.andrew.cmu.edu Message-ID: 47d6211e92001626abbc9...@sodor.cc.columbia.edu Content-Type: text/plain; charset=us-ascii; format=flowed Maria McKinley ma...@shadlen.org wrote: The only thing unusual about this account, that I can think of, is that he is forwarding mail to this account from other accounts. Did you put those other addresses in the sieve rule? Joseph Brennan Columbia University Information Technology -- ___ Info-cyrus mailing list Info-cyrus@lists.andrew.cmu.edu https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus End of Info-cyrus Digest, Vol 57, Issue 28 ** Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: sieve problem with vacation filter again.
Maria McKinley wrote: I had managed to get the vacation filter working for the user that was having problems by getting rid of the database and playing around with the filter forever, but it seems that the fix was only temporary. Other filters still work fine, and vacation filters for other users work fine. Of course, the only user that is having this problem is my boss. :-( The only thing unusual about this account, that I can think of, is that he is forwarding mail to this account from other accounts. Any ideas what could be causing the filter to stop working? thanks, maria I did some more testing, and the problem is the forwarding through gmail. Gmail must change the header somehow before sending it on. Any ideas on how to get around this? thanks, maria Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: sieve problem with vacation filter again.
Maria McKinley ma...@shadlen.org wrote: The only thing unusual about this account, that I can think of, is that he is forwarding mail to this account from other accounts. Did you put those other addresses in the sieve rule? Joseph Brennan Columbia University Information Technology Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: authentication and/or sieve problem?
Dan White wrote: On 28/10/09 00:47 -0700, Maria McKinley wrote: ella:/var/log# testsaslauthd -u test -p xxx -s smtp 0: OK Success. ella:/var/log# testsaslauthd -u test -p xxx -s imaps 0: NO authentication failed ella:/var/log# testsaslauthd -u test -p xxx -s imap 0: OK Success. Can you provide sanitized copies of the following?: Your saslauthd startup options (e.g. /etc/default/saslauthd) So, while copying file contents, I stumbled upon a missing file. I had looked in pam.d a bunch of times, but until you asked me for the actual contents, I had somehow overlooked that there was no imaps file. I copied the smtp file to the imaps file, and now testsaslauthd works for all three services. Yay! But, then I started going back through the logs, and realized that tls with imaps had been working all along. It was just one particular ip that was failing, it was just failing a lot, and there were very few scattered here and there that were successful. So, not sure why that was working (should I worry that it was?), but I am now pretty sure my problems with sieve are not related to authenticating. What does your sieve entry look like in cyrus.conf? What's your squirrelmail sieve (avelsieve?) configuration look like? from cyrus.conf: sieve cmd=timsieved listen=sieve prefork=0 maxchild=100 avelsieve-config.php. got rid of some comments in the interest of space Hadn't noticed this debugging option before. Would it send logs to syslog? /** * Debug Mode. Enable this (change to 1) if you need to send a bug report. */ define('AVELSIEVE_DEBUG', 0); /* === IMAP Server / SIEVE Setup = */ /* Backend to use */ global $avelsieve_backend; $avelsieve_backend = 'ManageSieve'; /* === ManageSieve Backend Options */ /* Port where timsieved listens on the Cyrus IMAP server. Default is 2000. */ global $sieveport; $sieveport = 2000; /** * @var string Space separated list of preferred SASL mechanisms for the * authentication to timsieved. e.g. PLAIN DIGEST-MD5;*/ global $sieve_preferred_sasl_mech; $sieve_preferred_sasl_mech = 'PLAIN'; /* == Implementation- and Server-Specific Options */ global $avelsieve_oldcyrus; $avelsieve_oldcyrus = true; global $avelsieve_enable_envelope_auth; $avelsieve_enable_envelope_auth = true; global $avelsieve_custom_sieve_implementation; $avelsieve_custom_sieve_implementation = ''; global $avelsieve_hardcoded_capabilities; $avelsieve_hardcoded_capabilities = array( 'envelope', 'fileinto', 'copy', 'vacation', 'comparator-i;ascii-numeric' ); global $avelsieve_imapproxymode, $avelsieve_imapproxyserv; $avelsieve_imapproxymode = false; $avelsieve_imapproxyserv = array( 'localhost' = 'imap.example.org' ); /** @var boolean Ldapuserdata mode: Gets user's email addresses (including * mailAlternate mailAuthorized) from LDAP Prefs Backend plugin's cache */ global $avelsieve_ldapuserdatamode; $avelsieve_ldapuserdatamode = false; /** @var array Map of cyrus administrator users, for proxy authentication */ global $avelsieve_cyrusadmins_map; $avelsieve_cyrusadmins_map = array( 'cyrusimap' = 'cyrussieve' ); /* === Avelsieve Interface / Behavior Setup == */ /* Be conservative to our updates on the SIEVE server? If true, a button * entitled Save Changes will appear, which will give the user the * functionality to register her changes. 'false' is recommended. */ $conservative = false; /* Use images for the move up / down, delete rule buttons and STOP? */ $useimages = true; /* Translate the messages returned by the Reject and Vacation actions? The * default behaviour since 0.9 is not to translate them. Change to true if in * an intranet environment or in a same-language environment. */ global $translate_return_msgs; $translate_return_msgs = false; $imagetheme = 'bluecurve_24x24'; //$imagetheme = 'bluecurve_16x16'; /* Number of items to display _initially_, when displaying the header match * rule */ $startitems = 3; /* Maximum number of items to allow in one header match rule. */ $maxitems = 10; /* Headers to display in listbox widget, when adding a new header rule. */ $headers = array( 'From', 'To', 'Cc', 'Bcc', 'Subject', 'Reply-To', 'Sender', 'List-Id', 'MailingList', 'Mailing-List', 'X-ML-Name', 'X-List', 'X-List-Name', 'X-MailingList', 'Resent-From', 'Resent-To', 'X-Mailer', 'X-Mailing-List', /* debian and ubuntu flags */ 'X-PTS-Package', 'X-Loop', 'X-Debian-PR-Message', 'X-Debian-PR-Package', 'X-Debian-PR-Keywords', 'X-Debian-PR-Source', 'X-PTS-Keyword', 'X-Debian', 'X-Debian-Package', 'X-Launchpad-Bug', 'X-Launchpad-Bug-Private', 'X-Launchpad-Bug-Security-Vulnerability', 'X-Launchpad-Message-Rationale', 'X-Generated-By', /* debian and ubuntu flags end */ 'X-Spam-Flag', 'X-Spam-Status', 'X-Priority', 'Importance', 'X-MSMail-Priority',
Re: authentication and/or sieve problem?
Dan White wrote: On 28/10/09 00:47 -0700, Maria McKinley wrote: ella:/var/log# testsaslauthd -u test -p xxx -s smtp 0: OK Success. ella:/var/log# testsaslauthd -u test -p xxx -s imaps 0: NO authentication failed ella:/var/log# testsaslauthd -u test -p xxx -s imap 0: OK Success. Can you provide sanitized copies of the following?: Your saslauthd startup options (e.g. /etc/default/saslauthd) So, while copying file contents, I stumbled upon a missing file. I had looked in pam.d a bunch of times, but until you asked me for the actual contents, I had somehow overlooked that there was no imaps file. I I'm a bit confused because I never had a imaps config for PAM. Doesn't cyrus-imapd always use imap as service name for imap + imaps? If that's the case then it's no error that you testsaslauthd call mentioned above didn't succeed. copied the smtp file to the imaps file, and now testsaslauthd works for all three services. Yay! But, then I started going back through the logs, and realized that tls with imaps had been working all along. It Yes, that makes sense now, doesn't it? was just one particular ip that was failing, it was just failing a lot, and there were very few scattered here and there that were successful. So, not sure why that was working (should I worry that it was?), but I am now pretty sure my problems with sieve are not related to authenticating. I'm using squirrelmail-1.4.19 with avelsieve-1.9.8 against cyrus-imapd-2.3.15 both on PHP4 and PHP5 but with plaintext. Older versions had some issues when using the wrong combination IIRC. What are your versions used? Regards, Simon What does your sieve entry look like in cyrus.conf? What's your squirrelmail sieve (avelsieve?) configuration look like? from cyrus.conf: sieve cmd=timsieved listen=sieve prefork=0 maxchild=100 avelsieve-config.php. got rid of some comments in the interest of space Hadn't noticed this debugging option before. Would it send logs to syslog? /** * Debug Mode. Enable this (change to 1) if you need to send a bug report. */ define('AVELSIEVE_DEBUG', 0); /* === IMAP Server / SIEVE Setup = */ /* Backend to use */ global $avelsieve_backend; $avelsieve_backend = 'ManageSieve'; /* === ManageSieve Backend Options */ /* Port where timsieved listens on the Cyrus IMAP server. Default is 2000. */ global $sieveport; $sieveport = 2000; /** * @var string Space separated list of preferred SASL mechanisms for the * authentication to timsieved. e.g. PLAIN DIGEST-MD5;*/ global $sieve_preferred_sasl_mech; $sieve_preferred_sasl_mech = 'PLAIN'; /* == Implementation- and Server-Specific Options */ global $avelsieve_oldcyrus; $avelsieve_oldcyrus = true; global $avelsieve_enable_envelope_auth; $avelsieve_enable_envelope_auth = true; global $avelsieve_custom_sieve_implementation; $avelsieve_custom_sieve_implementation = ''; global $avelsieve_hardcoded_capabilities; $avelsieve_hardcoded_capabilities = array( 'envelope', 'fileinto', 'copy', 'vacation', 'comparator-i;ascii-numeric' ); global $avelsieve_imapproxymode, $avelsieve_imapproxyserv; $avelsieve_imapproxymode = false; $avelsieve_imapproxyserv = array( 'localhost' = 'imap.example.org' ); /** @var boolean Ldapuserdata mode: Gets user's email addresses (including * mailAlternate mailAuthorized) from LDAP Prefs Backend plugin's cache */ global $avelsieve_ldapuserdatamode; $avelsieve_ldapuserdatamode = false; /** @var array Map of cyrus administrator users, for proxy authentication */ global $avelsieve_cyrusadmins_map; $avelsieve_cyrusadmins_map = array( 'cyrusimap' = 'cyrussieve' ); /* === Avelsieve Interface / Behavior Setup == */ /* Be conservative to our updates on the SIEVE server? If true, a button * entitled Save Changes will appear, which will give the user the * functionality to register her changes. 'false' is recommended. */ $conservative = false; /* Use images for the move up / down, delete rule buttons and STOP? */ $useimages = true; /* Translate the messages returned by the Reject and Vacation actions? The * default behaviour since 0.9 is not to translate them. Change to true if in * an intranet environment or in a same-language environment. */ global $translate_return_msgs; $translate_return_msgs = false; $imagetheme = 'bluecurve_24x24'; //$imagetheme = 'bluecurve_16x16'; /* Number of items to display _initially_, when displaying the header match * rule */ $startitems = 3; /* Maximum number of items to allow in one header match rule. */ $maxitems = 10; /* Headers to display in listbox widget, when adding a new header rule. */ $headers = array( 'From', 'To', 'Cc', 'Bcc', 'Subject', 'Reply-To', 'Sender', 'List-Id', 'MailingList', 'Mailing-List',
Re: authentication and/or sieve problem?
Simon Matter wrote: Dan White wrote: On 28/10/09 00:47 -0700, Maria McKinley wrote: ella:/var/log# testsaslauthd -u test -p xxx -s smtp 0: OK Success. ella:/var/log# testsaslauthd -u test -p xxx -s imaps 0: NO authentication failed ella:/var/log# testsaslauthd -u test -p xxx -s imap 0: OK Success. Can you provide sanitized copies of the following?: Your saslauthd startup options (e.g. /etc/default/saslauthd) So, while copying file contents, I stumbled upon a missing file. I had looked in pam.d a bunch of times, but until you asked me for the actual contents, I had somehow overlooked that there was no imaps file. I I'm a bit confused because I never had a imaps config for PAM. Doesn't cyrus-imapd always use imap as service name for imap + imaps? If that's the case then it's no error that you testsaslauthd call mentioned above didn't succeed. copied the smtp file to the imaps file, and now testsaslauthd works for all three services. Yay! But, then I started going back through the logs, and realized that tls with imaps had been working all along. It Yes, that makes sense now, doesn't it? Yup, I understand now. Should have looked at the logs more closely in the first place, instead of jumping on all of the tls failures... was just one particular ip that was failing, it was just failing a lot, and there were very few scattered here and there that were successful. So, not sure why that was working (should I worry that it was?), but I am now pretty sure my problems with sieve are not related to authenticating. I'm using squirrelmail-1.4.19 with avelsieve-1.9.8 against cyrus-imapd-2.3.15 both on PHP4 and PHP5 but with plaintext. Older versions had some issues when using the wrong combination IIRC. What are your versions used? squirrelmail 2:1.4.15-4+lenny2 avelsieve 1.9.7-6+lenny1 cyrus-imapd- 2.2.13-14+lenny3 looks like php5 I guess one more bit of info that may be helpful is this is a mail server that got moved from an old 32 bit machine, and I used this procedure to migrate: http://www.mail-archive.com/info-cyrus@lists.andrew.cmu.edu/msg38092.html which worked great, at least for the mail part, but maybe sieve stuff didn't transfer so well? cheers, maria Regards, Simon Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: authentication and/or sieve problem?
On Thu, 29 Oct 2009, Simon Matter wrote: Dan White wrote: On 28/10/09 00:47 -0700, Maria McKinley wrote: ella:/var/log# testsaslauthd -u test -p xxx -s smtp 0: OK Success. ella:/var/log# testsaslauthd -u test -p xxx -s imaps 0: NO authentication failed ella:/var/log# testsaslauthd -u test -p xxx -s imap 0: OK Success. Can you provide sanitized copies of the following?: Your saslauthd startup options (e.g. /etc/default/saslauthd) So, while copying file contents, I stumbled upon a missing file. I had looked in pam.d a bunch of times, but until you asked me for the actual contents, I had somehow overlooked that there was no imaps file. I I'm a bit confused because I never had a imaps config for PAM. Doesn't cyrus-imapd always use imap as service name for imap + imaps? If that's the case then it's no error that you testsaslauthd call mentioned above didn't succeed. I always thought that it uses the service name from cyrus.conf (the first column on a service definition), but now that I look at my own systems I see that I am missing the /etc/pam.d/imaps file as well. Go figure! Andy Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: authentication and/or sieve problem?
On Thu, Oct 29, 2009 at 10:00:54AM -0700, Andrew Morgan wrote: I always thought that it uses the service name from cyrus.conf (the first column on a service definition), but now that I look at my own systems I see that I am missing the /etc/pam.d/imaps file as well. Go figure! ... and if you actually check the code, you find: if (sasl_server_new(imap, config_servername, NULL, NULL, NULL, NULL, 0, imapd_saslconn) != SASL_OK) { So the service name is hard-coded as imap. Gabor -- - MTA SZTAKI Computer and Automation Research Institute Hungarian Academy of Sciences - Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: authentication and/or sieve problem?
On 28/10/09 00:47 -0700, Maria McKinley wrote: ella:/var/log# testsaslauthd -u test -p xxx -s smtp 0: OK Success. ella:/var/log# testsaslauthd -u test -p xxx -s imaps 0: NO authentication failed ella:/var/log# testsaslauthd -u test -p xxx -s imap 0: OK Success. Can you provide sanitized copies of the following?: Your saslauthd startup options (e.g. /etc/default/saslauthd) Your saslauthd.conf if it exists your PAM configuration for smtp, imaps and imap if appropriate TLS seems to work just fine for smtp: Oct 28 00:13:21 ella postfix/smtpd[5794]: initializing the server-side TLS engine Oct 28 00:13:21 ella postfix/smtpd[5794]: connect from c-76-28-239-89.hsd1.wa.comcast.net[76.28.239.89] Oct 28 00:13:21 ella postfix/smtpd[5794]: setting up TLS connection from c-76-28-239-89.hsd1.wa.comcast.net[76.28.239.89] ... But I get tls errors regarding imaps: Oct 26 06:36:35 ella cyrus/imaps[18356]: Fatal error: tls_start_servertls() failed Permissions problem? Can your cyrus user read the TLS files you've specified in imapd.conf? If not, please include sanitised copies of your imapd.conf and cyrus.conf. I'm not entirely sure how big of a deal this is, since we use ssl over imaps to check mail, but it does seem to be causing a problem with filters/sieve. When someone attempts to change filters using squirrelmail, the connection times out, and the logs fill with imaps tls errors. Oct 28 00:37:45 ella cyrus/sieve[7080]: starttls: TLSv1 with cipher AES256-SHA (256/256 bits new) no authentication Oct 28 00:37:48 ella cyrus/imaps[7082]: imaps TLS negotiation failed: [10.208.108.93] Oct 28 00:37:48 ella cyrus/imaps[7082]: Fatal error: tls_start_servertls() failed What does your sieve entry look like in cyrus.conf? What's your squirrelmail sieve (avelsieve?) configuration look like? -- Dan White Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
sieve problem
Hi! Why this rule doesnt work? IF 'From:' contains '[EMAIL PROTECTED]' AND 'From:' contains '[EMAIL PROTECTED]' AND 'From:' contains '[EMAIL PROTECTED]' AND 'From:' contains '[EMAIL PROTECTED]' THEN file into 'INBOX.Informationen.Foren.DVB' It is created with smartsieve... other rules works... Greetz Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: sieve problem
--On Friday, March 21, 2008 13:12 +0100 Christoph Kaminski [EMAIL PROTECTED] wrote: Hi! Why this rule doesnt work? IF 'From:' contains '[EMAIL PROTECTED]' AND 'From:' contains '[EMAIL PROTECTED]' AND 'From:' contains '[EMAIL PROTECTED]' AND 'From:' contains '[EMAIL PROTECTED]' THEN file into 'INBOX.Informationen.Foren.DVB' It is created with smartsieve... I've never seen a 'From:' with four addresses in it. Use OR. Joseph Brennan Lead Email Systems Engineer Columbia University Information Technology Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Sieve Problem with Suse SLOX and Postfix
Hi all, we need a little of your help: We have divided Suse OpenExchange Server (SLOX) in 2 servers: first (correo2) to Groupware System (Postgress, LDAP, Webmail) and the Second (Mail1) to MTA (postfix, mailboxes, Cyrus). Everything went perfectly but user administration and message Filters (SIEVE). When we try to add new users in Slox by web interface to add the user to groupware and mail (LDAP, Postgress, and mailbox), we get an error message: add_user_ldap successful add_user_cyrus failed Authentication failed: Serverresponse: NO encryption needed to use mechanism All actions will be revoked. The groupware user creation (/srw/www/imap-bin/create_user.pl and /srv/www/lib/func/create_user.pm) sequence does the following actions: -add_user_ldap on localhost (sucessfull) -add_user_cyrus on localhost (error because this creation must be done on MTA Server (mail1)) -add_user_comfire on localhost (this command doesn't execute due the error in add_user_cyrus command) We've tried to change all paths in SLOX (correo2) (refering to imap-cyrus) to the new server but it doesn't works. We've changed also the /etc/imapd.conf and /etc/imap/globals.conf (groupwareHostname and AdministrativeHostname parameters) files to force the system goes to the new server but we receive the same error. What files must be changed to force add_user_cyrus be done in the correct server? Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
sieve problem with too many redirects
Hi, we are using cyrus 2.2.12 (murder configuration). One of our users has a sieve script with ~290 redirects. Mails to this address cannot be delivered, lmtp fails with LMTP error after end of data: 451 4.3.0 transient system error. A brief look into the communication between frontend and backend shows that the LMTP connection is terminated immediately after end of data without response of the lmtpd on the backend. I did some tests and found out that there is the magic number of 97 redirects maximum. A sieve script with 97 redirects works fine, adding one redirect results in the error mentioned above. Adding other rules (e.g. keep, fileinto etc) works fine. The size of the sieve script is below the maximum file size for sieve scripts (default 32Kb). The MTA (exim) has no restrictions, so this cannot be the problem. Can anybody help me? Is it a bug in cyrus? Thanks in advance, Markus -- Markus Rebensburg |Email: [EMAIL PROTECTED] Rechenzentrum Uni Kiel |Tel.: (++49)-431-880-3582 D-24098 Kiel - Germany |Fax: (++49)-431-880-1523 Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: sieve problem with too many redirects
Markus Rebensburg schrieb: Can anybody help me? Is it a bug in cyrus? I can help myself a bit :-) I used the test program found in cyrus-imapd-2.2.12/sieve, it seems to be a problem with the action_string defined while running the function do_action_list. There is a fixed length defined with 4096 Bytes maximum in script.c (ACTIONS_STRING_LEN). With a length of 32787 (just a test) the script is running without problems. Otherwise I get a segmentation fault. Can someone find a clean fix for this problem, my 'C'-knowledge is not so good... Thanks, Markus -- Markus Rebensburg |Email: [EMAIL PROTECTED] Rechenzentrum Uni Kiel |Tel.: (++49)-431-880-3582 D-24098 Kiel - Germany |Fax: (++49)-431-880-1523 Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: sieve problem ?
Bob Tito wrote: Ken Murchison wrote: Bob Tito wrote: Ken Murchison wrote: Bob Tito wrote: Hi all, At the moment we seem to have a problem with sieve on our cyrus-imapd-2.2.12 sytem (single instance message store ON) Basically everthing works fine, but: When a message is sent to 2 (or more?) recipients and one has an vacation message on with the email-address of the otherperson a vacation message is sent. Now, to make this more clear: sender recipient-a ( no sieve notification) and recipient-b (vacation message with email-address of recipient-a) ^^^ Do you mean that recipient-a has a vacation action in which :addresses includes recipient-a? Hi Ken, We tried to be carefull to explain a stupid problem ;-) recipient-a has a vacation action with the mail-address of recipient-a ! This is a normal config. So recipient-a has a line like the following in their script: vacation :addresses recipient-a on vacation; (probably thinking/hoping the mails will be forwarded to recipient-a during the holiday) I Know, I Know, but this is the server of a large hospital, nurses and doctors are not the most clever computer/mail users :-) I hope the problem is less confusing now ? Not really. I still don't understand the config and the incorrect behavior. Hi Ken, sorry for the direct reply .. I'll give it another go... [EMAIL PROTECTED] sends a mail to [EMAIL PROTECTED] and [EMAIL PROTECTED] [EMAIL PROTECTED] has a vacation message with email-address [EMAIL PROTECTED] which is wrong but... sender gets a vacation message from [EMAIL PROTECTED] but that user is NOT away and has no vacation message active ... Better try ? :-) Yeah, the script for [EMAIL PROTECTED] has: vacation :addresses [EMAIL PROTECTED] ... This is obviously something that makes no sense and IMO falls under the GIGO principal (garbage in, garbage out). The vacation code checks the headers to make sure that one of the recipients :addresses is listed to make sure that the message was sent directly to them (not some kind of redirect or a mailing list distribution). It then uses the address that it finds as the From: address in the response since it will be a fully qualified email address (the envelope RCPT TO address most likely will not). So, in you case, the code happens to find [EMAIL PROTECTED] in the headers first and uses this as the From: address. I don't know what your user is trying to accomplish, but its clearly not going to work as expected. I'd suggest you explain to the user what the :addresses field is for and have them use it properly, since I don't see anyway of working around this in the code without breaking the intended functionality. -- Kenneth Murchison Systems Programmer Carnegie Mellon University Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: sieve problem ?
Ken Murchison wrote: Bob Tito wrote: Ken Murchison wrote: Bob Tito wrote: Hi all, At the moment we seem to have a problem with sieve on our cyrus-imapd-2.2.12 sytem (single instance message store ON) Basically everthing works fine, but: When a message is sent to 2 (or more?) recipients and one has an vacation message on with the email-address of the otherperson a vacation message is sent. Now, to make this more clear: sender recipient-a ( no sieve notification) and recipient-b (vacation message with email-address of recipient-a) ^^^ Do you mean that recipient-a has a vacation action in which :addresses includes recipient-a? Hi Ken, We tried to be carefull to explain a stupid problem ;-) recipient-a has a vacation action with the mail-address of recipient-a ! This is a normal config. So recipient-a has a line like the following in their script: vacation :addresses recipient-a on vacation; (probably thinking/hoping the mails will be forwarded to recipient-a during the holiday) I Know, I Know, but this is the server of a large hospital, nurses and doctors are not the most clever computer/mail users :-) I hope the problem is less confusing now ? Not really. I still don't understand the config and the incorrect behavior. Hi Ken, sorry for the direct reply .. I'll give it another go... [EMAIL PROTECTED] sends a mail to [EMAIL PROTECTED] and [EMAIL PROTECTED] [EMAIL PROTECTED] has a vacation message with email-address [EMAIL PROTECTED] which is wrong but... sender gets a vacation message from [EMAIL PROTECTED] but that user is NOT away and has no vacation message active ... Better try ? :-) Thanks, -- Bob Tito gpg key http://www.btito.net/gpg -- Disclaimer: This message represents the official view of the voices in my head. Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
sieve problem
freebsd 5.3, cyrus installed from ports with default options. cyrus-imapd-2.2.12_1 cyrus-sasl-2.1.21 cyrus-sasl-saslauthd-2.1.21 all imap related stuff seems to work just fine, but sieve filters don't seem to work. I can create and upload sieve filters to /var/imap/sieve/ via avelsieve-1.9.3 plugin for squirrlmail, but they just don't seem to have any effect at all. When trying to troubleshoot with sieveshell, I get authentication errors sivtest -u cyrus -a cyrus -w mypass localhost S: IMPLEMENTATION Cyrus timsieved v2.2.12 S: SASL PLAIN S: SIEVE fileinto reject envelope vacation imapflags notify subaddress relational comparator-i;ascii-numeric regex S: OK C: AUTHENTICATE PLAIN {28+} Y3lydXAMY3lydXAMWYxpc2ExWw== S: NO Authentication Error Authentication failed. generic failure Security strength factor: 0 ^CC: LOGOUT Connection closed. if I test the credentials, then it works ok. sudo testsaslauthd -u cyrus -p mypass -s sieve localhostost 0: OK Success. debug level log only gives me this Sep 29 14:13:17 skywalker master[40859]: about to exec /usr/local/cyrus/bin/timsieved Sep 29 14:13:17 skywalker sieve[40859]: executed Sep 29 14:13:17 skywalker sieve[40859]: accepted connection Sep 29 14:13:18 skywalker master[876]: process 40859 exited, status 0 any clues how to troubleshoot this ? thank you Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: sieve problem
Am Thursday 29 September 2005 20:19 schrieb synrat: freebsd 5.3, cyrus installed from ports with default options. cyrus-imapd-2.2.12_1 cyrus-sasl-2.1.21 cyrus-sasl-saslauthd-2.1.21 all imap related stuff seems to work just fine, but sieve filters don't seem to work. I can create and upload sieve filters to /var/imap/sieve/ via avelsieve-1.9.3 plugin for squirrlmail, but they just don't seem to have any effect at all. When trying to troubleshoot with sieveshell, I get authentication errors sivtest -u cyrus -a cyrus -w mypass localhost S: IMPLEMENTATION Cyrus timsieved v2.2.12 S: SASL PLAIN S: SIEVE fileinto reject envelope vacation imapflags notify subaddress relational comparator-i;ascii-numeric regex S: OK C: AUTHENTICATE PLAIN {28+} Y3lydXAMY3lydXAMWYxpc2ExWw== S: NO Authentication Error Authentication failed. generic failure Security strength factor: 0 ^CC: LOGOUT Connection closed. if I test the credentials, then it works ok. sudo testsaslauthd -u cyrus -p mypass -s sieve localhostost 0: OK Success. debug level log only gives me this Sep 29 14:13:17 skywalker master[40859]: about to exec /usr/local/cyrus/bin/timsieved Sep 29 14:13:17 skywalker sieve[40859]: executed Sep 29 14:13:17 skywalker sieve[40859]: accepted connection Sep 29 14:13:18 skywalker master[876]: process 40859 exited, status 0 any clues how to troubleshoot this ? Did you try sieveshell? Connect with sieveshell and list the Script(s) maybe it is not activated. $ sieveshell -a user -u user localhost $ list -- Andreas Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: sieve problem
Andreas Winkelmann wrote: Am Thursday 29 September 2005 20:19 schrieb synrat: freebsd 5.3, cyrus installed from ports with default options. cyrus-imapd-2.2.12_1 cyrus-sasl-2.1.21 cyrus-sasl-saslauthd-2.1.21 all imap related stuff seems to work just fine, but sieve filters don't seem to work. I can create and upload sieve filters to /var/imap/sieve/ via avelsieve-1.9.3 plugin for squirrlmail, but they just don't seem to have any effect at all. When trying to troubleshoot with sieveshell, I get authentication errors sivtest -u cyrus -a cyrus -w mypass localhost S: IMPLEMENTATION Cyrus timsieved v2.2.12 S: SASL PLAIN S: SIEVE fileinto reject envelope vacation imapflags notify subaddress relational comparator-i;ascii-numeric regex S: OK C: AUTHENTICATE PLAIN {28+} Y3lydXAMY3lydXAMWYxpc2ExWw== S: NO Authentication Error Authentication failed. generic failure Security strength factor: 0 ^CC: LOGOUT Connection closed. if I test the credentials, then it works ok. sudo testsaslauthd -u cyrus -p mypass -s sieve localhostost 0: OK Success. debug level log only gives me this Sep 29 14:13:17 skywalker master[40859]: about to exec /usr/local/cyrus/bin/timsieved Sep 29 14:13:17 skywalker sieve[40859]: executed Sep 29 14:13:17 skywalker sieve[40859]: accepted connection Sep 29 14:13:18 skywalker master[876]: process 40859 exited, status 0 any clues how to troubleshoot this ? Did you try sieveshell? Connect with sieveshell and list the Script(s) maybe it is not activated. $ sieveshell -a user -u user localhost $ list yes, I can login as a regular user, I guess squirrelmail plugin works for uploading those filters, but they still don't seem to work. The script is listed as active. here's the script as shows up with get command. sending a message with subject test, doesn't filter it into existing INBOX.spam folder. what am I missing ? list phpscript - active script get phpscript # This script has been automatically generated by avelsieve # (Sieve Mail Filters Plugin for Squirrelmail) #AVELSIEVE_VERSIONYTo0OntzOjU6Im1ham9yIjtpOjE7czo1OiJtaW5vciI7aTo5O3M6NzoicmVsZWFzZSI7aTozO3M6Njoic3RyaW5nIjtzOjU6IjEuOS4zIjt9 #AVELSIEVE_CREATED1127918363 #AVELSIEVE_MODIFIED1127949624 require [fileinto,reject,vacation,imapflags,relational,comparator-i;ascii-numeric,regex,notify]; if #START_SIEVE_RULEYTo2OntzOjY6ImhlYWRlciI7YToxOntpOjA7czo3OiJTdWJqZWN0Ijt9czo5OiJtYXRjaHR5cGUiO2E6MTp7aTowO3M6ODoiY29udGFpbnMiO31zOjExOiJoZWFkZXJtYXRjaCI7YToxOntpOjA7czo0OiJ0ZXN0Ijt9czo0OiJ0eXBlIjtzOjE6IjIiO3M6NjoiYWN0aW9uIjtzOjE6IjUiO3M6NjoiZm9sZGVyIjtzOjEwOiJJTkJPWC5zcGFtIjt9END_SIEVE_RULE header :contains Subject test { fileinto INBOX.spam; } Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: sieve problem
Andreas Winkelmann wrote: Am Thursday 29 September 2005 20:19 schrieb synrat: freebsd 5.3, cyrus installed from ports with default options. cyrus-imapd-2.2.12_1 cyrus-sasl-2.1.21 cyrus-sasl-saslauthd-2.1.21 all imap related stuff seems to work just fine, but sieve filters don't seem to work. I can create and upload sieve filters to /var/imap/sieve/ via avelsieve-1.9.3 plugin for squirrlmail, but they just don't seem to have any effect at all. When trying to troubleshoot with sieveshell, I get authentication errors sivtest -u cyrus -a cyrus -w mypass localhost S: IMPLEMENTATION Cyrus timsieved v2.2.12 S: SASL PLAIN S: SIEVE fileinto reject envelope vacation imapflags notify subaddress relational comparator-i;ascii-numeric regex S: OK C: AUTHENTICATE PLAIN {28+} Y3lydXAMY3lydXAMWYxpc2ExWw== S: NO Authentication Error Authentication failed. generic failure Security strength factor: 0 ^CC: LOGOUT Connection closed. if I test the credentials, then it works ok. sudo testsaslauthd -u cyrus -p mypass -s sieve localhostost 0: OK Success. debug level log only gives me this Sep 29 14:13:17 skywalker master[40859]: about to exec /usr/local/cyrus/bin/timsieved Sep 29 14:13:17 skywalker sieve[40859]: executed Sep 29 14:13:17 skywalker sieve[40859]: accepted connection Sep 29 14:13:18 skywalker master[876]: process 40859 exited, status 0 any clues how to troubleshoot this ? Did you try sieveshell? Connect with sieveshell and list the Script(s) maybe it is not activated. $ sieveshell -a user -u user localhost $ list yes, I can login as a regular user, I guess squirrelmail plugin works for uploading those filters, but they still don't seem to work. The script is listed as active. here's the script as shows up with get command. sending a message with subject test, doesn't filter it into existing INBOX.spam folder. what am I missing ? list phpscript - active script get phpscript # This script has been automatically generated by avelsieve # (Sieve Mail Filters Plugin for Squirrelmail) #AVELSIEVE_VERSIONYTo0OntzOjU6Im1ham9yIjtpOjE7czo1OiJtaW5vciI7aTo5O3M6NzoicmVsZWFzZSI7aTozO3M6Njoic3RyaW5nIjtzOjU6IjEuOS4zIjt9 #AVELSIEVE_CREATED1127918363 #AVELSIEVE_MODIFIED1127949624 require [fileinto,reject,vacation,imapflags,relational,comparator-i;ascii-numeric,regex,notify]; if #START_SIEVE_RULEYTo2OntzOjY6ImhlYWRlciI7YToxOntpOjA7czo3OiJTdWJqZWN0Ijt9czo5OiJtYXRjaHR5cGUiO2E6MTp7aTowO3M6ODoiY29udGFpbnMiO31zOjExOiJoZWFkZXJtYXRjaCI7YToxOntpOjA7czo0OiJ0ZXN0Ijt9czo0OiJ0eXBlIjtzOjE6IjIiO3M6NjoiYWN0aW9uIjtzOjE6IjUiO3M6NjoiZm9sZGVyIjtzOjEwOiJJTkJPWC5zcGFtIjt9END_SIEVE_RULE header :contains Subject test { fileinto INBOX.spam; } Does INBOX.spam exist, with the correct case? Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
sieve problem when scripts have syntax errors?
Hi, we are running 2.2.10 under RHEL 3: name : Cyrus IMAPD version: v2.2.10-Invoca-RPM-2.2.10-1 2004/11/23 17:52:52 vendor : Project Cyrus support-url: http://asg.web.cmu.edu/cyrus os : Linux os-version : 2.4.21-15.0.3.ELsmp environment: Built w/Cyrus SASL 2.1.20 Running w/Cyrus SASL 2.1.20 Built w/Sleepycat Software: Berkeley DB 4.1.25: (August 21, 2003) Running w/Sleepycat Software: Berkeley DB 4.1.25: (August 21, 2003) Built w/OpenSSL 0.9.7a Feb 19 2003 Running w/OpenSSL 0.9.7a Feb 19 2003 CMU Sieve 2.2 TCP Wrappers mmap = shared lock = fcntl nonblock = fcntl auth = unix idle = poll Today I found the following error messages in our logwatch output: Dec 11 15:01:22 lvr13 sieve[24368]: DBERROR db4: Database handles open during environment close Dec 11 15:01:22 lvr13 sieve[24368]: DBERROR: error exiting application: Invalid argument Dec 11 15:42:10 lvr13 sieve[4704]: DBERROR db4: Database handles open during environment close Dec 11 15:42:10 lvr13 sieve[4704]: DBERROR: error exiting application: Invalid argument Dec 11 15:52:36 lvr13 sieve[15142]: DBERROR db4: Database handles open during environment close Dec 11 15:52:36 lvr13 sieve[15142]: DBERROR: error exiting application: Invalid argument Dec 11 16:05:48 lvr13 sieve[32175]: DBERROR db4: Database handles open during environment close Dec 11 16:05:48 lvr13 sieve[32175]: DBERROR: error exiting application: Invalid argument When I investigated what had happened, I found that all four instances were one of our users trying to install a sieve script that had syntax errors. I'm going to show one of those four attempts: Dec 11 15:41:37 lvr13 sieve[4704]: login: xx DIGEST-MD5+TLS User logged in ec 11 15:41:37 lvr13 sieve[4704]: line 6: parse error, unexpected ';' Dec 11 15:41:48 lvr13 sieve[4704]: entered bc_action_emit with filelen: 16 Dec 11 15:41:48 lvr13 sieve[4704]: entered bc_action_emit with filelen: 116 Dec 11 15:42:10 lvr13 sieve[4704]: DBERROR db4: Database handles open during environment close Dec 11 15:42:10 lvr13 sieve[4704]: DBERROR: error exiting application: Invalid argument There are two funny things going on. 1. All the syslog lines from the sieve parser replace the initial character with a space. 2. The database handles apparently aren't closed properly after a syntax error. I haven't yet looked at the source, I'm just reporting my observation. Cheers, Sebastian -- Sebastian Hagedorn M.A. - RZKR-R1 (Flachbau), Zi. 18, Robert-Koch-Str. 10 Zentrum fr angewandte Informatik - Universittsweiter Service RRZK Universitt zu Kln / Cologne University - Tel. +49-221-478-5587 pgpBdz08iYk0p.pgp Description: PGP signature
Sieve problem- vacation does not work
Hi All, I've instaleed avelsieve and it works with timesieved. Just vacation notify scripts do not work. cyrus 2.0.16+sendmail 8.12.9 are installed. part of cyrusv2.mc is: define(`confLOCAL_MAILER', `cyrus') MAILER(`local') MAILER(`smtp') MAILER_DEFINITIONS Mcyrus, P=[IPC], F=lsDFMnqA@/:|SmXz, E=\r\n, S=EnvFromL, R=EnvToL/HdrToL, T=DNS/RFC822/X-Unix, A=FILE /var/imap/socket/lmtp What could be my problem? Any idea is appriciated. Thanks --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: [Fwd: Sieve problem] Please help
Hi All, I have problem with running sieve scripts. I use Cyrus 2.0.16, cyrus.conf is normal.conf. imapd.conf contains: configdirectory: /var/imap partition-default: /var/spool/imap sieveusehomedir: false sievedir: /usr/sieve admins: adm sasl_pwcheck_method: PAM sendmail: /usr/sbin/sendmail lmtpsocket: /var/imap/socket/lmtp fatemeh.script is in /usr/sieve/f/fatemeh_m/ using sieveshell command and contains: require [reject,fileinto]; if address :is :all From [EMAIL PROTECTED] { reject testing; } Output of sieve test program seems to be OK : /usr/local/src/cyrus-imapd-2.0.16/sieve/test \ /var/spool/imap/user/fatemeh_m/13857. \ /usr/sieve/f/fatemeh_m/fatemeh.script rejecting message '/var/spool/imap/user/fatemeh_m/13857.' with 'testing' notify msg = 'You have new mail To: [EMAIL PROTECTED] From: Fatemeh Taj [EMAIL PROTECTED] Subject: SIEVE Action(s) taken: Rejected with: testing ' with priority = medium But no action is taken. What could be my problem? Any help is appriciated. I don't know whats wrong here. But, does your /usr/sbin/sendmail exist and work as expected? You have it configured in imapd.conf but maybe it's not correct. Also I have another problem when get emails via webmail (squirrelmail). 1) Sometimes after retrieving emails cyrus can not recognize my folders and just Trash, Drafts and Sent folder are available and the cyrus.sub file in /var/imap/user/f is dissappeared then I have to create that file by hand, remove cyrus.seen and then reconstruct the mailbox. 2) In other case Trash folders get dissapeared and I have to re-create Trash folder. It happens for many of my clients. What can I do to solve the problem? Hm, since you're always talking about files in /var/xxx, I guess you have touched them in a way which is not good for cyrus. I suggest you check all file and directory permissions of cyrus, check you mailboxes db and then use reconstruct to fix your mail spool. Simon Regards Fatemeh Taj --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
[Fwd: Sieve problem] Please help
Hi All, I have problem with running sieve scripts. I use Cyrus 2.0.16, cyrus.conf is normal.conf. imapd.conf contains: configdirectory: /var/imap partition-default: /var/spool/imap sieveusehomedir: false sievedir: /usr/sieve admins: adm sasl_pwcheck_method: PAM sendmail: /usr/sbin/sendmail lmtpsocket: /var/imap/socket/lmtp fatemeh.script is in /usr/sieve/f/fatemeh_m/ using sieveshell command and contains: require [reject,fileinto]; if address :is :all From [EMAIL PROTECTED] { reject testing; } Output of sieve test program seems to be OK : /usr/local/src/cyrus-imapd-2.0.16/sieve/test \ /var/spool/imap/user/fatemeh_m/13857. \ /usr/sieve/f/fatemeh_m/fatemeh.script rejecting message '/var/spool/imap/user/fatemeh_m/13857.' with 'testing' notify msg = 'You have new mail To: [EMAIL PROTECTED] From: Fatemeh Taj [EMAIL PROTECTED] Subject: SIEVE Action(s) taken: Rejected with: testing ' with priority = medium But no action is taken. What could be my problem? Any help is appriciated. Also I have another problem when get emails via webmail (squirrelmail). 1) Sometimes after retrieving emails cyrus can not recognize my folders and just Trash, Drafts and Sent folder are available and the cyrus.sub file in /var/imap/user/f is dissappeared then I have to create that file by hand, remove cyrus.seen and then reconstruct the mailbox. 2) In other case Trash folders get dissapeared and I have to re-create Trash folder. It happens for many of my clients. What can I do to solve the problem? Regards Fatemeh Taj --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Sieve problem
Hi All, I have problem with running sieve scripts. I use Cyrus 2.0.16, cyrus.conf is normal.conf. imapd.conf contains: configdirectory: /var/imap partition-default: /var/spool/imap sieveusehomedir: false sievedir: /usr/sieve admins: adm sasl_pwcheck_method: PAM sendmail: /usr/sbin/sendmail lmtpsocket: /var/imap/socket/lmtp fatemeh.script is in /usr/sieve/f/fatemeh_m/ using sieveshell command and contains: require [reject,fileinto]; if address :is :all From [EMAIL PROTECTED] { reject testing; } Output of sieve test program seems to be OK : /usr/local/src/cyrus-imapd-2.0.16/sieve/test \ /var/spool/imap/user/fatemeh_m/13857. \ /usr/sieve/f/fatemeh_m/fatemeh.script rejecting message '/var/spool/imap/user/fatemeh_m/13857.' with 'testing' notify msg = 'You have new mail To: [EMAIL PROTECTED] From: Fatemeh Taj [EMAIL PROTECTED] Subject: SIEVE Action(s) taken: Rejected with: testing ' with priority = medium But no action is taken. What could be my problem? Any help is appriciated. Also I have another problem when get emails via webmail (squirrelmail). 1) Sometimes after retrieving emails cyrus can not recognize my folders and just Trash, Drafts and Sent folder are available and the cyrus.sub file in /var/imap/user/f is dissappeared then I have to create that file by hand, remove cyrus.seen and then reconstruct the mailbox. 2) In other case Trash folders get dissapeared and I have to re-create Trash folder. It happens for many of my clients. What can I do to solve the problem? Regards Fatemeh Taj --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Newbie sieve problem w/sieveshell
On Tue, 10 Aug 2004, Rob Tanner wrote: Unfortunately, it doesn't look like sieveshell does what I was hoping for. I'm looking for some tool that will allow me, as the administrator, to manage other users' sieve space (add/modify scripts, etc). Do you have any suggestions? Sadly I don't believe there is one, if what you mean is doing it for all users, at once. But, you can do e.g. sieveshell --user=someuser --authname=my-admin sieve-server On a per-user basis to manage sieve state, one user at a time. Is that acceptable? --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Newbie sieve problem w/sieveshell
Hi, I have sieve up and running (cyrus-imap v2.2.3) and a php application to allow users some limited access for setting up forwarding and vacation scripts. I am looking at sieveshell as a possible tool to do administrative maintenance, but whenever I try to invoke it, it fails. I have tried accessing it both as the administrative user (cyrus) and as myself, and I have specified the server both as localhost and with the FQDN. Below are two example command lines: sieveshell --user cyrus localhost sieveshell --user cyrus mail.linfield.edu In every case, it prompts for the password, and then returns the error (line broken for readability): unable to connect to server at \ /usr/local/cyrus/bin/sieveshell line 169, STDIN line 1. Basically, it fails on the connect: 167: my $obj = sieve_get_handle($acapserver, 168:prompt, prompt, prompt, prompt); 169: 170: if (!defined $obj) { 171: die unable to connect to server; 172: } Any ideas as to what the problem might be, and where to look? Thanks, Rob -- Rob Tanner UNIX Services Manager Linfield College, McMinnville OR --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Newbie sieve problem w/sieveshell
On Tuesday 10 August 2004 09:31 am, Rob Tanner wrote: Hi, I have sieve up and running (cyrus-imap v2.2.3) and a php application to allow users some limited access for setting up forwarding and vacation scripts. I am looking at sieveshell as a possible tool to do administrative maintenance, but whenever I try to invoke it, it fails. I have tried accessing it both as the administrative user (cyrus) and as myself, and I have specified the server both as localhost and with the FQDN. Below are two example command lines: sieveshell --user cyrus localhost sieveshell --user cyrus mail.linfield.edu In every case, it prompts for the password, and then returns the error (line broken for readability): unable to connect to server at \ /usr/local/cyrus/bin/sieveshell line 169, STDIN line 1. [...] Do you have an entry for sieve in /etc/services? --Jo --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Newbie sieve problem w/sieveshell
--On Tuesday, August 10, 2004 10:12:10 AM -0700 Joakim Ryden [EMAIL PROTECTED] wrote: On Tuesday 10 August 2004 09:31 am, Rob Tanner wrote: Hi, I have sieve up and running (cyrus-imap v2.2.3) and a php application to allow users some limited access for setting up forwarding and vacation scripts. I am looking at sieveshell as a possible tool to do administrative maintenance, but whenever I try to invoke it, it fails. [...] Do you have an entry for sieve in /etc/services? --Jo Yes. Otherwise the php app wouldn't work either. -- Rob Tanner UNIX Services Manager Linfield College, McMinnville OR --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Newbie sieve problem w/sieveshell
On Tuesday 10 August 2004 10:16 am, Rob Tanner wrote: --On Tuesday, August 10, 2004 10:12:10 AM -0700 Joakim Ryden [EMAIL PROTECTED] wrote: On Tuesday 10 August 2004 09:31 am, Rob Tanner wrote: Hi, I have sieve up and running (cyrus-imap v2.2.3) and a php application to allow users some limited access for setting up forwarding and vacation scripts. I am looking at sieveshell as a possible tool to do administrative maintenance, but whenever I try to invoke it, it fails. [...] Do you have an entry for sieve in /etc/services? --Jo Yes. Otherwise the php app wouldn't work either. What do your logs say when you try it? --Jo --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Newbie sieve problem w/sieveshell
--On Tuesday, August 10, 2004 10:23:16 AM -0700 Joakim Ryden [EMAIL PROTECTED] wrote: What do your logs say when you try it? --Jo Duh! I didn't even think to check there. Here are two examples, the sieveshell that fails followed by a smartsieve login that worked. In bothe cases I logged in (or tried to login in) as the same user. The one difference I note is that the failed login does not list the user name while the successful login does. Is that significant? Aug 10 10:33:07 belgarath sieve[6690]: accepted connection Aug 10 10:33:07 belgarath master[6909]: about to exec /usr/local/cyrus/bin/timsieved Aug 10 10:33:07 belgarath sieve[6909]: executed Aug 10 10:33:11 belgarath sieve[6690]: badlogin: belgarath.linfield.edu[10.171.255.14] PLAIN authentication failure Aug 10 10:35:14 belgarath sieve[6737]: accepted connection Aug 10 10:35:14 belgarath master[6923]: about to exec /usr/local/cyrus/bin/timsieved Aug 10 10:35:14 belgarath sieve[6923]: executed Aug 10 10:35:14 belgarath sieve[6737]: login: socrates.linfield.edu[10.171.255.11] rtanner PLAIN User logged in -- Rob Tanner UNIX Services Manager Linfield College, McMinnville OR --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Newbie sieve problem w/sieveshell
On Tuesday 10 August 2004 10:41 am, Rob Tanner wrote: --On Tuesday, August 10, 2004 10:23:16 AM -0700 Joakim Ryden [EMAIL PROTECTED] wrote: What do your logs say when you try it? --Jo Duh! I didn't even think to check there. Here are two examples, the sieveshell that fails followed by a smartsieve login that worked. In bothe cases I logged in (or tried to login in) as the same user. The one difference I note is that the failed login does not list the user name while the successful login does. Is that significant? [...] Try this and see if it makes a difference: # sieveshell --authname=rtanner localhost --Jo --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Newbie sieve problem w/sieveshell
--On Tuesday, August 10, 2004 10:47:53 AM -0700 Joakim Ryden [EMAIL PROTECTED] wrote: On Tuesday 10 August 2004 10:41 am, Rob Tanner wrote: --On Tuesday, August 10, 2004 10:23:16 AM -0700 Joakim Ryden [EMAIL PROTECTED] wrote: What do your logs say when you try it? --Jo Duh! I didn't even think to check there. Here are two examples, the sieveshell that fails followed by a smartsieve login that worked. In bothe cases I logged in (or tried to login in) as the same user. The one difference I note is that the failed login does not list the user name while the successful login does. Is that significant? [...] Try this and see if it makes a difference: # sieveshell --authname=rtanner localhost --Jo Yep, that did it. I got in! Unfortunately, it doesn't look like sieveshell does what I was hoping for. I'm looking for some tool that will allow me, as the administrator, to manage other users' sieve space (add/modify scripts, etc). Do you have any suggestions? Thanks, Rob -- Rob Tanner UNIX Services Manager Linfield College, McMinnville OR --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Newbie sieve problem w/sieveshell
--On Tuesday, August 10, 2004 10:53:18 AM -0700 Rob Tanner [EMAIL PROTECTED] wrote: --On Tuesday, August 10, 2004 10:47:53 AM -0700 Joakim Ryden [EMAIL PROTECTED] wrote: On Tuesday 10 August 2004 10:41 am, Rob Tanner wrote: --On Tuesday, August 10, 2004 10:23:16 AM -0700 Joakim Ryden [EMAIL PROTECTED] wrote: What do your logs say when you try it? --Jo Duh! I didn't even think to check there. Here are two examples, the sieveshell that fails followed by a smartsieve login that worked. In bothe cases I logged in (or tried to login in) as the same user. The one difference I note is that the failed login does not list the user name while the successful login does. Is that significant? [...] Try this and see if it makes a difference: # sieveshell --authname=rtanner localhost --Jo Yep, that did it. I got in! Unfortunately, it doesn't look like sieveshell does what I was hoping for. I'm looking for some tool that will allow me, as the administrator, to manage other users' sieve space (add/modify scripts, etc). Do you have any suggestions? Thanks, Rob I just figured it out. That's what the --user parameter is for. -- Rob Tanner UNIX Services Manager Linfield College, McMinnville OR --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Newbie sieve problem w/sieveshell
On Tue, 2004-08-10 at 10:41, Rob Tanner wrote: --On Tuesday, August 10, 2004 10:23:16 AM -0700 Joakim Ryden [EMAIL PROTECTED] wrote: What do your logs say when you try it? --Jo Duh! I didn't even think to check there. Here are two examples, the sieveshell that fails followed by a smartsieve login that worked. In bothe cases I logged in (or tried to login in) as the same user. The one difference I note is that the failed login does not list the user name while the successful login does. Is that significant? Aug 10 10:33:11 belgarath sieve[6690]: badlogin: belgarath.linfield.edu[10.171.255.14] PLAIN authentication failure Aug 10 10:35:14 belgarath sieve[6737]: login: socrates.linfield.edu[10.171.255.11] rtanner PLAIN User logged in Looks to me like your underlying authentication layer is what's failing. What are you authenticating against? Can you provide the log file for that? --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Sieve Problem
Hi Folks, a few months ago I set up a new server with Cyrus SASL and IMAPD 2.1.16. Everything runs perfectly fine, but now I want to enable sieve on that host. So I set up a line in cyrus.conf like sieve cmd=timsieved listen=sieve prefork=0 and now I can telnet like telnet localhost sieve and get the following result: Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. IMPLEMENTATION Cyrus timsieved v2.1.16 SIEVE fileinto reject envelope vacation imapflags notify subaddress relational regex OK The thing about it is that I can't login with sieveshell. So I searched the lists and found that there's a line missing like SASL PLAIN in my output above. One posting said that I should install the sasl libs, but that is what I did when I installed SASL from source - and the imap users can log in fine using the running saslauthd -a shadow and PLAIN login. So I really don't understand what the problem is - please can anybody help me? cyrus.conf and imap.conf are included hereby. Thanks in advance, Andreas Grimmel System Administrator ADDITIVE GmbH Germany cyrus.conf: # standard standalone server implementation START { # do not delete this entry! recover cmd=ctl_cyrusdb -r # this is only necessary if using idled for IMAP IDLE # idledcmd=idled } # UNIX sockets start with a slash and are put into /var/imap/sockets SERVICES { # add or remove based on preferences imap cmd=imapd listen=imap prefork=0 pop3 cmd=pop3d listen=pop3 prefork=0 sieve cmd=timsieved listen=sieve prefork=0 # LMTP is required for delivery lmtpunix cmd=lmtpd listen=/usr/cyrus/var/socket/lmtp prefork=0 # this is only necessary if using notifications # notify cmd=notifyd listen=/usr/cyrus/var/socket/notify proto=udp prefork=1 } EVENTS { # this is required checkpointcmd=ctl_cyrusdb -c period=30 # this is only necessary if using duplicate delivery suppression delprune cmd=ctl_deliver -E 3 period=1440 # this is only necessary if caching TLS sessions tlsprune cmd=tls_prune period=1440 } imapd.conf: configdirectory: /usr/cyrus/var partition-default: /usr/cyrus/var/spool altnamespace: yes unixhierarchysep: yes defaultacl: anyone lrswipcda admins: cyrus root allowplaintext: yes allowanonymouslogin: no sasl_mech_list: PLAIN #autocreatequota: 1 #reject8bit: no #quotawarn: 90 #timeout: 30 #poptimeout: 10 #dracinterval: 0 #drachost: localhost sasl_pwcheck_method: saslauthd sendmail: /usr/sbin/sendmail sievedir: /usr/cyrus/sieve --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Sieve problem
Hello, I'm having a problem with sieve finding the correct mailbox In a script when I use INBOX.backup the imapd.log says: Jun 10 08:01:55 mail master[10743]: about to exec /usr/cyrus/bin/lmtpd Jun 10 08:01:55 mail lmtpunix[10743]: executed Jun 10 08:01:55 mail lmtpunix[10743]: accepted connection Jun 10 08:01:55 mail lmtpunix[10743]: lmtp connection preauth'd as postman Jun 10 08:01:55 mail lmtpunix[10743]: sieve runtime error for kent id [EMAIL PROTECTED]: Fileinto: Invalid mailbox name When I use kent.backup I imapd.log says: Jun 10 08:08:57 mail master[10762]: about to exec /usr/cyrus/bin/lmtpd Jun 10 08:08:57 mail lmtpunix[10762]: executed Jun 10 08:08:57 mail lmtpunix[10762]: accepted connection Jun 10 08:08:57 mail lmtpunix[10762]: lmtp connection preauth'd as postman Jun 10 08:08:57 mail lmtpunix[10762]: duplicate_check: [EMAIL PROTECTED] user.kent.kent.backup 0 What do I use in the sieve script to deliver to the correct mailbox? Sieve script: require fileinto; if header :contains [Sender,From] @whs1.tow.net { fileinto INBOX.backup;} else { fileinto INBOX; } -- Kent L. Nasveschuk [EMAIL PROTECTED] --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Sieve problem
Kent L. Nasveschuk wrote: Hello, I'm having a problem with sieve finding the correct mailbox In a script when I use INBOX.backup the imapd.log says: Jun 10 08:01:55 mail master[10743]: about to exec /usr/cyrus/bin/lmtpd Jun 10 08:01:55 mail lmtpunix[10743]: executed Jun 10 08:01:55 mail lmtpunix[10743]: accepted connection Jun 10 08:01:55 mail lmtpunix[10743]: lmtp connection preauth'd as postman Jun 10 08:01:55 mail lmtpunix[10743]: sieve runtime error for kent id [EMAIL PROTECTED]: Fileinto: Invalid mailbox name When I use kent.backup I imapd.log says: Jun 10 08:08:57 mail master[10762]: about to exec /usr/cyrus/bin/lmtpd Jun 10 08:08:57 mail lmtpunix[10762]: executed Jun 10 08:08:57 mail lmtpunix[10762]: accepted connection Jun 10 08:08:57 mail lmtpunix[10762]: lmtp connection preauth'd as postman Jun 10 08:08:57 mail lmtpunix[10762]: duplicate_check: [EMAIL PROTECTED] user.kent.kent.backup 0 What do I use in the sieve script to deliver to the correct mailbox? What are the unixhierarchysep and altnamespace options in imapd.conf set to (if anything)? Sieve script: require fileinto; if header :contains [Sender,From] @whs1.tow.net { ^ It probably makes more sense to use: if address :domain [Sender,From] whs1.tow.net fileinto INBOX.backup;} else { fileinto INBOX; ^ You could just use 'keep' rather than fileinto 'fileinto INBOX' } -- Kenneth Murchison Oceana Matrix Ltd. Software Engineer 21 Princeton Place 716-662-8973 x26 Orchard Park, NY 14127 --PGP Public Key--http://www.oceana.com/~ken/ksm.pgp --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
sieve problem in 2.2
Howdy I'm using 2.2 branch for a while and sometimes I see problem of making connection to sieve It looks like TCP session is established but no banner appears. Normaly I solve this by commenting/uncommenting corresponding line in cyrus.conf and doing 'killall -HUP master' twice but it still be headache. Is it known issue ? any patch ? FreeBSD 4.8 cyrus.conf: sieve cmd=timsieved listen=sieve prefork=1 -- Dimitry
Re: Sieve problem
On Sun, 29 Jun 2003, Michael Kaufmann wrote: I'm trying to get sieve working on my Cyrus IMAPD (2.1.13) but I can't get it working the way I want. I get a lot of mails from mailing lists every day and I want them to be moved fout of my INBOX into INBOX.ml:blah.blah but only the filter rules for postix-users work correctly. Have you created each of the target folders? Cyrus doesn't create folders automatically, and will fallback to delivering to your INBOX if a given target folder doesn't exist. Failing that: are the ACLs on the target folders different? -- David Carter Email: [EMAIL PROTECTED] University Computing Service,Phone: (01223) 334502 New Museums Site, Pembroke Street, Fax: (01223) 334679 Cambridge UK. CB2 3QH.
Re: Sieve problem
Hi, Have you created each of the target folders? Cyrus doesn't create folders automatically, and will fallback to delivering to your INBOX if a given target folder doesn't exist. yes, all the folders do exist. Is there maybe a posibility to debug timsieved? Failing that: are the ACLs on the target folders different? yes, all the ACLs are user lrswipcda. thanx! Michael
Sieve problem
Hi! I'm trying to get sieve working on my Cyrus IMAPD (2.1.13) but I can't get it working the way I want. I get a lot of mails from mailing lists every day and I want them to be moved fout of my INBOX into INBOX.ml:blah.blah but only the filter rules for postix-users work correctly. I want to filter for sender: if header :contains [ sender ] [ [EMAIL PROTECTED] ] { fileinto INBOX.ml:xine.user; } the mail I want sieve to filter out looks like this: [snip] Message-Id: [EMAIL PROTECTED] Sender: [EMAIL PROTECTED] == HERE Errors-To: [EMAIL PROTECTED] X-BeenThere: [EMAIL PROTECTED] [snap] another example: I want to filter for to or cc: if header :contains [ to, cc ] [ [EMAIL PROTECTED] ] { fileinto INBOX.ml:amavis.user; } the mail looks like this: [snip] From: Klavs Klavsen [EMAIL PROTECTED] To: Amavis-user Mailinglist [EMAIL PROTECTED] == HERE!!! Content-Type: text/plain [snap] Why do my rulez not match? I'm frustrated! thanx Michael ps: Here is my complete rule set: require fileinto; /**/ /* Postfix Mailing Listen */== WORKS /**/ if header :contains [ sender ] [ [EMAIL PROTECTED], [EMAIL PROTECTED] ] { fileinto INBOX.ml:postfix.users; } /*/ /* Amavis Mailing Listen */ /*/ if header :contains [ to, cc ] [ [EMAIL PROTECTED] ] { fileinto INBOX.ml:amavis.tech; } if header :contains [ to, cc ] [ [EMAIL PROTECTED] ] { fileinto INBOX.ml:amavis.user; } if header :contains [ to, cc ] [ [EMAIL PROTECTED] ] { fileinto INBOX.ml:amavis.announce; } /***/ /* Xvid Mailing Listen */ /***/ if header :contains [ sender ] [ [EMAIL PROTECTED] ] { fileinto INBOX.ml:xvid.users; } if header :contains [ sender ] [ [EMAIL PROTECTED] ] { fileinto INBOX.ml:xvid.announce; } /***/ /* Xine Mailing Listen */ /***/ if header :contains [ sender ] [ [EMAIL PROTECTED] ] { fileinto INBOX.ml:xine.user; } /**/ /* Uni Mailing Listen */ /**/ if header :contains [ sender ] [ [EMAIL PROTECTED] ] { fileinto INBOX.ml:uni.studi-info; } if header :contains [ sender ] [ [EMAIL PROTECTED] ] { fileinto INBOX.ml:uni.ak-hackin; } // /* Transcode Mailing Listen */ // if header :contains [ sender ] [ [EMAIL PROTECTED]@theorie.physik.uni-goettingen.de ] { fileinto INBOX.ml:transcode.users; } if header :contains [ sender ] [ [EMAIL PROTECTED]@theorie.physik.uni-goettingen.de ] { fileinto INBOX.ml:transcode.devel; } // /* Squid Mailing Listen */ // if header :contains [ to, cc ] [ [EMAIL PROTECTED] ] { fileinto INBOX.ml:squid.users; } /*/ /* Php Wizard Mailing Listen */ /*/ if header :contains [ to, cc ] [ [EMAIL PROTECTED] ] { fileinto INBOX.ml:php.phpwizard; } /**/ /* Open Anti Virus Mailing Listen */ /**/ if header :contains [ to, cc ] [ [EMAIL PROTECTED] ] { fileinto INBOX.ml:openav.announce; } if header :contains [ to, cc ] [ [EMAIL PROTECTED] ] { fileinto INBOX.ml:openav.discuss; } // /* NVRec Mailing Listen */ // if header :contains [ to, cc ] [ [EMAIL PROTECTED] ] { fileinto INBOX.ml:nvrec.open; } /**/ /* Mobilix Mailing Listen */ /**/ if header :contains [ to, cc ] [ [EMAIL PROTECTED] ] { fileinto INBOX.ml:mobilix.laptop; } /**/ /* Lyx Mailing Listen */ /**/ if header :contains [ to, cc ] [ [EMAIL PROTECTED] ] { fileinto INBOX.ml:lyx.users; } /***/ /* Licq Mailing Listen */ /***/ if header :contains [ to , cc ] [ [EMAIL PROTECTED] ] { fileinto INBOX.ml:licq.users; } /**/ /* K3b Mailing Listen */ /**/ if header :contains [ to, cc ] [ [EMAIL PROTECTED] ] { fileinto INBOX.ml:k3b.user; } /*/ /* Gimp Print Mailing Listen */ /*/ if header :contains [ to, cc ] [ [EMAIL PROTECTED] ] { fileinto INBOX.ml:gimp-print.announce; } // /* Enlightenment Mailing Listen */ // if header :contains [ to, cc ] [ [EMAIL PROTECTED] ] { fileinto INBOX.ml:enlighenment.users; } if header :contains [ to, cc ] [ [EMAIL PROTECTED] ] { fileinto INBOX.ml:enlighenment.devel; } if header :contains [ to, cc ] [ [EMAIL PROTECTED] ] { fileinto
Re: Sieve problem
I'm no sieve expert but this works on my system: require [fileinto]; if header :contains Sender owner-info-cyrus { fileinto INBOX.lists.cyrus; } Did you include the require line? Or maybe sieve needs the opening squigle bracket on the if line. Did you read the rfc? On Sun, 2003-06-29 at 04:29, Michael Kaufmann wrote: Hi! I'm trying to get sieve working on my Cyrus IMAPD (2.1.13) but I can't get it working the way I want. I get a lot of mails from mailing lists every day and I want them to be moved fout of my INBOX into INBOX.ml:blah.blah but only the filter rules for postix-users work correctly. I want to filter for sender: if header :contains [ sender ] [ [EMAIL PROTECTED] ] { fileinto INBOX.ml:xine.user; } the mail I want sieve to filter out looks like this: [snip] Message-Id: [EMAIL PROTECTED] Sender: [EMAIL PROTECTED] == HERE Errors-To: [EMAIL PROTECTED] X-BeenThere: [EMAIL PROTECTED] [snap] another example: I want to filter for to or cc: if header :contains [ to, cc ] [ [EMAIL PROTECTED] ] { fileinto INBOX.ml:amavis.user; } the mail looks like this: [snip] From: Klavs Klavsen [EMAIL PROTECTED] To: Amavis-user Mailinglist [EMAIL PROTECTED] == HERE!!! Content-Type: text/plain [snap] Why do my rulez not match? I'm frustrated! thanx Michael ps: Here is my complete rule set: require fileinto; /**/ /* Postfix Mailing Listen */ == WORKS /**/ if header :contains [ sender ] [ [EMAIL PROTECTED], [EMAIL PROTECTED] ] { fileinto INBOX.ml:postfix.users; } /*/ /* Amavis Mailing Listen */ /*/ if header :contains [ to, cc ] [ [EMAIL PROTECTED] ] { fileinto INBOX.ml:amavis.tech; } if header :contains [ to, cc ] [ [EMAIL PROTECTED] ] { fileinto INBOX.ml:amavis.user; } if header :contains [ to, cc ] [ [EMAIL PROTECTED] ] { fileinto INBOX.ml:amavis.announce; } /***/ /* Xvid Mailing Listen */ /***/ if header :contains [ sender ] [ [EMAIL PROTECTED] ] { fileinto INBOX.ml:xvid.users; } if header :contains [ sender ] [ [EMAIL PROTECTED] ] { fileinto INBOX.ml:xvid.announce; } /***/ /* Xine Mailing Listen */ /***/ if header :contains [ sender ] [ [EMAIL PROTECTED] ] { fileinto INBOX.ml:xine.user; } /**/ /* Uni Mailing Listen */ /**/ if header :contains [ sender ] [ [EMAIL PROTECTED] ] { fileinto INBOX.ml:uni.studi-info; } if header :contains [ sender ] [ [EMAIL PROTECTED] ] { fileinto INBOX.ml:uni.ak-hackin; } // /* Transcode Mailing Listen */ // if header :contains [ sender ] [ [EMAIL PROTECTED]@theorie.physik.uni-goettingen.de ] { fileinto INBOX.ml:transcode.users; } if header :contains [ sender ] [ [EMAIL PROTECTED]@theorie.physik.uni-goettingen.de ] { fileinto INBOX.ml:transcode.devel; } // /* Squid Mailing Listen */ // if header :contains [ to, cc ] [ [EMAIL PROTECTED] ] { fileinto INBOX.ml:squid.users; } /*/ /* Php Wizard Mailing Listen */ /*/ if header :contains [ to, cc ] [ [EMAIL PROTECTED] ] { fileinto INBOX.ml:php.phpwizard; } /**/ /* Open Anti Virus Mailing Listen */ /**/ if header :contains [ to, cc ] [ [EMAIL PROTECTED] ] { fileinto INBOX.ml:openav.announce; } if header :contains [ to, cc ] [ [EMAIL PROTECTED] ] { fileinto INBOX.ml:openav.discuss; } // /* NVRec Mailing Listen */ // if header :contains [ to, cc ] [ [EMAIL PROTECTED] ] { fileinto INBOX.ml:nvrec.open; } /**/ /* Mobilix Mailing Listen */ /**/ if header :contains [ to, cc ] [ [EMAIL PROTECTED] ] { fileinto INBOX.ml:mobilix.laptop; } /**/ /* Lyx Mailing Listen */ /**/ if header :contains [ to, cc ] [ [EMAIL PROTECTED] ] { fileinto INBOX.ml:lyx.users; } /***/ /* Licq Mailing Listen */ /***/ if header :contains [ to , cc ] [ [EMAIL PROTECTED] ] { fileinto INBOX.ml:licq.users; } /**/ /* K3b Mailing Listen */ /**/ if header :contains [ to, cc ] [ [EMAIL PROTECTED] ] { fileinto INBOX.ml:k3b.user; } /*/ /* Gimp Print Mailing Listen */
Re: Sieve problem
On Fri, 7 Mar 2003 [EMAIL PROTECTED] wrote: I've setup cyrus IMAP with sieve a few weeks ago. It works just fine for me! But I couldn't find info how I can have global sieve rules. Is there a way to set up global rules for all users defined by administrator? I want sometimes change some rules for all my users, but going to each users folder is not a good idea at all. And I'd also like my users to override global rules by setting theit own. I couldn't find anything about that. You can't do this (well, other than by adding stuff to each user's sieve script). There's a number of implementation questions (does the global override the user specific? what if there's a fileinto for a folder that a user's deleted or never created? should it be created?), among others. Also, may times people want this for shared folders, which also isn't clear how to implement. -Rob -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Rob Siemborski * Andrew Systems Group * Cyert Hall 207 * 412-268-7456 Research Systems Programmer * /usr/contributed Gatekeeper
Re: Sieve problem
Rob Siemborski wrote: On Fri, 7 Mar 2003 [EMAIL PROTECTED] wrote: I've setup cyrus IMAP with sieve a few weeks ago. It works just fine for me! But I couldn't find info how I can have global sieve rules. Is there a way to set up global rules for all users defined by administrator? I want sometimes change some rules for all my users, but going to each users folder is not a good idea at all. And I'd also like my users to override global rules by setting theit own. I couldn't find anything about that. You can't do this (well, other than by adding stuff to each user's sieve script). There's a number of implementation questions (does the global override the user specific? what if there's a fileinto for a folder that a user's deleted or never created? should it be created?), among others. Would it be feasible to add an include or call facility into sieve? That way a user could specify where the global rules should be run and put rules in front of them if they need any exceptions. It would still require code in the users script, but most users will not change it anyway so a default script created for the user would be sufficient for most. Unlike just setting the default script to be the global script, changes to the global script would not require updating all the users' scripts and trying to decide what to do if they have edited them. It also gives users the option of selecting among multiple administrator-provided scripts. This is probably a lot of work for at least the bytecode version -- the non-bytecode interpreter should be pretty easy to just include the contents of another file, and require handling might be tricky. Also, may times people want this for shared folders, which also isn't clear how to implement. I haven't looked at the code, but it seems like it wouldn't be hard to have another directory under sieve for shared folders, such as sieve/shared/mailboxpath. timsieved would need changes to allow them to be stored (by an administrator or perhaps by any user who has delete privileges on the folder), and it would complicate handling sieve scripts in home directories. -- John A. Tamplin Unix Systems Administrator
Re: Sieve problem
On Sun, 9 Mar 2003, John A. Tamplin wrote: Would it be feasible to add an include or call facility into sieve? This is something I've been interested in for a while, I just haven't had time to throw together an I-D for it. I hadn't thought of letting it include scripts outside of the user's personal set though. This is probably a lot of work for at least the bytecode version -- the non-bytecode interpreter should be pretty easy to just include the contents of another file, and require handling might be tricky. I don't see why the bytecode version can't just have an include opcode, followed by a string (stringlist?) of other files. I haven't looked at the code, but it seems like it wouldn't be hard to have another directory under sieve for shared folders, such as sieve/shared/mailboxpath. timsieved would need changes to allow them to be stored (by an administrator or perhaps by any user who has delete privileges on the folder), and it would complicate handling sieve scripts in home directories. Now you've associated scripts with folders, instead of addresses. Does this mean that if I (personally) fileinto shared.folder, and shared.folder has a script, does it run? Can you fileinto between two shared folders? What about setting \Seen from a sieve script? Do you have to set it for everyone (that'd be really expensive in Cyrus). How does vacation interoperate (what happens if I fileinto a folder which has a script which calls vacation, but I've already sent this guy a vacation notice)? Among others (and I'm sure Larry can point out obvious ones I'm missing) -Rob -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Rob Siemborski * Andrew Systems Group * Cyert Hall 207 * 412-268-7456 Research Systems Programmer * /usr/contributed Gatekeeper
Re: Sieve problem
Rob Siemborski wrote: On Sun, 9 Mar 2003, John A. Tamplin wrote: Would it be feasible to add an include or call facility into sieve? This is something I've been interested in for a while, I just haven't had time to throw together an I-D for it. I hadn't thought of letting it include scripts outside of the user's personal set though. I've actually gone so far as to add such a facility to the yacc parser. The problem is, does an included script have to be a syntactically valid standalone script (including all necessary requires)? If so, then we have to change the existing parser to accept require anywhere in a script. If not, then we have to change the parser to not require require before an optional facility is used. [...] IMO, the only reasonable way to associate global scripts is to assign one script to the bb user (or whichever userid is used to post to shared folders). This has the downside of running the script for every shared folder, but the alternative is to have a whole bunch of mini-scripts floating around. Perhaps we could add a mailbox annotation to those mailboxes that we want to run the script? -- Kenneth Murchison Oceana Matrix Ltd. Software Engineer 21 Princeton Place 716-662-8973 x26 Orchard Park, NY 14127 --PGP Public Key--http://www.oceana.com/~ken/ksm.pgp
Re: Sieve problem
Rob Siemborski wrote: I don't see why the bytecode version can't just have an include opcode, followed by a string (stringlist?) of other files. I didn't know if the bytecode was structured such that you can just include the bytecode, or if more work would be required to munge them together. Now you've associated scripts with folders, instead of addresses. Does this mean that if I (personally) fileinto shared.folder, and shared.folder has a script, does it run? Can you fileinto between two shared folders? What about setting \Seen from a sieve script? Do you have to set it for everyone (that'd be really expensive in Cyrus). How does vacation interoperate (what happens if I fileinto a folder which has a script which calls vacation, but I've already sent this guy a vacation notice)? Among others (and I'm sure Larry can point out obvious ones I'm missing) I would say that only folders not in the user hierarchy can have scripts, and that they are only invoked on delivery rather than fileinto (so they are still associated with addresses, just ones that don't correspond to a particular user). I personally would just say ignore vacation and setting seen flags on a non-user folder. The main thing I would like is to have filters for sorting mail that is delivered directly to a shared mailbox into subfolders of that mailbox, and I wouldn't use those functions on a shared folder anyway. Not having vacation on a folder that isn't associated with a single user doesn't seem to be much of a loss. -- John A. Tamplin Unix Systems Administrator
Sieve problem
Hi, I've setup cyrus IMAP with sieve a few weeks ago. It works just fine for me! But I couldn't find info how I can have global sieve rules. Is there a way to set up global rules for all users defined by administrator? I want sometimes change some rules for all my users, but going to each users folder is not a good idea at all. And I'd also like my users to override global rules by setting theit own. I couldn't find anything about that. If somebody could point me to the right direction, it would be greatly appreciated! Best regards, Dmitry
sieve problem
Now sivtest, sieveshell (,imtest, mutt) are all happily connecting, but when I actually try out the test sieve script, I get an lmtp mail delivery error(!) This is the test script: require [reject,fileinto]; if address :is :all From [EMAIL PROTECTED] { reject testing; } and it is successfully installed. When it is active, a test message gets: exim[379]: 2003-02-08 22:30:28 18hdUS-67-00 = [EMAIL PROTECTED] U=prlw1 P=local S=470 [EMAIL PROTECTED] exim[380]: 2003-02-08 22:30:29 18hdUS-67-00 == [EMAIL PROTECTED] [EMAIL PROTECTED] R=newnham_user T=cyrus_delivery defer (-1): LMTP error after end of data: 421 4.3.0 lmtpd: couldn't exec Feb 8 22:30:28 tape master[384]: about to exec /usr/cyrus/bin/lmtpd Feb 8 22:30:28 tape lmtpunix[384]: executed Feb 8 22:30:28 tape lmtpd[384]: accepted connection Feb 8 22:30:28 tape lmtpd[384]: lmtp connection preauth'd as postman Feb 8 22:30:28 tape lmtpd[384]: mystore: starting txn 2147483660 Feb 8 22:30:28 tape lmtpd[384]: mystore: committing txn 2147483660 Feb 8 22:30:28 tape lmtpd[384]: duplicate_mark: cmu-sieve-384-1044743428-0@tap e.newn.cam.ac.uk .dburs3.sieve. 1044743428 Feb 8 22:30:28 tape lmtpd[384]: sieve runtime error for dburs3 id 200302082230 [EMAIL PROTECTED]: Reject: Sendmail process terminated normally, exit status 75 Feb 8 22:30:28 tape lmtpd[384]: DBERROR db4: Locker does not exist Feb 8 22:30:28 tape lmtpd[384]: DBERROR: error fetching 20030208223028.A372@ta pe.newn.cam.ac.uk: Invalid argument Feb 8 22:30:28 tape lmtpd[384]: duplicate_check: error looking up 200302082230 [EMAIL PROTECTED]/user.dburs3: cyrusdb error Feb 8 22:30:28 tape lmtpd[384]: duplicate_check: [EMAIL PROTECTED] .cam.ac.uk user.dburs3 0 Feb 8 22:30:28 tape lmtpd[384]: DBERROR db4: Locker does not exist Feb 8 22:30:28 tape lmtpd[384]: DBERROR: error fetching user.dburs3: Invalid ar gument Feb 8 22:30:28 tape lmtpd[384]: DBERROR: error fetching user.dburs3: cyrusdb er ror Feb 8 22:31:29 tape lmtpd[384]: DBERROR: error closing: Invalid argument Feb 8 22:31:29 tape lmtpd[384]: DBERROR: error closing deliverdb: cyrusdb error Feb 8 22:31:29 tape lmtpd[384]: DBERROR: error closing: Invalid argument Feb 8 22:31:29 tape lmtpd[384]: DBERROR: error closing mailboxes: cyrusdb error Feb 8 22:31:29 tape master[187]: process 384 exited, signaled to death by 10 I upgraded to db-4.1.25 just in case.. I don't understand the sieve runtime error line - it says Reject, but isn't that precisely what the script says should happen? Any hints on how to debug this? Cheers, Patrick
Re: sieve problem
Patrick Welche wrote: Now sivtest, sieveshell (,imtest, mutt) are all happily connecting, but when I actually try out the test sieve script, I get an lmtp mail delivery error(!) This is the test script: require [reject,fileinto]; if address :is :all From [EMAIL PROTECTED] { reject testing; } and it is successfully installed. When it is active, a test message gets: exim[379]: 2003-02-08 22:30:28 18hdUS-67-00 = [EMAIL PROTECTED] U=prlw1 P=local S=470 [EMAIL PROTECTED] exim[380]: 2003-02-08 22:30:29 18hdUS-67-00 == [EMAIL PROTECTED] [EMAIL PROTECTED] R=newnham_user T=cyrus_delivery defer (-1): LMTP error after end of data: 421 4.3.0 lmtpd: couldn't exec Looks like lmtpd couldn't find your sendmail binary. By default it tries to use /usr/lib/sendmail. If its installed somewhere else, set the 'sendmail' option in imapd.conf accordingly. -- Kenneth Murchison Oceana Matrix Ltd. Software Engineer 21 Princeton Place 716-662-8973 x26 Orchard Park, NY 14127 --PGP Public Key--http://www.oceana.com/~ken/ksm.pgp
Re: sieve problem
On Sat, Feb 08, 2003 at 06:41:57PM -0500, Ken Murchison wrote: Patrick Welche wrote: Now sivtest, sieveshell (,imtest, mutt) are all happily connecting, but when I actually try out the test sieve script, I get an lmtp mail delivery error(!) Looks like lmtpd couldn't find your sendmail binary. By default it tries to use /usr/lib/sendmail. If its installed somewhere else, set the 'sendmail' option in imapd.conf accordingly. Thank you! that was it, Patrick
Re: Strange sieve problem....
This is fixed in CVS, so if you wait a day or so, 2.1.12 will be out and you can use that (or you can just use CVS). -Rob On Sun, 2 Feb 2003, Chris Scott wrote: Chris Scott wrote: snip Does anyone have suggestions for what to look at next? Sorry for replying to myself but I have more info. on this. The server I have where sieve is working is version is v1.1.0 (compiled from imap 2.1.5) and the latest where it is not working is v2.1.11. The following change was made in timesieved/parser.c to the cmd_authenticate command: 602a636 int r; 608c642,648 mboxlist_detail(inboxname, type, server, NULL, NULL, NULL); --- r = mboxlist_detail(inboxname, type, server, NULL, NULL, NULL); if(r) { /* mboxlist_detail error */ *errmsg = mailbox unknown; return FALSE; } In my case, r is IMAP_MAILBOX_NONEXISTENT. It looks like the problem is that mboxlist_detail expects an internal mailbox name but it is being passed an external mailbox name. The fix looks to be using mboxname_hiersep_tointernal() on the inboxname before passing it so mboxlist_detail. Can someone familiar w/the code confirm this? Thanks, Chris Scott -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Rob Siemborski * Andrew Systems Group * Cyert Hall 207 * 412-268-7456 Research Systems Programmer * /usr/contributed Gatekeeper
Re: Strange sieve problem....
Rob Siemborski wrote: This is fixed in CVS, so if you wait a day or so, 2.1.12 will be out and you can use that (or you can just use CVS). -Rob Darn, and I just finished a patch ;-) Good to hear about 2.1.12. I'll patch locally and then upgrade when it is out. Thanks for the good software! Chris Scott
Re: Strange sieve problem....
Replaced the timsieved/parser.c file in the imap 2.1.11 tarball with the updated one from CVS and re-compiled the software, and guess what ? the strange sieve problem are no longer a strange problem :-) Thanks Chris, for your investigation _ Regards _ bryntez - Original Message - From: Chris Scott [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, February 02, 2003 8:24 PM Subject: Re: Strange sieve problem : Rob Siemborski wrote: : This is fixed in CVS, so if you wait a day or so, 2.1.12 will be out and : you can use that (or you can just use CVS). : : -Rob : : : Darn, and I just finished a patch ;-) Good to hear about 2.1.12. I'll : patch locally and then upgrade when it is out. : : Thanks for the good software! : : Chris Scott : : : :
Strange sieve problem....
Hi list.. I have trouble connecting to sieve. Everything else works fine. I'm using RedHat 7.3. I've tried Simons rpms also, but the same error occures. I'm using Cyrus Sasl 2.1.11 and Cyrus Imap 2.1.11. The system is a web-cyradm based config with MySQL and Postfix. saslauthd -a pam are working fine against smtp, pop and imap. im the pam.d dir, there's imap, pop, sieve and smtp with the same content in them, pointing to /lib/security/pam_mysql.so etc... When I telnet localhost sieve, I get: Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. IMPLEMENTATION Cyrus timsieved v2.1.11 SASL LOGIN PLAIN SIEVE fileinto reject envelope vacation imapflags notify subaddress relational regex OK When trying to use sivtest with plain, this happens: sivtest -u cyrus -a cyrus -m plain -p 2000 localhost S: IMPLEMENTATION Cyrus timsieved v2.1.11 S: SASL LOGIN PLAIN S: SIEVE fileinto reject envelope vacation imapflags notify subaddress relational regex S: OK Please enter your password: C: AUTHENTICATE PLAIN {32+} Y3lydXMAY3lydXMAY3lydXNfcGFzc3dk S: NO Authentication Error Authentication failed. generic failure Security strength factor: 0 The logs come up with: Feb 1 15:21:57 gollum master[23388]: about to exec /usr/cyrus/bin/timsieved Feb 1 15:21:57 gollum sieve[23388]: executed Feb 1 15:21:57 gollum sieve[23388]: accepted connection Feb 1 15:22:25 gollum master[23364]: process 23388 exited, status 0 When trying to use sivtest with login, this happens: sivtest -u cyrus -a cyrus -m login -p 2000 localhost S: IMPLEMENTATION Cyrus timsieved v2.1.11 S: SASL LOGIN PLAIN S: SIEVE fileinto reject envelope vacation imapflags notify subaddress relational regex S: OK C: AUTHENTICATE LOGIN S: {12} S: VXNlcm5hbWU6 Please enter your password: C: {8+} Y3lydXM= S: {12} S: UGFzc3dvcmQ6 C: {16+} Y3lydXNfcGFzc3dk S: NO Authentication Error Authentication failed. generic failure Security strength factor: 0 When I try to use sieveshell I get: connecting to localhost Please enter your password: Please enter your password: Bad protocol from MANAGESIEVE server: lost connection And the log says: gollum perl: No worthy mechs found Feb 1 15:28:35 gollum timsieved[23539]: attempting server step after doneflag Feb 1 15:28:35 gollum master[23364]: process 23539 exited, signaled to death by 11 = My configs...: cyrus.conf: SERVICES { # add or remove based on preferences imap cmd=imapd listen=imap prefork=0 # imaps cmd=imapd -s listen=imaps prefork=0 pop3 cmd=pop3d listen=pop3 prefork=0 # pop3s cmd=pop3d -s listen=pop3s prefork=0 sieve cmd=timsieved listen=sieve prefork=0 imapd.conf: postmaster: postmaster configdirectory: /var/imap partition-default: /var/spool/imap admins: cyrus allowanonymouslogin: no allowplaintext: yes sasl_mech_list: PLAIN LOGIN servername: gollum.xxx.yyy autocreatequota: 2 reject8bit: no quotawarn: 90 timeout: 30 poptimeout: 10 sasl_pwcheck_method: saslauthd sievedir: /usr/sieve sendmail: /usr/sbin/sendmail sieve_maxscriptsize: 32 sieve_maxscripts: 5 unixhierarchysep: yes umask: 077 == Any advisory are much appreciated regards -bryntez
Re: Strange sieve problem....
Thanks... It's good to know that I'm not the only one experiencing this :-) The setup I have problems with, is virtually a replica of my production server [running RH7.3 Imap/Sasl 2.1.5] and the sieve system works like a dream on that one. (I'm really puzzled) The only difference is that on the production system I did the configure job from scratch and compiled from source both apache, mysql and the berkeley dbases... With this new backupsystem I'd hoped to get things going by rpms... but ... :-( Don't seem like it's going to happen... _ Regards _ | |__ _ _ _ _| |_ ___ ___ Mob : +47 93 09 28 27 | _ | '_|/ /\| | __| _ \ / Dir : +47 35 56 17 78 | |/ | |\ / | | |_ __/ /_ mail: [EMAIL PROTECTED] |_ _/|_|/ /_|\__|\__\___/___|web : www.bryntez.com /_/ - Original Message - From: Chris Scott [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, February 01, 2003 9:53 PM Subject: Re: Strange sieve problem : Bryntez wrote: : : Hi list.. : I have trouble connecting to sieve. Everything else works fine. : I'm using RedHat 7.3. I've tried Simons rpms also, but the same error : occures. I'm using Cyrus Sasl 2.1.11 and Cyrus Imap 2.1.11. : The system is a web-cyradm based config with MySQL and Postfix. : : I'm using FreeBSD with cyrus compiled from source but I'm having the : same problem. This is a new installation and IMAP and POP are working fine. : : snip : : : : When trying to use sivtest with plain, this happens: : sivtest -u cyrus -a cyrus -m plain -p 2000 localhost : S: IMPLEMENTATION Cyrus timsieved v2.1.11 : S: SASL LOGIN PLAIN : S: SIEVE fileinto reject envelope vacation imapflags notify subaddress : relational regex : S: OK : Please enter your password: : C: AUTHENTICATE PLAIN {32+} : Y3lydXMAY3lydXMAY3lydXNfcGFzc3dk : S: NO Authentication Error : Authentication failed. generic failure : Security strength factor: 0 : : The logs come up with: : Feb 1 15:21:57 gollum master[23388]: about to exec : /usr/cyrus/bin/timsieved : Feb 1 15:21:57 gollum sieve[23388]: executed : Feb 1 15:21:57 gollum sieve[23388]: accepted connection : Feb 1 15:22:25 gollum master[23364]: process 23388 exited, status 0 : : Yep, that's the same thing I'm seeing. Sorry I don't have more info. : Same basic config as you. Just thought it may help to confirm the problem. : : Chris Scott : : :
Re: Strange sieve problem....
Chris Scott wrote: Bryntez wrote: Hi list.. I have trouble connecting to sieve. Everything else works fine. I'm using RedHat 7.3. I've tried Simons rpms also, but the same error occures. I'm using Cyrus Sasl 2.1.11 and Cyrus Imap 2.1.11. The system is a web-cyradm based config with MySQL and Postfix. snip Yep, that's the same thing I'm seeing. Sorry I don't have more info. Same basic config as you. Just thought it may help to confirm the problem. Chris Scott A little more info. I started saslauthd with -d and from the logs it looks like the user is authenticating OK: Feb 1 18:33:17 mgw1 saslauthd[75873]: authenticating chris.playingforbeer.com Feb 1 18:33:17 mgw1 saslauthd[75873]: OK: user=chris.playingforbeer.com service=sieve realm= Also started master with -D and see: Feb 1 18:40:07 mgw1 master[75930]: about to exec /usr/cyrus/bin/timsieved Feb 1 18:40:07 mgw1 sieve[75930]: executed Feb 1 18:40:07 mgw1 sieve[75930]: telling master 2 Feb 1 18:40:07 mgw1 master[75916]: service sieve now has 0 workers Feb 1 18:40:07 mgw1 sieve[75930]: accepted connection Feb 1 18:40:07 mgw1 sieve[75930]: telling master 3 Feb 1 18:40:07 mgw1 master[75916]: service sieve now has 0 workers Feb 1 18:40:07 mgw1 master[75916]: process 75930 exited, status 0 Does anyone have suggestions for what to look at next? Thanks, Chris Scott
Sieve problem
Hy everybody, is there anybody out there (you may help me ...) ? I'm having trouble with the sieve functionality of my cyrus-2.1.10 Server It took me quite a while to set up the following system, but now ist works fine: - --- - | fetchmail | -- | postfix | -- | procmail | -- | cyrus (deliver) | - --- - | | | | --- | spamassasin | --- The problem is, that sieve scripts are completly not working. First I will describe what is possible to do: * I can upload/activate sieve-scripts with installsieve/or managesieve (they are marked as active) * In my mails I have a header X-Sieve: CMU Sieve 2.2 ### my questions ### * Is there anywhere a mistake in my configuration ? * Is there any possibility (without hacking sourcecode :-) ) to log mistakes from timsieved ? * Is there anything I can do ? Here are some parts of my configuration (which might help somebody): ###postfix/master.cf: ### procmail unix - n n - - pipe flags=Ru user=cyrus argv=/usr/local/bin/procmail -t -m SENDER=${sender} EXTENSION=${extension} USER=${user} /etc/fetchmail/procmailrc ### cyrus.conf: ### SERVICES { [...] sieve cmd=timsieved listen=sieve prefork=0 lmtpunix cmd=lmtpd listen=/var/imap/socket/lmtp prefork=0 } ### imapd.conf: ### [...] admins: cyrus sieveusehomedir: false sievedir: /usr/sieve sendmail: /usr/sbin/sendmail sieve_maxscriptsize: 32 sieve_maxscripts: 5 unixhierarchysep: yes duplicatesuppression: yes [...] ### procmailrc: ### LOGFILE=/var/log/procmail.log :0fw |/usr/bin/spamc -f :0 * ^X-Spam-Status: Yes |/usr/cyrus/bin/deliver -a $USER -m user/$USER/spam -q -r $SENDER :0w |/usr/cyrus/bin/deliver -a $USER -m user/$USER -q -r $SENDER DELIVERED='yes' { EXITCODE=$? :0 |/usr/cyrus/bin/deliver -a mailadmin -m user/mailadmin -q -r $SENDER } ### /usr/sieve/s//default: ### require [fileinto,vacation]; if anyof (header :contains subject test) { fileinto INBOX/spam; } else { keep; } vacation :days 1 :addresses [[EMAIL PROTECTED], [EMAIL PROTECTED]] text: Autogenerated Message: On vacation for the next week . ; :) Dirk Schwier --- mailto: [EMAIL PROTECTED] phone: 0162.74 61 685 --- Sichern Sie sich jetzt den neuen Otto Katalog mit über 40.000 Artikeln auf über 1.300 Seiten - kostenlos und ganz unverbindlich. http://www.arcor.de/home/redir.php/email.otto ---
sieve problem
I have a sieve script set up which puts all mail from the info-cyrus list into a folder using the rule if address :is :localpart [to, cc, bcc] info-cyrus { fileinto INBOX.info-cyrus; } This works fine except for every message from Simon Matter which ends up in my INBOX. I used the test program in the sieve/ directory to work out why this was happenning. The second Received header reading upwards is preceded by a ''. If the '' is removed then it gets filtered as expected. An example follows. Is this a sieve problem? But why is the '' there? I am running version 2.0.16 of the cyrus-imapd package (on Solaris 8). Received: from mx.de.kpnqwest.net (mx.de.kpnqwest.net [193.141.40.5]) by lists2.andrew.cmu.edu (8.12.0.Beta16/8.12.2.Beta3) with ESMTP id g336n8iB021479 for [EMAIL PROTECTED]; Wed, 3 Apr 2002 01:49:08 -0500 (EST) Received: from lizard.webland.de (lizard.webland.de [194.122.76.201]) by mx.de.kpnqwest.net (Postfix (mx08)) with ESMTP id 8A67261B1; Wed, 3 Apr 2002 08:49:08 +0200 (MEST) (envelope-from [EMAIL PROTECTED]) Received: (from uucp@localhost) by lizard.webland.de (8.8.8/8.8.7) id IAA17233; Wed, 3 Apr 2002 08:49:08 +0200 (MET DST) Received: from mobile.sauter-bc.com (unknown [10.1.6.21]) by basel1.sauter-bc.com (Postfix) with ESMTP id C285857306; Wed, 3 Apr 2002 08:49:02 +0200 (CEST) Received: from ch.sauter-bc.com (sup.cad.sba [10.1.200.117]) by mobile.sauter-bc.com (Postfix) with ESMTP id C4FE925835; Wed, 3 Apr 2002 08:49:01 +0200 (CEST) Message-ID: [EMAIL PROTECTED] Date: Wed, 03 Apr 2002 08:49:01 +0200 From: Simon Matter [EMAIL PROTECTED] Organization: Sauter AG, Basel X-Mailer: Mozilla 4.77 [de] (X11; U; Linux 2.2.19-6.2.16 i686) X-Accept-Language: de-CH, en MIME-Version: 1.0 To: [EMAIL PROTECTED] Cc: cyrus [EMAIL PROTECTED] Subject: Re: your mail References: [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Sender: [EMAIL PROTECTED] Precedence: bulk Andreas Meyer schrieb: Hallo! -- Richard Gilbert Corporate Information and Computing Services University of Sheffield, Sheffield, S10 2TN, UK Phone: +44 114 222 3028 Fax: +44 114 222 3040
Re: sieve problem
Richard Gilbert wrote: I have a sieve script set up which puts all mail from the info-cyrus list into a folder using the rule if address :is :localpart [to, cc, bcc] info-cyrus { fileinto INBOX.info-cyrus; } This works fine except for every message from Simon Matter which ends up in my INBOX. I used the test program in the sieve/ directory to work out why this was happenning. The second Received header reading upwards is preceded by a ''. If the '' is removed then it gets filtered as expected. An example follows. Is this a sieve problem? But why is the '' there? I am running version 2.0.16 of the cyrus-imapd package (on Solaris 8). This has been fixed in v2.1.3. Trying applying this patch: http://bugzilla.andrew.cmu.edu/cgi-bin/cvsweb.cgi/src/cyrus/imap/lmtpengine.c.diff?tr1=1.60r1=texttr2=1.58r2=textf=u Ken -- Kenneth Murchison Oceana Matrix Ltd. Software Engineer 21 Princeton Place 716-662-8973 x26 Orchard Park, NY 14127 --PGP Public Key--http://www.oceana.com/~ken/ksm.pgp
Re: sieve problem
Will this patch work on 2.0.16? Harris On Wed, 2002-04-03 at 13:41, Ken Murchison wrote: Richard Gilbert wrote: I have a sieve script set up which puts all mail from the info-cyrus list into a folder using the rule if address :is :localpart [to, cc, bcc] info-cyrus { fileinto INBOX.info-cyrus; } This works fine except for every message from Simon Matter which ends up in my INBOX. I used the test program in the sieve/ directory to work out why this was happenning. The second Received header reading upwards is preceded by a ''. If the '' is removed then it gets filtered as expected. An example follows. Is this a sieve problem? But why is the '' there? I am running version 2.0.16 of the cyrus-imapd package (on Solaris 8). This has been fixed in v2.1.3. Trying applying this patch: http://bugzilla.andrew.cmu.edu/cgi-bin/cvsweb.cgi/src/cyrus/imap/lmtpengine.c.diff?tr1=1.60r1=texttr2=1.58r2=textf=u Ken -- Kenneth Murchison Oceana Matrix Ltd. Software Engineer 21 Princeton Place 716-662-8973 x26 Orchard Park, NY 14127 --PGP Public Key--http://www.oceana.com/~ken/ksm.pgp
Re: sieve problem
Harris Landgarten wrote: Will this patch work on 2.0.16? Yes. This is why I posted it (see Richards original post below). On Wed, 2002-04-03 at 13:41, Ken Murchison wrote: Richard Gilbert wrote: I have a sieve script set up which puts all mail from the info-cyrus list into a folder using the rule if address :is :localpart [to, cc, bcc] info-cyrus { fileinto INBOX.info-cyrus; } This works fine except for every message from Simon Matter which ends up in my INBOX. I used the test program in the sieve/ directory to work out why this was happenning. The second Received header reading upwards is preceded by a ''. If the '' is removed then it gets filtered as expected. An example follows. Is this a sieve problem? But why is the '' there? I am running version 2.0.16 of the cyrus-imapd package (on Solaris 8). This has been fixed in v2.1.3. Trying applying this patch: http://bugzilla.andrew.cmu.edu/cgi-bin/cvsweb.cgi/src/cyrus/imap/lmtpengine.c.diff?tr1=1.60r1=texttr2=1.58r2=textf=u Ken -- Kenneth Murchison Oceana Matrix Ltd. Software Engineer 21 Princeton Place 716-662-8973 x26 Orchard Park, NY 14127 --PGP Public Key--http://www.oceana.com/~ken/ksm.pgp -- Kenneth Murchison Oceana Matrix Ltd. Software Engineer 21 Princeton Place 716-662-8973 x26 Orchard Park, NY 14127 --PGP Public Key--http://www.oceana.com/~ken/ksm.pgp
RE: sieve problem
Your patch turns lmtpengine.c,v 1.58 2002/02/21 17:43:08 rjs3 into lmtpengine.c,v 1.60 2002/02/22 18:36:58. Cyrus-imap 2.016 contains lmtpengine.c v 1.26 You are only changing two lines of code and the same code segment appears in v1.26 starting at line 626. I assume the change can be made manually with the same effect. Let me know if I am wrong. Harris -Original Message- From: Ken Murchison [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 03, 2002 5:07 PM To: Harris Landgarten Cc: Richard Gilbert; cyrus Subject: Re: sieve problem Harris Landgarten wrote: Will this patch work on 2.0.16? Yes. This is why I posted it (see Richards original post below). On Wed, 2002-04-03 at 13:41, Ken Murchison wrote: Richard Gilbert wrote: I have a sieve script set up which puts all mail from the info-cyrus list into a folder using the rule if address :is :localpart [to, cc, bcc] info-cyrus { fileinto INBOX.info-cyrus; } This works fine except for every message from Simon Matter which ends up in my INBOX. I used the test program in the sieve/ directory to work out why this was happenning. The second Received header reading upwards is preceded by a ''. If the '' is removed then it gets filtered as expected. An example follows. Is this a sieve problem? But why is the '' there? I am running version 2.0.16 of the cyrus-imapd package (on Solaris 8). This has been fixed in v2.1.3. Trying applying this patch: http://bugzilla.andrew.cmu.edu/cgi-bin/cvsweb.cgi/src/cyrus/imap/lmtpeng ine.c.diff?tr1=1.60r1=texttr2=1.58r2=textf=u Ken -- Kenneth Murchison Oceana Matrix Ltd. Software Engineer 21 Princeton Place 716-662-8973 x26 Orchard Park, NY 14127 --PGP Public Key--http://www.oceana.com/~ken/ksm.pgp -- Kenneth Murchison Oceana Matrix Ltd. Software Engineer 21 Princeton Place 716-662-8973 x26 Orchard Park, NY 14127 --PGP Public Key--http://www.oceana.com/~ken/ksm.pgp
Re: sieve problem
Harris Landgarten wrote: Your patch turns lmtpengine.c,v 1.58 2002/02/21 17:43:08 rjs3 into lmtpengine.c,v 1.60 2002/02/22 18:36:58. Cyrus-imap 2.016 contains lmtpengine.c v 1.26 You are only changing two lines of code and the same code segment appears in v1.26 starting at line 626. I assume the change can be made manually with the same effect. Yes. The other stuff is just RCS/CVS version info which means nothing. Ken -Original Message- From: Ken Murchison [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 03, 2002 5:07 PM To: Harris Landgarten Cc: Richard Gilbert; cyrus Subject: Re: sieve problem Harris Landgarten wrote: Will this patch work on 2.0.16? Yes. This is why I posted it (see Richards original post below). On Wed, 2002-04-03 at 13:41, Ken Murchison wrote: Richard Gilbert wrote: I have a sieve script set up which puts all mail from the info-cyrus list into a folder using the rule if address :is :localpart [to, cc, bcc] info-cyrus { fileinto INBOX.info-cyrus; } This works fine except for every message from Simon Matter which ends up in my INBOX. I used the test program in the sieve/ directory to work out why this was happenning. The second Received header reading upwards is preceded by a ''. If the '' is removed then it gets filtered as expected. An example follows. Is this a sieve problem? But why is the '' there? I am running version 2.0.16 of the cyrus-imapd package (on Solaris 8). This has been fixed in v2.1.3. Trying applying this patch: http://bugzilla.andrew.cmu.edu/cgi-bin/cvsweb.cgi/src/cyrus/imap/lmtpeng ine.c.diff?tr1=1.60r1=texttr2=1.58r2=textf=u Ken -- Kenneth Murchison Oceana Matrix Ltd. Software Engineer 21 Princeton Place 716-662-8973 x26 Orchard Park, NY 14127 --PGP Public Key--http://www.oceana.com/~ken/ksm.pgp -- Kenneth Murchison Oceana Matrix Ltd. Software Engineer 21 Princeton Place 716-662-8973 x26 Orchard Park, NY 14127 --PGP Public Key--http://www.oceana.com/~ken/ksm.pgp -- Kenneth Murchison Oceana Matrix Ltd. Software Engineer 21 Princeton Place 716-662-8973 x26 Orchard Park, NY 14127 --PGP Public Key--http://www.oceana.com/~ken/ksm.pgp
Sieve problem...
I was trying out with sieve that comes with Cyrus-IMAP 2.0.16. The supplied scripts "installsieve" "sieveshell" don't seem to authenticate me in anyway. When running "installsieve -l localhost", it prompts for password then output "Unable to connect to server: Authentication error" after i key in my password. I tried with -u to specify user bu still fail. Anyone can help with this?
Sieve problem
Hi, When testing sieve, I tried to connect via telnet to the sieve port: telnet localhost sieve the problem is that the following appears in /var/log/messages: Sep 25 20:48:38 coral service-sieve[29311]: executed Sep 25 20:48:38 coral service-sieve[29311]: unable to set close on exec: Bad file descriptor Sep 25 20:48:38 coral ^B Any idea what may be the problem? Thanks, Avi -- Avi Schwartz [EMAIL PROTECTED] I have to share the credit. I invented it, but Bill made it famous. - IBM engineer Dave Bradley describing the control-alt-delete reboot sequence
Alternate namespace and sieve problem
We would like to use 2.0.14-NAMESPACE with the alternate namespace enabled. This works when naming a mailbox through the IMAP protocol but does not seem to extend to mailbox names in sieve scripts. It does mean that existing sieve scripts will continue to work, but it seems wrong that users should have to use different namespaces for reading mail and composing sieve scripts. Of course websieve will need modification to work with the alternate namespace, but that is a different issue and should be fairly straightforward. Thanks, John.
Re: Alternate namespace and sieve problem
John Holman wrote: We would like to use 2.0.14-NAMESPACE with the alternate namespace enabled. This works when naming a mailbox through the IMAP protocol but does not seem to extend to mailbox names in sieve scripts. It does mean that existing sieve scripts will continue to work, but it seems wrong that users should have to use different namespaces for reading mail and composing sieve scripts. You're correct in that the code I released last week does not work correctly with sieve. Actually, its not really a sieve problem, but a problem with lmtpd. I fixed this problem over the weekend, but haven't created a distribution yet. I hope to post the code by the end of the day. For the time being, your users (or the admin) will have to modify the scripts to use the new folder names. I hope to write a conversion script soon, and will either post it separately, create another NAMESPACE distro, or release it with 2.0.15. Stay tuned, Ken -- Kenneth Murchison Oceana Matrix Ltd. Software Engineer 21 Princeton Place 716-662-8973 x26 Orchard Park, NY 14127 --PGP Public Key--http://www.oceana.com/~ken/ksm.pgp
Re: postfix + sieve problem
Exactly what I needed. I followed the configuration guidelines in the LMTP_README file and sieve now works a treat! Thanks Patrick At 08:09 05/06/2001 -0500, you wrote: On Tue, 05 Jun 2001 12:23:56 +0100, Patrick Gaherty [EMAIL PROTECTED] (pg) writes: pg I'm having problems getting sieve and postifx to play nicely pg together. I'm using cyrus-imapd-2.0.14 and postfix-20010202. From pg reading around it would seem to be a problem with lmtp, but I'm not pg sure where/how to enable it. At the moment my configuration is: You may want to get a newer release/snapshot of Postfix. I think the recent one resolved some issues with cached connections. pg postfix - main.cf pg mailbox_transport = cyrus See the LMTP_README file that's in the Postfix source directory. Oops. Need to send some updates for that one, but at least it's a start. Basically you really want to use the LMTP service instead of the 'cyrus' service that's in master.cf. That 'cyrus' service was put in there way before the Cyrus 2.X development. -- Amos
Sieve problem...
cyrus-imapd-1.6.24, cyrus-sasl-1.5.24 I'm having problems with sieve. It was working before I installed websieve. I then was trying to work with websieve with different options. Everything was working fine. I then started having problems with websieve and installsieve where when I try to activate a script I get error: Can't make link. Any help would be appreciated T.I.A. -- David W. Jablonski Wisconsin Energy Conservation Corporation Systems Administrator RHCE, MCSE www.weccusa.org www.energyfinancesolutions.com
sieve problem
Hi As I can't find more documentation, I'm asking for help. Cyrus + sieve support have been installed, with SASL and pam-ldap. I use LMTP between cyrus and postfix. sieve port (2000) is opened. This is what I get when I telnet it : bash-2.04$ telnet 0 sieve Trying 0.0.0.0... Connected to 0. Escape character is '^]'. "IMPLEMENTATION" "Cyrus timsieved v1.0.0" "SASL" "PLAIN DIGEST-MD5 CRAM-MD5" "SIEVE" "fileinto reject envelope vacation imapflags notify subaddress regex" OK logout Ok "Logout Complete" Then, I tried to use installsieve : su-2.04# /usr/local/cyrus/perl/sieve/scripts/installsieve.pl localhost Please enter your username: Please enter your authentication name: xxx Please enter your password: xxx Unable to connect to server at /usr/local/cyrus/perl/sieve/scripts/installsieve.pl line 136, STDIN line 3. is this normal ? what is the difference between username and authentication name ? if my cyrus mailbox is "user.prune_lecentre_net", which one is it ? I then tried to install websieve. I have 2 main problems : -when I give a false user/password, I get the normal management page, without any mailbox in the list -when I give a valid password and make some changs, I get the error : ACL modification successful.. Sieve vacation active error: IMAP::Sieve [ putscript ]: couldn't save script default : NO ("SASL" "internal error") "Authentication error" Error: Unable to Modify Entry... hoops while looking at the log, I just saw : Mar 7 11:14:55 diamond timsieved[77218]: mkdir /usr/sieve/p/prune_lecentre_net: No such file or directory Mar 7 11:14:55 diamond timsieved[77218]: error in actions_setuser() Mar 7 11:14:56 diamond timsieved[77219]: mkdir /usr/sieve/p/prune_lecentre_net: No such file or directory Mar 7 11:14:56 diamond timsieved[77219]: error in actions_setuser() so, why is he trying to use /usr/sieve (should use /var/imap/spool/) ??? Thanks for your help :) Prune
Re: sieve problem
prune wrote: hoops while looking at the log, I just saw : Mar 7 11:14:55 diamond timsieved[77218]: mkdir /usr/sieve/p/prune_lecentre_net: No such file or directory Mar 7 11:14:55 diamond timsieved[77218]: error in actions_setuser() Mar 7 11:14:56 diamond timsieved[77219]: mkdir /usr/sieve/p/prune_lecentre_net: No such file or directory Mar 7 11:14:56 diamond timsieved[77219]: error in actions_setuser() so, why is he trying to use /usr/sieve (should use /var/imap/spool/) ??? Hi prune. /usr/sieve is the default sieve directory. Its clearly documented in the docs. Here is the excerpt from docs/install-configure.html - 7. If you wish to use Sieve, and you didn't configure deliver to look in home directories (see the imapd.conf man page), create the Sieve directory: cd /usr mkdir sieve chown cyrus sieve chgrp mail sieve - Hope that helps Thanks for your help :) Prune -- Atif Ghaffar Internet Development Manager 4unet AG/SA/Ltd. -. +41 21 351 53 60 voice +41 78 787 51 45 mobile +41 86 0796598972 fax http://www.4unet.net www http://atif.developer.ch homepage [EMAIL PROTECTED] email