Re: IOERROR: fstating sieve script
On 15 Aug 2009, at 15:01, brian wrote: > In bc_eval.c: > > res = do_vacation(actions, toaddr, fromaddr, xstrdup(subject), > message, days, mime, handle); > > if (res == SIEVE_RUN_ERROR) > *errmsg = "Vacation can not be used with Reject or Vacation"; > > This is an unhelpful error msg, IMHO. Does anyone understand what > it means? Sure, just look at do_vacation(), it's pretty obvious: there's already a vacation or rejection action for this message, so adding the additional vacation action isn't allowed. The error suggests that you have several simultaneous vacation actions configured. Hope that helps you figure out the error... :wes 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: IOERROR: fstating sieve script
On Fri, Aug 14, 2009 at 11:50 AM, brian wrote: > Anybody? > > I tried adding the directories under /var/lib/imap/sieve and copying > the defaultbc to each. But I'm now getting the following in the log: > > sieve runtime error for ...: Vacation can not be used with Reject or Vacation > I'll try a bit more information. I must be missing something crucial in setting up these vacation responders. The accounts in question are virtual domains. The mailboxes have been created under: /var/lib/imap/domain/LETTER/DOMAIN/user/LETTER/ I need 2 separate autoresponders. I created a single script: --- snip --- require ["vacation"]; vacation :days 1 :subject "Out of office reply" :addresses ["use...@domain","use...@domain","use...@domain"] "msg here"; vacation :days 1 :subject "Out of office reply" :addresses ["use...@domain"] "other msg here"; --- snip --- sieveshell placed the defaultbc inside /var/lib/imap/sieve/global/, which suggests that it will be evaluated for all mailboxes. I guess that's fine, though I only need it, obviously, for those mailboxes. In any case, it seems that sieve is ignoring the "global" dir and looking under: /var/lib/imap/sieve/domain/LETTER/DOMAIN/user/LETTER/ I removed the global dir and ran: sieveshell --authname=cyrus --user=use...@domain localhost After put & activate, I see that the defaultbc, etc. have been placed under sieve/domain/LETTER/etc. However, when I send a mail to this address, I receieve no reply and the log shows: Aug 15 14:55:17 logi lmtpunix[32308]: sieve runtime error for use...@domain id <4a87026c.6010...@my_domain>: Vacation can not be used with Reject or Vacation In bc_eval.c: res = do_vacation(actions, toaddr, fromaddr, xstrdup(subject), message, days, mime, handle); if (res == SIEVE_RUN_ERROR) *errmsg = "Vacation can not be used with Reject or Vacation"; This is an unhelpful error msg, IMHO. Does anyone understand what it means? 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: IOERROR: fstating sieve script
Anybody? I tried adding the directories under /var/lib/imap/sieve and copying the defaultbc to each. But I'm now getting the following in the log: sieve runtime error for ...: Vacation can not be used with Reject or Vacation On Wed, Aug 12, 2009 at 9:52 PM, brian wrote: > I've created a "vacation" script and activated it but there appears to > be a problem implementing it. The reply is for several addresses and > so I did not pass a --user to sieveshell. It has placed the defaultbc > in /var/lib/imap/sieve/global. However, lmtp is looking for it in a > directory for the particular address. > > maillog says: > Aug 12 21:33:55 logi sieve[27866]: entered bc_action_emit with filelen: 16 > Aug 12 21:35:49 logi lmtpunix[21521]: IOERROR: fstating sieve script > /var/lib/imap/sieve/domain/q/VIRTUAL_DOMAIN/a/admin/defaultbc: No such > file or directory > > Should I create the necessary directories and copy defaultbc into > them? Or, do I need to invoke sieveshell for each user? > > # cat imapd.conf > configdirectory: /var/lib/imap > partition-default: /var/spool/imap > admins: cyrus > sievedir: /var/lib/imap/sieve > sendmail: /usr/sbin/sendmail > hashimapspool: true > sasl_pwcheck_method: auxprop > sasl_auxprop_plugin: sasldb > sasldb_path: /etc/sasldb2 > sasl_mech_list: PLAIN LOGIN DIGEST-MD5 CRAM-MD5 > defaultdomain: DOMAIN > virtdomains: userid > allowplaintext: 1 > loginrealms: [several domains] > tls_ca_file: /etc/pki/tls/certs/cacert.pem > tls_cert_file: /etc/pki/cyrus-imapd/newcert.pem > tls_key_file: /etc/pki/cyrus-imapd/newkey.pem > > > # cat 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 > idled cmd="idled" > } > > # UNIX sockets start with a slash and are put into /var/lib/imap/sockets > SERVICES { > # add or remove based on preferences > imap cmd="imapd" listen="imap" prefork=5 > imaps cmd="imapd -s" listen="imaps" prefork=1 > pop3 cmd="pop3d" listen="pop3" prefork=3 > pop3s cmd="pop3d -s" listen="pop3s" prefork=1 > sieve cmd="timsieved" listen="sieve" prefork=0 > > # these are only necessary if receiving/exporting usenet via NNTP > # nntp cmd="nntpd" listen="nntp" prefork=3 > # nntps cmd="nntpd -s" listen="nntps" prefork=1 > > # at least one LMTP is required for delivery > # lmtp cmd="lmtpd" listen="lmtp" prefork=0 > lmtpunix cmd="lmtpd" listen="/var/lib/imap/socket/lmtp" prefork=1 > > # this is only necessary if using notifications > # notify cmd="notifyd" listen="/var/lib/imap/socket/notify" > proto="udp" prefork=1 > } > > EVENTS { > # this is required > checkpoint cmd="ctl_cyrusdb -c" period=30 > > # this is only necessary if using duplicate delivery suppression, > # Sieve or NNTP > delprune cmd="cyr_expire -E 3" at=0400 > > # this is only necessary if caching TLS sessions > tlsprune cmd="tls_prune" at=0400 > } > 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
IOERROR: fstating sieve script
I've created a "vacation" script and activated it but there appears to be a problem implementing it. The reply is for several addresses and so I did not pass a --user to sieveshell. It has placed the defaultbc in /var/lib/imap/sieve/global. However, lmtp is looking for it in a directory for the particular address. maillog says: Aug 12 21:33:55 logi sieve[27866]: entered bc_action_emit with filelen: 16 Aug 12 21:35:49 logi lmtpunix[21521]: IOERROR: fstating sieve script /var/lib/imap/sieve/domain/q/VIRTUAL_DOMAIN/a/admin/defaultbc: No such file or directory Should I create the necessary directories and copy defaultbc into them? Or, do I need to invoke sieveshell for each user? # cat imapd.conf configdirectory: /var/lib/imap partition-default: /var/spool/imap admins: cyrus sievedir: /var/lib/imap/sieve sendmail: /usr/sbin/sendmail hashimapspool: true sasl_pwcheck_method: auxprop sasl_auxprop_plugin: sasldb sasldb_path: /etc/sasldb2 sasl_mech_list: PLAIN LOGIN DIGEST-MD5 CRAM-MD5 defaultdomain: DOMAIN virtdomains: userid allowplaintext: 1 loginrealms: [several domains] tls_ca_file: /etc/pki/tls/certs/cacert.pem tls_cert_file: /etc/pki/cyrus-imapd/newcert.pem tls_key_file: /etc/pki/cyrus-imapd/newkey.pem # cat 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 idled cmd="idled" } # UNIX sockets start with a slash and are put into /var/lib/imap/sockets SERVICES { # add or remove based on preferences imap cmd="imapd" listen="imap" prefork=5 imaps cmd="imapd -s" listen="imaps" prefork=1 pop3 cmd="pop3d" listen="pop3" prefork=3 pop3s cmd="pop3d -s" listen="pop3s" prefork=1 sieve cmd="timsieved" listen="sieve" prefork=0 # these are only necessary if receiving/exporting usenet via NNTP # nntp cmd="nntpd" listen="nntp" prefork=3 # nntpscmd="nntpd -s" listen="nntps" prefork=1 # at least one LMTP is required for delivery # lmtp cmd="lmtpd" listen="lmtp" prefork=0 lmtpunix cmd="lmtpd" listen="/var/lib/imap/socket/lmtp" prefork=1 # this is only necessary if using notifications # notify cmd="notifyd" listen="/var/lib/imap/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, # Sieve or NNTP delprune cmd="cyr_expire -E 3" at=0400 # this is only necessary if caching TLS sessions tlsprune cmd="tls_prune" at=0400 } 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: IOERROR: fstating sieve script ??(SOLVED)
Aristotelis wrote: BipinDas wrote: Hi All, I am used the autocreatepatch 2.3.1. It works fine. But when a mailbox created my /var/log/syslog shows the following error. Let me know why this happened and how to fix it. - Mar 14 12:28:43 cyrus lmtpunix[12454]: IOERROR: fstating sieve script /var/spool/sieve/d/divya/defaultbc: No such file or directory. -- This is not a problem of the autocreate patch. Autocreate creates the user's mailbox, but you haven't used the functionality that adds automatically a default sieve script to the user. lmtp tries to see if there is a sieve script when it tries to deliver the message, there is none, so it prints this warning message. If you just use the autocreate inbox functionality of autocreate script this is normal. If you want the automatic setting up of sieve scripts on user creation see the section : (D) Automatic creation of a predefined default sieve script. in the readme file of the autocreate patch. (http://email.uoa.gr/projects/cyrus/autocreate/README.autocreate-cyrus-2.3) Best regards, Aristotelis Hi Thanks for all the comments made on my query. I had solved the problem. And It works fine. -- 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: IOERROR: fstating sieve script ??
BipinDas wrote: Hi All, I am used the autocreatepatch 2.3.1. It works fine. But when a mailbox created my /var/log/syslog shows the following error. Let me know why this happened and how to fix it. - Mar 14 12:28:43 cyrus lmtpunix[12454]: IOERROR: fstating sieve script /var/spool/sieve/d/divya/defaultbc: No such file or directory. -- This is not a problem of the autocreate patch. Autocreate creates the user's mailbox, but you haven't used the functionality that adds automatically a default sieve script to the user. lmtp tries to see if there is a sieve script when it tries to deliver the message, there is none, so it prints this warning message. If you just use the autocreate inbox functionality of autocreate script this is normal. If you want the automatic setting up of sieve scripts on user creation see the section : (D) Automatic creation of a predefined default sieve script. in the readme file of the autocreate patch. (http://email.uoa.gr/projects/cyrus/autocreate/README.autocreate-cyrus-2.3) Best regards, Aristotelis 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: IOERROR: fstating sieve script ??
Hi, On 15.03.2007, at 04:12, BipinDas wrote: I am used the autocreatepatch 2.3.1. It works fine. But when a mailbox created my /var/log/syslog shows the following error. Let me know why this happened and how to fix it. --- -- Mar 14 12:28:43 cyrus lmtpunix[12454]: IOERROR: fstating sieve script /var/spool/sieve/d/divya/defaultbc: No such file or directory. It's just an informational message - turn down the logging level in syslogd.conf (or whatever your log daemon config file ist called) to make it disappear. The message just tells you that sieve did not find a filter script for the user - thus all messages will be put into the inbox without filtering. Hope that clarifies things ;-) Baltasar -- Baltasar Cevc _ FORMER 03 GmbH _ infanteriestraße 19 haus 6 eg _ D-80797 muenchen _ http://www.former03.de 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
IOERROR: fstating sieve script ??
Hi All, I am used the autocreatepatch 2.3.1. It works fine. But when a mailbox created my /var/log/syslog shows the following error. Let me know why this happened and how to fix it. - Mar 14 12:28:43 cyrus lmtpunix[12454]: IOERROR: fstating sieve script /var/spool/sieve/d/divya/defaultbc: No such file or directory. -- Here I am pasting the imapd.conf file related to sieve. --- sieveusehomedir: false sievedir: /var/spool/sieve - What should I do to fix this problem ? -- 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: IOERROR: fstating sieve script
Hi Leon, > Hello All, > > Could you please tell me what these entries in my log mean: > > Oct 31 12:58:55 mail lmtpunix[14418]: lmtp connection preauth'd as postman > Oct 31 12:58:55 mail lmtpunix[14418]: IOERROR: fstating sieve script > /var/lib/sieve/k/kuper/defaultbc: No such file or directory That's not really a problem. It's because cyrus tries to open a sieve script and if no script exists, it reports this error. I don't know why this is reported like an error. > Oct 31 12:58:55 mail lmtpunix[14418]: duplicate_check: > <[EMAIL PROTECTED]> user.kuper > 0 > > > How to deal with IOERROR: fstating sieve script? > What "duplicate_check:" means, and shjould I be worried about it? Don't worry. Cyrus checks whether a mail has already been delivered so it can sort out duplicates. Everything is fine here. Simon > > > Best Regards, > Leon Kolchinsky > > 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
IOERROR: fstating sieve script
Hello All, Could you please tell me what these entries in my log mean: Oct 31 12:58:55 mail lmtpunix[14418]: lmtp connection preauth'd as postmanOct 31 12:58:55 mail lmtpunix[14418]: IOERROR: fstating sieve script /var/lib/sieve/k/kuper/defaultbc: No such file or directoryOct 31 12:58:55 mail lmtpunix[14418]: duplicate_check: <[EMAIL PROTECTED]> user.kuper 0 How to deal with IOERROR: fstating sieve script? What "duplicate_check:" means, and shjould I be worried about it? Best Regards, Leon Kolchinsky 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: IOERROR: fstating sieve script
[EMAIL PROTECTED] wrote: Hello All, In the logs I see these kind of messages: Oct 27 16:48:05 mail master[14841]: about to exec /usr/lib/cyrus/bin/lmtpd Oct 27 16:48:05 mail lmtpunix[14841]: executed Oct 27 16:48:05 mail lmtpunix[14841]: accepted connection Oct 27 16:48:05 mail lmtpunix[14841]: lmtp connection preauth'd as postman Oct 27 16:48:05 mail lmtpunix[14841]: IOERROR: fstating sieve script /var/lib/sieve/l/username/defaultbc: No such file or directory Is it normal or should I resolve it somehow? It simply means that the recipient doesn't have a sieve script installed/activated. If you don't want to see these messages, don't log cyrus messages at the debug level. -- 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
IOERROR: fstating sieve script
Hello All, In the logs I see these kind of messages: Oct 27 16:48:05 mail master[14841]: about to exec /usr/lib/cyrus/bin/lmtpdOct 27 16:48:05 mail lmtpunix[14841]: executedOct 27 16:48:05 mail lmtpunix[14841]: accepted connectionOct 27 16:48:05 mail lmtpunix[14841]: lmtp connection preauth'd as postmanOct 27 16:48:05 mail lmtpunix[14841]: IOERROR: fstating sieve script /var/lib/sieve/l/username/defaultbc: No such file or directory Is it normal or should I resolve it somehow? Best Regards, Leon Kolchinsky 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: IOERROR: fstating sieve script
Actually to get rid of this warning in the logs, all you have to do it reduce the logging level from debug to something more sane. As is, logging at debug (which is the default) will consume an inordinate amount of system resources on a production system.Just reconfigure syslog to log at a warning level or lower. This warning is just telling you that the user has no sieve script, it does not reflect a problem (unless they really do have one.) Hope this helps, John ML mail wrote: --- Baltasar Cevc <[EMAIL PROTECTED]> wrote: Cyrus will create the structure when it needs it; however, I do not know any way to get rid of these messages without having a default script. That's exactly what I wanted to hear ;-) Thanks! Well if there is a patch for that, I guess it will be corrected in future versions of Cyrus. Regards __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ --- 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
Re: IOERROR: fstating sieve script
--- Baltasar Cevc <[EMAIL PROTECTED]> wrote: > Cyrus will create the structure when it needs it; > however, > I do not know any way to get rid of these messages > without > having a default script. That's exactly what I wanted to hear ;-) Thanks! Well if there is a patch for that, I guess it will be corrected in future versions of Cyrus. Regards __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ --- 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: IOERROR: fstating sieve script
Hi, ML mail wrote: Well the thing is that I don't really want a default sieve script for everyuser I just want to be sure the directory structure gets created so that in case the user wants a sieve script, it won't complain about a missing dir/subdir. So my question really is: do I need to manualy create that directory structure for sieve scripts to reside in ? Or will it be automagically created when the user creates a sieve script ? The only dir I have manually created is the /var/cyrus/sieve (my sieve base dir). Cyrus will create the structure when it needs it; however, I do not know any way to get rid of these messages without having a default script. Baltasar --- 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: IOERROR: fstating sieve script
--- Baltasar Cevc <[EMAIL PROTECTED]> wrote: > It means that no sieve script is found for the > account; more exactly no > bytecode-compiled version (defaultbc) of the > defaults script (which > would be default). > > There was a patch to cyrus on the list some time ago > to create default > scripts when an account is created. If that would > suit your needs, try > to dig the archives for "autocreate" or "autosieve" > or something alike. Well the thing is that I don't really want a default sieve script for everyuser I just want to be sure the directory structure gets created so that in case the user wants a sieve script, it won't complain about a missing dir/subdir. So my question really is: do I need to manualy create that directory structure for sieve scripts to reside in ? Or will it be automagically created when the user creates a sieve script ? The only dir I have manually created is the /var/cyrus/sieve (my sieve base dir). Thanks Regards __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --- 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: IOERROR: fstating sieve script
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, | IOERROR: fstating sieve script | /var/cyrus/sieve/domain/c/clientdomain.com/t/test/defaultbc: | No such file or directory It means that no sieve script is found for the account; more exactly no bytecode-compiled version (defaultbc) of the defaults script (which would be default). There was a patch to cyrus on the list some time ago to create default scripts when an account is created. If that would suit your needs, try to dig the archives for "autocreate" or "autosieve" or something alike. Hope that helps, Baltasar -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCMaknp2YsmzTbIwYRAoZWAJ48oJ22/XDP6xatEvbJGfRE/cXfkQCgu3+J pBWC6nD9I67HlCtcB2pIrPE= =nwR5 -END PGP SIGNATURE- --- 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
IOERROR: fstating sieve script
Hello, I've just installed the lateste stable Cyrus IMAPd version and I would like to use the sieve feautures. Now I did some tests and when a mail gets sent to Cyrus I see the following error message in Cyrus logfile: IOERROR: fstating sieve script /var/cyrus/sieve/domain/c/clientdomain.com/t/test/defaultbc: No such file or directory I have configured imapd.conf so that /var/cyrus/sieve is the sieve directory. What does this error message mean exactly ? Do I need to do some manualy mkdir after creating a new mailbox ? Or can this automatically done ? Many thanks Regards __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ --- 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