Sieve plugin (fc17 + sendmail + roundcube)

Franck CALLEJA fc193 at hotmail.com
Thu Jul 24 08:50:21 UTC 2014


Hello, I'm trying to configure sieve plugin on my mail server so that people can do mail filtering (and mostly vacation notification) on their account. The mail server is running fine since 5 years and is based on :- sendmail- dovecot- roundcube It serves 2 differents domains. I've recently installed pigeonhole for fc17, and managed to configure managesieve plugin in roundcube successfully. Users can now manage filters from roundcube. The problem is that filters are not applied when new mails arrives. I've modified dovecot.conf to activate sieve plugin, and the configuration is as follow : # dovecot -n# 2.1.16: /etc/dovecot/dovecot.conf# OS: Linux 3.8.13-100.fc17.x86_64 x86_64 Fedora release 17 (Beefy Miracle) log_path = /var/log/dovecot.logmail_debug = yesmail_location = mbox:~/mail:INBOX=/var/spool/mail/%umanagesieve_notify_capability = mailtomanagesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihavembox_write_locks = fcntlnamespace inbox {  inbox = yes  location =   mailbox Drafts {    special_use = \Drafts  }  mailbox Junk {    special_use = \Junk  }  mailbox Sent {    special_use = \Sent  }  mailbox "Sent Messages" {    special_use = \Sent  }  mailbox Trash {    special_use = \Trash  }  prefix = }passdb {  driver = pam}plugin {  sieve = ~/.dovecot.sieve  sieve_dir = ~/sieve}protocols = imap pop3 lmtp sieveservice imap-login {  service_count = 0}service lmtp {  executable = lmtp -L}service pop3-login {  service_count = 0}ssl_cert = </etc/pki/dovecot/certs/dovecot.pemssl_key = </etc/pki/dovecot/private/dovecot.pemuserdb {  driver = passwd}protocol lmtp {  info_log_path = /var/log/dovecot-lmtp.log  mail_plugins = " sieve"}protocol lda {  mail_plugins = " sieve"}   In /etc/sendmail.cf I've this configured :# cat /etc/mail/sendmail.mc
divert(-1)dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`setup for linux')dnl
OSTYPE(`linux')dnl
define(`confLOG_LEVEL', `15')dnl
define(`confDEF_USER_ID', ``8:12'')dnl
define(`confTO_CONNECT', `5m')dnl
define(`confTRY_NULL_MX_LIST', `True')dnl
define(`confDONT_PROBE_INTERFACES', `True')dnl
define(`PROCMAIL_MAILER_PATH', `/usr/bin/procmail')dnl
define(`ALIAS_FILE', `/etc/aliases')dnl
define(`STATUS_FILE', `/var/log/mail/statistics')dnl
define(`UUCP_MAILER_MAX', `2000000')dnl
define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
define(`confAUTH_OPTIONS', `A')dnl
define(`confMIN_QUEUE_AGE', `15m')dnl
define(`confTO_QUEUERETURN', `5m')dnl
define(`confMAX_MESSAGE_SIZE', `15000000')dnl
define(`confDONT_BLAME_SENDMAIL', `forwardfileingroupwritabledirpath,ForwardFileInUnsafeDirPath,ForwardFileInUnsafeDirPathSafe')dnl
define(`confTO_IDENT', `0')dnlFEATURE(`no_default_msa', `dnl')dnl
FEATURE(`smrsh', `/usr/sbin/smrsh')dnl
FEATURE(`mailertable', `hash -o /etc/mail/mailertable.db')dnl
FEATURE(`virtusertable', `hash -o /etc/mail/virtusertable.db')dnl
FEATURE(`genericstable',`hash -o /etc/mail/genericstable.db')dnlGENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')dnlFEATURE(redirect)dnl
FEATURE(always_add_domain)dnl
FEATURE(use_cw_file)
FEATURE(use_ct_file)dnl
FEATURE(local_procmail, `', `procmail -t -Y -a $h -d $u')dnl
FEATURE(`access_db', `hash -T<TMPF> -o /etc/mail/access.db')dnl
FEATURE(`blacklist_recipients')dnlEXPOSED_USER(`root')dnl
DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnlFEATURE(`accept_unresolvable_domains')dnl
FEATURE(`relay_hosts_only')dnl
FEATURE(`dnsbl', `ipwhois.rfc-ignorant.org',`"550 Mail from " $&{client_addr} " refused. Rejected for bad WHOIS info on IP of your SMTP server - see http://www.rfc-ignorant.org/"')
FEATURE(`dnsbl', `proxies.blackholes.easynet.nl', `"550 5.7.1 ACCESS DENIED to OPEN PROXY SERVER "$&{client_name}" by easynet.nl DNSBL  (http://proxies.blackholes.easynet.nl/errors.html)"', `')
FEATURE(`dnsbl', `bl.spamcop.net', `"450 Mail from " $`'&{client_addr} " refused - see http://spamcop.net/bl.shtml"')
FEATURE(`dnsbl',`sbl.spamhaus.org',`Rejected - see http://spamhaus.org/')
MAILER(smtp)dnl
MAILER(procmail)dnl  I've created a /etc/procmailrc file in /etc to activate dovecot but this doesn't work and users can't get any mails : # cat /etc/procmailrc.old 
# file: /etc/procmailrc
# system-wide settings for procmail
DROPPRIVS=YES
SHELL="/bin/bash"
SENDMAIL="/usr/sbin/sendmail -oi -t"
LOGFILE="/var/log/procmail.log"
DELIVER="/usr/libexec/dovecot/deliver"
# fallback:
DEFAULT="$HOME/mail/"
MAILDIR="$HOME/mail/"
:0 w
* ^X-Spam-Status: Yes
| $DELIVER -m spam
:0 w
| $DELIVER    As it is a production server, I'm not confident to make modifications in all directions, and would need some help to process safely this update on my mail server.
I think I'm missing some parameters somewhere, but the question is... where ? so any help would be appreciated. RegardsFranck.    		 	   		  


More information about the dovecot mailing list