<html><head><title>Re: IOERROR fstating sieve</title>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
</head>
<body>
<span style=" font-family:'Verdana'; font-size: 10pt;">Hello Alexander,<br>
<br>
I just wanted to confirm for anyone else wishing to remove these error messages that the simple solution is to:<br>
<br>
</span>
<ul style="margin: 0px 0px 0px 30px">
<li><span style=" font-family:'Verdana'; font-size: 10pt;">su to cyrus</span></li>
<li><span style=" font-family:'Verdana'; font-size: 10pt;">Change dir to the dir. you are going to put the file, in my case: cd /var/spool/mail/sieve/</span></li>
<li><span style=" font-family:'Verdana'; font-size: 10pt;">Create a blank text file, I used "touch blank-filter.txt"</span></li>
<li><span style=" font-family:'Verdana'; font-size: 10pt;">Create the byte code file: sievec blank-filter.txt blank-filter.bc</span></li>
<li><span style=" font-family:'Verdana'; font-size: 10pt;">I then created a symlink: ln -s blank-filter.bc defaultbc</span></li>
</ul>
<br><br>
<span style=" font-family:'Verdana'; font-size: 10pt;">Once that is done anywhere you need defaultbc just symlink to the symlink you just created. This makes it very easy to change the default filter for all accounts from blank to something else if you ever wish to.<br>
<br>
What I haven't figured out is how to automatically create the default file (or symlink in my case) when a mailbox is created but I can write some scripting for that which is the final step.<br>
<br>
I'm wondering if there are some hooks for that or if I just have to write the code in the same place where I create the mailbox.<br>
<br>
Saturday, April 3, 2010, 2:53:23 PM, you wrote:<br>
<br>
<span style=" font-family:'courier new'; font-size: 9pt; color: #800080;"><b>&gt;&gt; Hello Reinaldo,<br>
<br>
&gt;&gt; I'm not having any success with removing this error. If create the file<br>
&gt;&gt; that it says is missing I get this error:<br>
<br>
&gt;&gt; &nbsp; &nbsp;lmtpunix[8901]: sieve runtime error for mydomain.com id<br>
&gt;&gt; &lt;<a style=" font-weight: normal;" href="mailto:20100403063500.97552A0629@mail.mydomain.com">20100403063500.97552A0629@mail.mydomain.com</a>&gt;: Run error<br>
<br>
&gt;&gt; I created the file with: "sudo -u cyrus touch defaultbc"<br>
<br>
&gt;&gt; If I restart cyrus with sieve commented out I still get the errors plus:<br>
<br>
&gt;&gt; &nbsp; lmtpunix[6938]: IOERROR: mapping<br>
&gt;&gt; /var/spool/mail/sieve/domain/K/mydomain.com/C/cron/defaultbc file for<br>
&gt;&gt; sievescript: No such device<br>
<br>
<span style=" color: #800000;">&gt; The "bc" in defaultbc stands for byte code. This is not a plain text file.<br>
<br>
&gt; Use "sievec" to create the defaultbc.<br>
<br>
&gt; Alexander<br>
<br>
<br>
<br>
<br>
<br>
</span></b><span style=" font-family:'arial'; font-size: 8pt; color: #c0c0c0;"><i>--&nbsp;<br>
&nbsp;Nybbles2Byte &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a style=" font-style: normal;" href="mailto:nybbles2byte@gmail.com">mailto:nybbles2byte@gmail.com</a></body>