Sendmail + Cyrus + Procmail(?) + SpamAssassin

Miguel Mendez flynn at energyhq.homeip.net
Sat Apr 5 02:49:50 PST 2003


On Wed, 02 Apr 2003 11:46:33 -0600
Kirk Strauser <kirk at strauser.com> wrote:

Howdy,

> Quick OT question: how do you debug a sieve script?  I uploaded a very
> simple script to my server:
> 
>     require "fileinto";
> 
>     if header :contains "X-Spam-Flag" "YES" {
>         fileinto "INBOX.spam";
>     } else {
>         fileinto "INBOX.foo";
>     }
> 
> and made it active.  Both of the mailboxes user.kirk.foo and
> user.kirk.spam(or INBOX.foo and INBOX.spam as seen from the client)
> exist, but all mail keeps coming into INBOX.  Did I miss a
> "process_sieve_scripts = yes" flag somewhere?

Oops, didn't see this one. There are two ways to use sieve, one is
having a .sieve file in your home dir, the other is having sieve scripts
in /usr/sieve. There's a setting in imapd.conf to select which way sieve
scripts are handled, e.g. if you have lots of users but no real
accounts.

The relevant bits:

sievedir: /var/imap/sieve
# If enabled, deliver wil look for Sieve scripts in user's home
# directories:# ~user/.sieve.
sieveusehomedir: true

Another thing, if you're using sieveshell you need to 1) upload script,
2) activate it, if you dont' activate it, it won't take effect. Perhaps
that's what's happening?

Cheers,
-- 
        Miguel Mendez - flynn at energyhq.homeip.net
        GPG Public Key :: http://energyhq.homeip.net/files/pubkey.txt
        EnergyHQ :: http://www.energyhq.tk
	Tired of Spam? -> http://www.trustic.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20030405/9b994e6c/attachment.bin


More information about the freebsd-questions mailing list