[Dovecot] CMUSieve with virtual users
Guillaume HILT
postmaster at shadowprojects.org
Tue Mar 31 19:20:27 EEST 2009
Mar 31 17:29:55 srv1 postfix/qmgr[30752]: A2C0677460ED:
from=<postmaster at shadowprojects.org>, size=902, nrcpt=1 (queue active)
Mar 31 17:29:55 srv1 postfix/smtpd[12284]: disconnect from
rendez-vous.shadowprojects.fr[91.121.100.167]
Mar 31 15:29:55 srv1 postfix/smtpd[12897]: connect from unknown[127.0.0.1]
Mar 31 15:29:55 srv1 postfix/smtpd[12897]: 4C74977460FE:
client=unknown[127.0.0.1]
Mar 31 17:29:55 srv1 postfix/cleanup[12810]: 4C74977460FE:
message-id=<49D236E0.6060707 at shadowprojects.org>
Mar 31 17:29:55 srv1 postfix/qmgr[30752]: 4C74977460FE:
from=<postmaster at shadowprojects.org>, size=1339, nrcpt=1 (queue active)
Mar 31 15:29:55 srv1 postfix/smtpd[12897]: disconnect from
unknown[127.0.0.1]
Mar 31 17:29:55 srv1 postfix/lmtp[12879]: A2C0677460ED:
to=<ghilt at domain2.com>,
relay=mail.domain2.com[/var/run/dspam/dspam.sock], delay=1.1,
delays=0.56/0/0/0.5, dsn=2.6.0, status=sent (250 2.6.0
<ghilt at domain2.com> Message accepted for delivery)
Mar 31 17:29:55 srv1 postfix/qmgr[30752]: A2C0677460ED: removed
Mar 31 17:29:55 srv1 postfix/qmgr[30752]: 4C74977460FE: removed
Mar 31 17:29:55 srv1 postfix/virtual[13438]: 4C74977460FE:
to=<ghilt at domain2.com>, relay=virtual, delay=0.5, delays=0.45/0/0/0.04,
dsn=2.0.0, status=sent (delivered to maildir)
Mar 31 18:13:05 srv1 dovecot: imap-login: Login:
user=<ethieblemont at domain.com>, method=PLAIN, rip=216.9.253.200,
lip=91.121.50.194
Mar 31 18:13:05 srv1 dovecot: IMAP(ethieblemont at domain.com): Loading
modules from directory: /usr/lib/dovecot/imap
Mar 31 18:13:05 srv1 dovecot: IMAP(ethieblemont at domain.com): Module
loaded: /usr/lib/dovecot/imap/lib90_antispam_plugin.so
Mar 31 18:13:05 srv1 dovecot: IMAP(ethieblemont at domain.com): Effective
uid=1001, gid=12, home=/home/vmail/domain.com/ethieblemont/
Mar 31 18:13:05 srv1 dovecot: IMAP(ethieblemont at domain.com): maildir:
data=/home/vmail/domain.com/ethieblemont/.maildir
Mar 31 18:13:05 srv1 dovecot: IMAP(ethieblemont at domain.com): maildir++:
root=/home/vmail/domain.com/ethieblemont/.maildir, index=, control=,
inbox=/home/vmail/domain.com/ethieblemont/.maildir
The path are correct and I have a .dovecot.sieve file in the user folder
(on the same level with .maildir).
Here's my dovecot conf (1.1.13) with libsieve (2.2.7) on a Gentoo x64
box :
I have this under the lda protocol section, although dovecot -n doesn't
show it :
mail_plugins = cmusieve
mail_plugin_dir = /usr/lib/dovecot/lda
# dovecot -n
# 1.1.13: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.28-gentoo-r1-xxxx-std-ipv4-64 x86_64 Gentoo Base System
release 1.12.11.1 ext3
base_dir: /var/run/dovecot/
protocols: imap pop3
listen(default): *:143
listen(imap): *:143
listen(pop3): *:110
disable_plaintext_auth: no
login_dir: /var/run/dovecot//login
login_executable(default): /usr/libexec/dovecot/imap-login
login_executable(imap): /usr/libexec/dovecot/imap-login
login_executable(pop3): /usr/libexec/dovecot/pop3-login
first_valid_uid: 1001
last_valid_uid: 1001
mail_privileged_group: mail
mail_uid: vmail
mail_gid: mail
mail_location: maildir:/home/vmail/%d/%n/.maildir
mail_debug: yes
fsync_disable: yes
maildir_copy_preserve_filename: yes
mail_executable(default): /usr/libexec/dovecot/imap
mail_executable(imap): /usr/libexec/dovecot/imap
mail_executable(pop3): /usr/libexec/dovecot/pop3
mail_plugins(default): antispam
mail_plugins(imap): antispam
mail_plugins(pop3):
mail_plugin_dir(default): /usr/lib/dovecot/imap
mail_plugin_dir(imap): /usr/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/lib64/dovecot/pop3
imap_client_workarounds(default): delay-newmail
imap_client_workarounds(imap): delay-newmail
imap_client_workarounds(pop3):
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
auth default:
user: nobody
gssapi_hostname: mail.domain2.com
passdb:
driver: sql
args: /etc/dovecot/dovecot-sql.conf
userdb:
driver: sql
args: /etc/dovecot/dovecot-sql.conf
socket:
type: listen
client:
path: /var/spool/postfix/private/auth
mode: 432
user: postfix
group: postfix
master:
path: /var/run/dovecot/auth-master
mode: 438
user: vmail
group: mail
plugin:
antispam_signature: X-DSPAM-Signature
antispam_signature_missing: error
antispam_trash: Trash
antispam_spam: Spam
antispam_dspam_binary: /usr/bin/dspam
Timo Sirainen a écrit :
> On Mar 29, 2009, at 6:28 AM, Guillaume Hilt wrote:
>
>> I'm back with this problem since i never found a way to fix it.
>> I'm now using dovecot 1.1.13 (still under Gentoo) and I tried something.
>> I modified the lda section from this :
>> mail_plugins = cmusieve
>>
>> To this :
>> mail_plugins = sieve
>>
>> The problem is that dovecot never complained that it can't found the
>> sieve or cmusieve plugin although sieve is present and enabled with
>> dovecot.
>> Looks like it doesn't care about it and doesn't try to load it (it
>> would explain why sieve isn't working).
>
> If you list a plugin that Dovecot can't load, it definitely will give
> an error message at startup.
>
> Looking at your previous messages, it seems you haven't provided any
> logs. Set mail_debug=yes and show what it logs when trying to deliver
> a mail.
>
>
More information about the dovecot
mailing list