[Dovecot] sieve fileinto public shared mbox?
Could someone verify if 1) sieve can fileinto shared public mbox? 2) if it can, what I might be doing wrong?
I am getting errors in the log when I try to have sieve fileinto a shared public mbox.
11/04/10 06:08:12 pm n3 dovecot deliver(tarts): sieve: msgid=<201011050108.oA5187sm003711@JaySmith.com>: failed to store into mailbox 'public/SPAM/SPAMMM': Mailbox doesn't exist: public/SPAM/SPAMMM 11/04/10 06:08:12 pm n3 dovecot deliver(tarts): sieve: execution of script /home/tarts/.dovecot.sieve failed, but implicit keep was successful
require "include"; require "fileinto"; require "regex"; require "relational"; require "comparator-i;ascii-numeric";
if header :value "ge" :comparator "i;ascii-numeric" "X-Spam-Score" "12" { fileinto "public/SPAM/SPAMMM"; stop; } elsif header :value "ge" :comparator "i;ascii-numeric" "X-Spam-Score" "8" { fileinto "SPAM/MySPAMM"; stop; } elsif header :value "ge" :comparator "i;ascii-numeric" "X-Spam-Score" "4" { fileinto "SPAM/MySPAM"; stop; }
sieve fileinto user tarts own directories SPAM/MySPAM works fine.
I have defined 2 namespace
namespace private { separator = / prefix = inbox = yes }
namespace public { separator = / prefix = public/ location = mbox:/var/mail/public subscriptions = no }
and I have
mail_access_groups = tarts
The /var/mail/public/SPAM/... folders do exist and user tarts can move/copy mail into them just fine; they have permissions as follows:
public/SPAM: total 28 drwxrws--- 3 mail tarts 4096 2010-11-04 18:11 ./ drwsrws--- 8 mail tarts 4096 2010-10-27 18:18 ../ drwxrws--- 5 testuser tarts 4096 2010-11-04 14:49 .imap/ -rw-rw---- 1 testuser tarts 2019 2010-11-04 14:58 SPAM -rw-rw---- 1 tarts tarts 2003 2010-11-04 14:58 SPAMM -rw-rw---- 1 mail tarts 7175 2010-11-04 18:11 SPAMMM
public/SPAM/.imap: total 20 drwxrws--- 5 testuser tarts 4096 2010-11-04 14:49 ./ drwxrws--- 3 mail tarts 4096 2010-11-04 18:11 ../ drwxrws--- 2 testuser tarts 4096 2010-11-04 14:49 SPAM/ drwxrws--- 2 tarts tarts 4096 2010-11-04 14:49 SPAMM/ drwxrws--- 2 tarts tarts 4096 2010-11-04 14:49 SPAMMM/
public/SPAM/.imap/SPAM: total 28 drwxrws--- 2 testuser tarts 4096 2010-11-04 14:49 ./ drwxrws--- 5 testuser tarts 4096 2010-11-04 14:49 ../ -rw-rw---- 1 tarts tarts 16384 2010-11-04 14:50 dovecot.index.cache -rw-rw---- 1 testuser tarts 836 2010-11-04 14:58 dovecot.index.log
public/SPAM/.imap/SPAMM: total 28 drwxrws--- 2 tarts tarts 4096 2010-11-04 14:49 ./ drwxrws--- 5 testuser tarts 4096 2010-11-04 14:49 ../ -rw-rw---- 1 tarts tarts 16384 2010-11-04 14:49 dovecot.index.cache -rw-rw---- 1 tarts tarts 748 2010-11-04 14:58 dovecot.index.log
public/SPAM/.imap/SPAMMM: total 32 drwxrws--- 2 tarts tarts 4096 2010-11-04 14:49 ./ drwxrws--- 5 testuser tarts 4096 2010-11-04 14:49 ../ -rw-rw---- 1 tarts tarts 17408 2010-11-04 18:03 dovecot.index.cache -rw-rw---- 1 tarts tarts 1660 2010-11-04 18:11 dovecot.index.log
On 5.11.2010, at 1.35, RParr wrote:
Could someone verify if 1) sieve can fileinto shared public mbox?
I don't see any reason why it wouldn't.
- if it can, what I might be doing wrong?
Set mail_debug=yes and post logs. Also full dovecot -n output would be nice (and don't leave out the version number). I didn't see anything obviously wrong in your setup.
On 11/04/2010 06:51 PM, Timo Sirainen wrote:
On 5.11.2010, at 1.35, RParr wrote:
Could someone verify if 1) sieve can fileinto shared public mbox?
I don't see any reason why it wouldn't.
- if it can, what I might be doing wrong?
Set mail_debug=yes and post logs. Also full dovecot -n output would be nice (and don't leave out the version number). I didn't see anything obviously wrong in your setup.
root@n3:/etc/dovecot# dovecot -n # 1.2.9: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-25-generic x86_64 Ubuntu 10.04.1 LTS log_timestamp: %Y-%m-%d %H:%M:%S protocols: imap pop3 imaps pop3s managesieve ssl_cert_file: /etc/ssl/certs/temporalarts.pem ssl_key_file: /etc/ssl/private/temporalarts.key ssl_cipher_list: ALL:!LOW:!SSLv2:ALL:!aNULL:!ADH:!eNULL:!EXP:RC4+RSA:+HIGH:+MEDIUM login_dir: /var/run/dovecot/login login_executable(default): /usr/lib/dovecot/imap-login login_executable(imap): /usr/lib/dovecot/imap-login login_executable(pop3): /usr/lib/dovecot/pop3-login login_executable(managesieve): /usr/lib/dovecot/managesieve-login mail_access_groups: tarts mail_privileged_group: mail mail_location: mbox:~/mail:INBOX=/var/mail/%u mail_debug: yes mbox_write_locks: fcntl dotlock mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(pop3): /usr/lib/dovecot/pop3 mail_executable(managesieve): /usr/lib/dovecot/managesieve mail_plugin_dir(default): /usr/lib/dovecot/modules/imap mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3 mail_plugin_dir(managesieve): /usr/lib/dovecot/modules/managesieve imap_client_workarounds(default): outlook-idle delay-newmail imap_client_workarounds(imap): outlook-idle delay-newmail imap_client_workarounds(pop3): imap_client_workarounds(managesieve): pop3_client_workarounds(default): pop3_client_workarounds(imap): pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh pop3_client_workarounds(managesieve): namespace: type: private separator: / inbox: yes list: yes subscriptions: yes namespace: type: public separator: / prefix: public/ location: mbox:/var/mail/public list: yes lda: postmaster_address: postmaster mail_plugins: sieve quota_full_tempfail: yes deliver_log_format: msgid=%m: %$ rejection_reason: Your message to <%t> was automatically rejected:%n%r auth default: mechanisms: plain login passdb: driver: pam userdb: driver: passwd socket: type: listen client: path: /var/spool/postfix/private/dovecot-auth mode: 432 user: postfix group: postfix plugin: sieve: ~/.dovecot.sieve sieve_dir: ~/sieve sieve_global_path: /etc/dovecot/sieve/default.sieve sieve_global_dir: /etc/dovecot/sieve
I send an email containing the Spamassassin test GTUBE message from a remote host and the logs look like this
11/05/10 12:23:12 pm n3 postfix/smtpd connect from jaysmith.com[74.164.202.187] 11/05/10 12:23:12 pm n3 postfix/smtpd connect from jaysmith.com[74.164.202.187] 11/05/10 12:23:13 pm n3 postfix/smtpd 461FB601A9: client=jaysmith.com[74.164.202.187] 11/05/10 12:23:13 pm n3 postfix/cleanup 461FB601A9: message-id=<201011051923.oA5JNBq3025002@JaySmith.com> 11/05/10 12:23:13 pm n3 postfix/qmgr 461FB601A9: from=<rparr@JaySmith.com>, size=875, nrcpt=1 (queue active) 11/05/10 12:23:13 pm n3 postfix/smtpd 461FB601A9: client=jaysmith.com[74.164.202.187] 11/05/10 12:23:13 pm n3 postfix/cleanup 461FB601A9: message-id=<201011051923.oA5JNBq3025002@JaySmith.com> 11/05/10 12:23:13 pm n3 postfix/qmgr 461FB601A9: from=<rparr@JaySmith.com>, size=875, nrcpt=1 (queue active) 11/05/10 12:23:13 pm n3 postfix/smtpd disconnect from jaysmith.com[74.164.202.187] 11/05/10 12:23:13 pm n3 postfix/smtpd disconnect from jaysmith.com[74.164.202.187] 11/05/10 12:23:16 pm n3 dovecot deliver(tarts): sieve: msgid=<201011051923.oA5JNBq3025002@JaySmith.com>: failed to store into mailbox 'public/SPAM/SPAMMM': Mailbox doesn't exist: public/SPAM/SPAMMM 11/05/10 12:23:16 pm n3 dovecot deliver(tarts): sieve: execution of script /home/tarts/.dovecot.sieve failed, but implicit keep was successful 11/05/10 12:23:16 pm n3 postfix/smtpd connect from localhost[127.0.0.1] 11/05/10 12:23:16 pm n3 postfix/smtpd CADCC60482: client=localhost[127.0.0.1] 11/05/10 12:23:16 pm n3 postfix/cleanup CADCC60482: message-id=<201011051923.oA5JNBq3025002@JaySmith.com> 11/05/10 12:23:16 pm n3 postfix/smtpd disconnect from localhost[127.0.0.1] 11/05/10 12:23:16 pm n3 postfix/qmgr CADCC60482: from=<rparr@JaySmith.com>, size=1723, nrcpt=1 (queue active) 11/05/10 12:23:16 pm n3 amavis (24998-07) Passed SPAM, [74.164.202.187] [74.164.202.187] <rparr@JaySmith.com> -> <tarts@n3.temporalarts.com>, quarantine: N/spam-NEY7tZkdXw4G.gz, Message-ID: <201011051923.oA5JNBq3025002@JaySmith.com>, mail_id: NEY7tZkdXw4G, Hits: 1002.562, size: 875, queued_as: CADCC60482, 3200 ms 11/05/10 12:23:16 pm n3 dovecot deliver(tarts): sieve: msgid=<201011051923.oA5JNBq3025002@JaySmith.com>: failed to store into mailbox 'public/SPAM/SPAMMM': Mailbox doesn't exist: public/SPAM/SPAMMM 11/05/10 12:23:16 pm n3 postfix/smtp 461FB601A9: to=<tarts@n3.temporalarts.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=3.8, delays=0.55/0.01/0/3.2, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=24998-07, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as CADCC60482) 11/05/10 12:23:16 pm n3 dovecot deliver(tarts): sieve: msgid=<201011051923.oA5JNBq3025002@JaySmith.com>: stored mail into mailbox 'INBOX' 11/05/10 12:23:16 pm n3 postfix/qmgr 461FB601A9: removed 11/05/10 12:23:16 pm n3 dovecot deliver(tarts): sieve: execution of script /home/tarts/.dovecot.sieve failed, but implicit keep was successful 11/05/10 12:23:16 pm n3 postfix/local CADCC60482: to=<tarts@n3.temporalarts.com>, relay=local, delay=0.01, delays=0/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to command: /usr/lib/dovecot/deliver -c /etc/dovecot/conf.d/01-dovecot-postfix.conf -n -m "${EXTENSION}") 11/05/10 12:23:16 pm n3 postfix/qmgr CADCC60482: removed 11/05/10 12:23:16 pm n3 postfix/smtpd connect from localhost[127.0.0.1] 11/05/10 12:23:16 pm n3 postfix/smtpd CADCC60482: client=localhost[127.0.0.1] 11/05/10 12:23:16 pm n3 postfix/cleanup CADCC60482: message-id=<201011051923.oA5JNBq3025002@JaySmith.com> 11/05/10 12:23:16 pm n3 postfix/smtpd disconnect from localhost[127.0.0.1] 11/05/10 12:23:16 pm n3 postfix/qmgr CADCC60482: from=<rparr@JaySmith.com>, size=1723, nrcpt=1 (queue active) 11/05/10 12:23:16 pm n3 amavis (24998-07) Passed SPAM, [74.164.202.187] [74.164.202.187] <rparr@JaySmith.com> -> <tarts@n3.temporalarts.com>, quarantine: N/spam-NEY7tZkdXw4G.gz, Message-ID: <201011051923.oA5JNBq3025002@JaySmith.com>, mail_id: NEY7tZkdXw4G, Hits: 1002.562, size: 875, queued_as: CADCC60482, 3200 ms 11/05/10 12:23:16 pm n3 dovecot deliver(tarts): sieve: msgid=<201011051923.oA5JNBq3025002@JaySmith.com>: failed to store into mailbox 'public/SPAM/SPAMMM': Mailbox doesn't exist: public/SPAM/SPAMMM 11/05/10 12:23:16 pm n3 postfix/smtp 461FB601A9: to=<tarts@n3.temporalarts.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=3.8, delays=0.55/0.01/0/3.2, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=24998-07, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as CADCC60482) 11/05/10 12:23:16 pm n3 dovecot deliver(tarts): sieve: msgid=<201011051923.oA5JNBq3025002@JaySmith.com>: stored mail into mailbox 'INBOX' 11/05/10 12:23:16 pm n3 postfix/qmgr 461FB601A9: removed 11/05/10 12:23:16 pm n3 dovecot deliver(tarts): sieve: execution of script /home/tarts/.dovecot.sieve failed, but implicit keep was successful 11/05/10 12:23:16 pm n3 postfix/local CADCC60482: to=<tarts@n3.temporalarts.com>, relay=local, delay=0.01, delays=0/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to command: /usr/lib/dovecot/deliver -c /etc/dovecot/conf.d/01-dovecot-postfix.conf -n -m "${EXTENSION}") 11/05/10 12:23:16 pm n3 postfix/qmgr CADCC60482: removed 11/05/10 12:23:16 pm n3 dovecot deliver(tarts): sieve: msgid=<201011051923.oA5JNBq3025002@JaySmith.com>: failed to store into mailbox 'public/SPAM/SPAMMM': Mailbox doesn't exist: public/SPAM/SPAMMM 11/05/10 12:23:16 pm n3 dovecot deliver(tarts): sieve: execution of script /home/tarts/.dovecot.sieve failed, but implicit keep was successful
I then edit user tarts spam.sieve filter to post into one of user tarts mailboxes and send the same GTUBE message again
11/05/10 12:28:34 pm n3 postfix/smtpd connect from jaysmith.com[74.164.202.187] 11/05/10 12:28:34 pm n3 postfix/smtpd connect from jaysmith.com[74.164.202.187] 11/05/10 12:28:36 pm n3 postfix/smtpd 20BE160467: client=jaysmith.com[74.164.202.187] 11/05/10 12:28:36 pm n3 postfix/cleanup 20BE160467: message-id=<201011051928.oA5JSYCn025245@JaySmith.com> 11/05/10 12:28:36 pm n3 postfix/qmgr 20BE160467: from=<rparr@JaySmith.com>, size=875, nrcpt=1 (queue active) 11/05/10 12:28:36 pm n3 postfix/smtpd 20BE160467: client=jaysmith.com[74.164.202.187] 11/05/10 12:28:36 pm n3 postfix/cleanup 20BE160467: message-id=<201011051928.oA5JSYCn025245@JaySmith.com> 11/05/10 12:28:36 pm n3 postfix/qmgr 20BE160467: from=<rparr@JaySmith.com>, size=875, nrcpt=1 (queue active) 11/05/10 12:28:36 pm n3 postfix/smtpd disconnect from jaysmith.com[74.164.202.187] 11/05/10 12:28:36 pm n3 postfix/smtpd disconnect from jaysmith.com[74.164.202.187] 11/05/10 12:28:39 pm n3 postfix/smtpd connect from localhost[127.0.0.1] 11/05/10 12:28:39 pm n3 postfix/smtpd 55DAE60482: client=localhost[127.0.0.1] 11/05/10 12:28:39 pm n3 postfix/cleanup 55DAE60482: message-id=<201011051928.oA5JSYCn025245@JaySmith.com> 11/05/10 12:28:39 pm n3 postfix/smtpd disconnect from localhost[127.0.0.1] 11/05/10 12:28:39 pm n3 postfix/qmgr 55DAE60482: from=<rparr@JaySmith.com>, size=1723, nrcpt=1 (queue active) 11/05/10 12:28:39 pm n3 amavis (24997-08) Passed SPAM, [74.164.202.187] [74.164.202.187] <rparr@JaySmith.com> -> <tarts@n3.temporalarts.com>, quarantine: e/spam-e26gavu3BMYL.gz, Message-ID: <201011051928.oA5JSYCn025245@JaySmith.com>, mail_id: e26gavu3BMYL, Hits: 1002.562, size: 875, queued_as: 55DAE60482, 2869 ms 11/05/10 12:28:39 pm n3 dovecot deliver(tarts): sieve: msgid=<201011051928.oA5JSYCn025245@JaySmith.com>: stored mail into mailbox 'SPAM/MySPAMMM' 11/05/10 12:28:39 pm n3 postfix/local 55DAE60482: to=<tarts@n3.temporalarts.com>, relay=local, delay=0.01, delays=0/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to command: /usr/lib/dovecot/deliver -c /etc/dovecot/conf.d/01-dovecot-postfix.conf -n -m "${EXTENSION}") 11/05/10 12:28:39 pm n3 postfix/smtp 20BE160467: to=<tarts@n3.temporalarts.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=3.4, delays=0.52/0.01/0/2.9, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=24997-08, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 55DAE60482) 11/05/10 12:28:39 pm n3 postfix/qmgr 55DAE60482: removed 11/05/10 12:28:39 pm n3 postfix/qmgr 20BE160467: removed 11/05/10 12:28:39 pm n3 postfix/smtpd connect from localhost[127.0.0.1] 11/05/10 12:28:39 pm n3 postfix/smtpd 55DAE60482: client=localhost[127.0.0.1] 11/05/10 12:28:39 pm n3 postfix/cleanup 55DAE60482: message-id=<201011051928.oA5JSYCn025245@JaySmith.com> 11/05/10 12:28:39 pm n3 postfix/smtpd disconnect from localhost[127.0.0.1] 11/05/10 12:28:39 pm n3 postfix/qmgr 55DAE60482: from=<rparr@JaySmith.com>, size=1723, nrcpt=1 (queue active) 11/05/10 12:28:39 pm n3 amavis (24997-08) Passed SPAM, [74.164.202.187] [74.164.202.187] <rparr@JaySmith.com> -> <tarts@n3.temporalarts.com>, quarantine: e/spam-e26gavu3BMYL.gz, Message-ID: <201011051928.oA5JSYCn025245@JaySmith.com>, mail_id: e26gavu3BMYL, Hits: 1002.562, size: 875, queued_as: 55DAE60482, 2869 ms 11/05/10 12:28:39 pm n3 dovecot deliver(tarts): sieve: msgid=<201011051928.oA5JSYCn025245@JaySmith.com>: stored mail into mailbox 'SPAM/MySPAMMM' 11/05/10 12:28:39 pm n3 postfix/local 55DAE60482: to=<tarts@n3.temporalarts.com>, relay=local, delay=0.01, delays=0/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to command: /usr/lib/dovecot/deliver -c /etc/dovecot/conf.d/01-dovecot-postfix.conf -n -m "${EXTENSION}") 11/05/10 12:28:39 pm n3 postfix/smtp 20BE160467: to=<tarts@n3.temporalarts.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=3.4, delays=0.52/0.01/0/2.9, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=24997-08, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 55DAE60482) 11/05/10 12:28:39 pm n3 postfix/qmgr 55DAE60482: removed 11/05/10 12:28:39 pm n3 postfix/qmgr 20BE160467: removed 11/05/10 12:28:42 pm n3 dovecot imap-login: Login: user=<tarts>, method=PLAIN, rip=63.227.222.66, lip=63.227.222.66, TLS 11/05/10 12:28:42 pm n3 dovecot IMAP(tarts): Effective uid=1091, gid=1091, home=/home/tarts 11/05/10 12:28:42 pm n3 dovecot IMAP(tarts): Namespace: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes 11/05/10 12:28:42 pm n3 dovecot IMAP(tarts): mbox: data=~/mail:INBOX=/var/mail/tarts 11/05/10 12:28:42 pm n3 dovecot IMAP(tarts): fs: root=/home/tarts/mail, index=, control=, inbox=/var/mail/tarts 11/05/10 12:28:42 pm n3 dovecot IMAP(tarts): Namespace: type=public, prefix=public/, sep=/, inbox=no, hidden=no, list=yes, subscriptions=no 11/05/10 12:28:42 pm n3 dovecot IMAP(tarts): mbox: data=/var/mail/public 11/05/10 12:28:42 pm n3 dovecot IMAP(tarts): mbox: INBOX defaulted to /var/mail/public/inbox 11/05/10 12:28:42 pm n3 dovecot IMAP(tarts): fs: root=/var/mail/public, index=, control=, inbox=/var/mail/public/inbox 11/05/10 12:28:42 pm n3 dovecot imap-login: Login: user=<tarts>, method=PLAIN, rip=63.227.222.66, lip=63.227.222.66, TLS 11/05/10 12:28:42 pm n3 dovecot IMAP(tarts): Effective uid=1091, gid=1091, home=/home/tarts 11/05/10 12:28:42 pm n3 dovecot IMAP(tarts): Namespace: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes 11/05/10 12:28:42 pm n3 dovecot IMAP(tarts): mbox: data=~/mail:INBOX=/var/mail/tarts 11/05/10 12:28:42 pm n3 dovecot IMAP(tarts): fs: root=/home/tarts/mail, index=, control=, inbox=/var/mail/tarts 11/05/10 12:28:42 pm n3 dovecot IMAP(tarts): Namespace: type=public, prefix=public/, sep=/, inbox=no, hidden=no, list=yes, subscriptions=no 11/05/10 12:28:42 pm n3 dovecot IMAP(tarts): mbox: data=/var/mail/public 11/05/10 12:28:42 pm n3 dovecot IMAP(tarts): mbox: INBOX defaulted to /var/mail/public/inbox 11/05/10 12:28:42 pm n3 dovecot IMAP(tarts): fs: root=/var/mail/public, index=, control=, inbox=/var/mail/public/inbox
I am a little confused by the references to inbox=/var/mail/tarts (correct per my understanding) AND INBOX defaulted to /var/mail/public/inbox? Does the definition of public namespace need to explicitly say inbox = no?
On 5.11.2010, at 19.34, RParr wrote:
root@n3:/etc/dovecot# dovecot -n # 1.2.9: /etc/dovecot/dovecot.conf .. 11/05/10 12:23:16 pm n3 postfix/local CADCC60482: to=<tarts@n3.temporalarts.com>, relay=local, delay=0.01, delays=0/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to command: /usr/lib/dovecot/deliver -c /etc/dovecot/conf.d/01-dovecot-postfix.conf -n -m "${EXTENSION}")
Is the problem that you have a different config file for deliver (the -c parameter) where you don't have the same settings as the rest of Dovecot?
On 11/10/2010 05:33 PM, Timo Sirainen wrote:
On 5.11.2010, at 19.34, RParr wrote:
root@n3:/etc/dovecot# dovecot -n # 1.2.9: /etc/dovecot/dovecot.conf
..
11/05/10 12:23:16 pm n3 postfix/local CADCC60482: to=<tarts@n3.temporalarts.com>, relay=local, delay=0.01, delays=0/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to command: /usr/lib/dovecot/deliver -c /etc/dovecot/conf.d/01-dovecot-postfix.conf -n -m "${EXTENSION}")
Is the problem that you have a different config file for deliver (the -c parameter) where you don't have the same settings as the rest of Dovecot?
I missed that.
The Ubuntu dovecot-postfix package adds that line to /etc/postfix/main.cf. It also adds /etc/dovecot/conf.d/01-dovecot-postfix.conf which gets included at the end of /etc/dovecot/dovecot.conf.
I tried changing the /etc/postfix/main.cf line for deliver to -c /etc/dovecot/dovecot.conf but then deliver fails because postmaster_address setting not given. postmaster_address is defined in conf.d/01-dovecot-postfix.conf
I quess deliver still does not support include?
Does deliver honor multiple -c options?
deliver -c /etc/dovecot/dovecot.conf -c /etc/dovecot/conf.d/01-dovecot-postfix.conf
Or does deliver's lack of include support mean I must put all dovecot config in one file? (eg /etc/dovecot/dovecot.conf)
After manually adding the contents of conf.d/01-dovecot-postfix.conf to the end of dovecot.conf and changing the sieve filters to fileinto "public/SPAM/SPAMMM" the gtube mail is delivered to the public folders BUT the log shows utime failures. And I get utime errors (see 2nd log entry below) when I move/copy into the public folders.
I thought I had the permissions set correctly (see previous email with gory permission detail)
11/13/10 11:14:32 am n3 postfix/smtpd connect from jaysmith.com[74.164.202.187] 11/13/10 11:14:32 am n3 postfix/smtpd connect from jaysmith.com[74.164.202.187] 11/13/10 11:14:33 am n3 postfix/smtpd 569D3600C0: client=jaysmith.com[74.164.202.187] 11/13/10 11:14:33 am n3 postfix/cleanup 569D3600C0: message-id=<201011131914.oADJEVYh028100@JaySmith.com> 11/13/10 11:14:33 am n3 postfix/qmgr 569D3600C0: from=<rparr@JaySmith.com>, size=862, nrcpt=1 (queue active) 11/13/10 11:14:33 am n3 postfix/smtpd 569D3600C0: client=jaysmith.com[74.164.202.187] 11/13/10 11:14:33 am n3 postfix/cleanup 569D3600C0: message-id=<201011131914.oADJEVYh028100@JaySmith.com> 11/13/10 11:14:33 am n3 postfix/qmgr 569D3600C0: from=<rparr@JaySmith.com>, size=862, nrcpt=1 (queue active) 11/13/10 11:14:33 am n3 postfix/smtpd disconnect from jaysmith.com[74.164.202.187] 11/13/10 11:14:33 am n3 postfix/smtpd disconnect from jaysmith.com[74.164.202.187] 11/13/10 11:14:39 am n3 dovecot deliver(tarts): utime() failed with mbox file /var/mail/public/SPAM/SPAMMM: Operation not permitted 11/13/10 11:14:39 am n3 dovecot deliver(tarts): utimes() failed with mbox file /var/mail/public/SPAM/SPAMMM: Operation not permitted 11/13/10 11:14:39 am n3 amavis (02101-03) INFO: no existing header field 'Subject', inserting it 11/13/10 11:14:39 am n3 postfix/smtpd connect from localhost[127.0.0.1] 11/13/10 11:14:39 am n3 postfix/smtpd C48C561CE5: client=localhost[127.0.0.1] 11/13/10 11:14:39 am n3 postfix/cleanup C48C561CE5: message-id=<201011131914.oADJEVYh028100@JaySmith.com> 11/13/10 11:14:39 am n3 postfix/smtpd disconnect from localhost[127.0.0.1] 11/13/10 11:14:39 am n3 postfix/qmgr C48C561CE5: from=<rparr@JaySmith.com>, size=1658, nrcpt=1 (queue active) 11/13/10 11:14:39 am n3 amavis (02101-03) Passed SPAM, [74.164.202.187] [74.164.202.187] <rparr@JaySmith.com> -> <tarts@n3.temporalarts.com>, quarantine: l/spam-lBjUDy0M-IWi.gz, Message-ID: <201011131914.oADJEVYh028100@JaySmith.com>, mail_id: lBjUDy0M-IWi, Hits: 1001.768, size: 862, queued_as: C48C561CE5, 6090 ms 11/13/10 11:14:39 am n3 postfix/smtp 569D3600C0: to=<tarts@n3.temporalarts.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=6.8, delays=0.62/0.03/0.07/6, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=02101-03, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as C48C561CE5) 11/13/10 11:14:39 am n3 postfix/qmgr 569D3600C0: removed 11/13/10 11:14:39 am n3 dovecot deliver(tarts): Loading modules from directory: /usr/lib/dovecot/modules/lda 11/13/10 11:14:39 am n3 dovecot deliver(tarts): Module loaded: /usr/lib/dovecot/modules/lda/lib90_sieve_plugin.so 11/13/10 11:14:39 am n3 dovecot deliver(tarts): Namespace: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=1, subscriptions=yes 11/13/10 11:14:39 am n3 dovecot deliver(tarts): mbox: data=/home/tarts/mail:INBOX=/var/mail/tarts 11/13/10 11:14:39 am n3 dovecot deliver(tarts): fs: root=/home/tarts/mail, index=, control=, inbox=/var/mail/tarts 11/13/10 11:14:39 am n3 dovecot deliver(tarts): Namespace: type=public, prefix=public/, sep=/, inbox=no, hidden=no, list=1, subscriptions=no 11/13/10 11:14:39 am n3 dovecot deliver(tarts): mbox: data=/var/mail/public 11/13/10 11:14:39 am n3 dovecot deliver(tarts): mbox: INBOX defaulted to /var/mail/public/inbox 11/13/10 11:14:39 am n3 dovecot deliver(tarts): fs: root=/var/mail/public, index=, control=, inbox=/var/mail/public/inbox 11/13/10 11:14:39 am n3 dovecot deliver(tarts): sieve: using sieve path for user's script: /home/tarts/.dovecot.sieve 11/13/10 11:14:39 am n3 dovecot deliver(tarts): sieve: opening script /home/tarts/.dovecot.sieve 11/13/10 11:14:39 am n3 dovecot deliver(tarts): sieve: executing compiled script /home/tarts/.dovecot.sieve 11/13/10 11:14:39 am n3 dovecot deliver(tarts): utime() failed with mbox file /var/mail/public/SPAM/SPAMMM: Operation not permitted 11/13/10 11:14:39 am n3 dovecot deliver(tarts): sieve: msgid=<201011131914.oADJEVYh028100@JaySmith.com>: stored mail into mailbox 'public/SPAM/SPAMMM' 11/13/10 11:14:39 am n3 dovecot deliver(tarts): utimes() failed with mbox file /var/mail/public/SPAM/SPAMMM: Operation not permitted 11/13/10 11:14:39 am n3 postfix/local C48C561CE5: to=<tarts@n3.temporalarts.com>, relay=local, delay=0.05, delays=0/0.01/0/0.04, dsn=2.0.0, status=sent (delivered to command: /usr/lib/dovecot/deliver -c /etc/dovecot/dovecot.conf -n -m "${EXTENSION}") 11/13/10 11:14:39 am n3 postfix/qmgr C48C561CE5: removed 11/13/10 11:14:39 am n3 amavis (02101-03) INFO: no existing header field 'Subject', inserting it 11/13/10 11:14:39 am n3 postfix/smtpd connect from localhost[127.0.0.1] 11/13/10 11:14:39 am n3 postfix/smtpd C48C561CE5: client=localhost[127.0.0.1] 11/13/10 11:14:39 am n3 postfix/cleanup C48C561CE5: message-id=<201011131914.oADJEVYh028100@JaySmith.com> 11/13/10 11:14:39 am n3 postfix/smtpd disconnect from localhost[127.0.0.1] 11/13/10 11:14:39 am n3 postfix/qmgr C48C561CE5: from=<rparr@JaySmith.com>, size=1658, nrcpt=1 (queue active) 11/13/10 11:14:39 am n3 amavis (02101-03) Passed SPAM, [74.164.202.187] [74.164.202.187] <rparr@JaySmith.com> -> <tarts@n3.temporalarts.com>, quarantine: l/spam-lBjUDy0M-IWi.gz, Message-ID: <201011131914.oADJEVYh028100@JaySmith.com>, mail_id: lBjUDy0M-IWi, Hits: 1001.768, size: 862, queued_as: C48C561CE5, 6090 ms 11/13/10 11:14:39 am n3 postfix/smtp 569D3600C0: to=<tarts@n3.temporalarts.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=6.8, delays=0.62/0.03/0.07/6, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=02101-03, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as C48C561CE5) 11/13/10 11:14:39 am n3 postfix/qmgr 569D3600C0: removed 11/13/10 11:14:39 am n3 dovecot deliver(tarts): Loading modules from directory: /usr/lib/dovecot/modules/lda 11/13/10 11:14:39 am n3 dovecot deliver(tarts): Module loaded: /usr/lib/dovecot/modules/lda/lib90_sieve_plugin.so 11/13/10 11:14:39 am n3 dovecot deliver(tarts): Namespace: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=1, subscriptions=yes 11/13/10 11:14:39 am n3 dovecot deliver(tarts): mbox: data=/home/tarts/mail:INBOX=/var/mail/tarts 11/13/10 11:14:39 am n3 dovecot deliver(tarts): fs: root=/home/tarts/mail, index=, control=, inbox=/var/mail/tarts 11/13/10 11:14:39 am n3 dovecot deliver(tarts): Namespace: type=public, prefix=public/, sep=/, inbox=no, hidden=no, list=1, subscriptions=no 11/13/10 11:14:39 am n3 dovecot deliver(tarts): mbox: data=/var/mail/public 11/13/10 11:14:39 am n3 dovecot deliver(tarts): mbox: INBOX defaulted to /var/mail/public/inbox 11/13/10 11:14:39 am n3 dovecot deliver(tarts): fs: root=/var/mail/public, index=, control=, inbox=/var/mail/public/inbox 11/13/10 11:14:39 am n3 dovecot deliver(tarts): sieve: using sieve path for user's script: /home/tarts/.dovecot.sieve 11/13/10 11:14:39 am n3 dovecot deliver(tarts): sieve: opening script /home/tarts/.dovecot.sieve 11/13/10 11:14:39 am n3 dovecot deliver(tarts): sieve: executing compiled script /home/tarts/.dovecot.sieve 11/13/10 11:14:39 am n3 dovecot deliver(tarts): utime() failed with mbox file /var/mail/public/SPAM/SPAMMM: Operation not permitted 11/13/10 11:14:39 am n3 dovecot deliver(tarts): sieve: msgid=<201011131914.oADJEVYh028100@JaySmith.com>: stored mail into mailbox 'public/SPAM/SPAMMM' 11/13/10 11:14:39 am n3 dovecot deliver(tarts): utimes() failed with mbox file /var/mail/public/SPAM/SPAMMM: Operation not permitted 11/13/10 11:14:39 am n3 postfix/local C48C561CE5: to=<tarts@n3.temporalarts.com>, relay=local, delay=0.05, delays=0/0.01/0/0.04, dsn=2.0.0, status=sent (delivered to command: /usr/lib/dovecot/deliver -c /etc/dovecot/dovecot.conf -n -m "${EXTENSION}") 11/13/10 11:14:39 am n3 postfix/qmgr C48C561CE5: removed 11/13/10 11:14:39 am n3 dovecot deliver(tarts): utime() failed with mbox file /var/mail/public/SPAM/SPAMMM: Operation not permitted 11/13/10 11:14:39 am n3 dovecot deliver(tarts): utimes() failed with mbox file /var/mail/public/SPAM/SPAMMM: Operation not permitted
Note these utime() errors also appear (and only these errors) if I move/copy (using Thunderbird) a gtube mail from the users SPAM box to the public SPAM box.
11/13/10 11:20:28 am n3 dovecot IMAP(tarts): utime() failed with mbox file /var/mail/public/SPAM/SPAMMM: Operation not permitted 11/13/10 11:20:28 am n3 dovecot IMAP(tarts): utime() failed with mbox file /var/mail/public/SPAM/SPAMMM: Operation not permitted 11/13/10 11:20:28 am n3 dovecot IMAP(tarts): utimes() failed with mbox file /var/mail/public/SPAM/SPAMMM: Operation not permitted 11/13/10 11:20:28 am n3 dovecot IMAP(tarts): utime() failed with mbox file /var/mail/public/SPAM/SPAMMM: Operation not permitted 11/13/10 11:20:28 am n3 dovecot IMAP(tarts): utime() failed with mbox file /var/mail/public/SPAM/SPAMMM: Operation not permitted 11/13/10 11:20:28 am n3 dovecot IMAP(tarts): utimes() failed with mbox file /var/mail/public/SPAM/SPAMMM: Operation not permitted 11/13/10 11:20:28 am n3 dovecot IMAP(tarts): utime() failed with mbox file /var/mail/public/SPAM/SPAMMM: Operation not permitted 11/13/10 11:20:28 am n3 dovecot IMAP(tarts): utime() failed with mbox file /var/mail/public/SPAM/SPAMMM: Operation not permitted 11/13/10 11:20:28 am n3 dovecot IMAP(tarts): utimes() failed with mbox file /var/mail/public/SPAM/SPAMMM: Operation not permitted 11/13/10 11:20:28 am n3 dovecot IMAP(tarts): utime() failed with mbox file /var/mail/public/SPAM/SPAMMM: Operation not permitted 11/13/10 11:20:28 am n3 dovecot IMAP(tarts): utime() failed with mbox file /var/mail/public/SPAM/SPAMMM: Operation not permitted 11/13/10 11:20:28 am n3 dovecot IMAP(tarts): utimes() failed with mbox file /var/mail/public/SPAM/SPAMMM: Operation not permitted
These utime errros do not occur when I move/copy from the public box back to the users SPAM box.
Obviously I have something about permissions set or configured incorrectly or the recent patch for mbox 660, etc. was not quite enough.
P.S. dovecot -n now looks like
root@n3:/etc/dovecot# dovecot -n # 1.2.9: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-25-generic x86_64 Ubuntu 10.04.1 LTS log_timestamp: %Y-%m-%d %H:%M:%S protocols: imap pop3 imaps pop3s managesieve ssl_cert_file: /etc/ssl/certs/temporalarts.pem ssl_key_file: /etc/ssl/private/temporalarts.key ssl_cipher_list: ALL:!LOW:!SSLv2:ALL:!aNULL:!ADH:!eNULL:!EXP:RC4+RSA:+HIGH:+MEDIUM login_dir: /var/run/dovecot/login login_executable(default): /usr/lib/dovecot/imap-login login_executable(imap): /usr/lib/dovecot/imap-login login_executable(pop3): /usr/lib/dovecot/pop3-login login_executable(managesieve): /usr/lib/dovecot/managesieve-login mail_access_groups: tarts mail_privileged_group: mail mail_location: mbox:~/mail:INBOX=/var/mail/%u mail_debug: yes mbox_write_locks: fcntl dotlock mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(pop3): /usr/lib/dovecot/pop3 mail_executable(managesieve): /usr/lib/dovecot/managesieve mail_plugin_dir(default): /usr/lib/dovecot/modules/imap mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3 mail_plugin_dir(managesieve): /usr/lib/dovecot/modules/managesieve imap_client_workarounds(default): outlook-idle delay-newmail imap_client_workarounds(imap): outlook-idle delay-newmail imap_client_workarounds(pop3): imap_client_workarounds(managesieve): pop3_client_workarounds(default): pop3_client_workarounds(imap): pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh pop3_client_workarounds(managesieve): namespace: type: private separator: / inbox: yes list: yes subscriptions: yes namespace: type: public separator: / prefix: public/ location: mbox:/var/mail/public list: yes lda: postmaster_address: postmaster mail_plugins: sieve quota_full_tempfail: yes deliver_log_format: msgid=%m: %$ rejection_reason: Your message to <%t> was automatically rejected:%n%r auth default: mechanisms: plain login passdb: driver: pam userdb: driver: passwd socket: type: listen client: path: /var/spool/postfix/private/dovecot-auth mode: 432 user: postfix group: postfix plugin: sieve: ~/.dovecot.sieve sieve_dir: ~/sieve sieve_global_path: /etc/dovecot/sieve/default.sieve sieve_global_dir: /etc/dovecot/sieve
On Sat, 2010-11-13 at 11:27 -0800, RParr wrote:
I quess deliver still does not support include?
In v2.0 yes, in v1.x no.
Does deliver honor multiple -c options?
No.
Or does deliver's lack of include support mean I must put all dovecot config in one file? (eg /etc/dovecot/dovecot.conf)
Yeah.
11/13/10 11:14:39 am n3 dovecot deliver(tarts): utime() failed with mbox file /var/mail/public/SPAM/SPAMMM: Operation not permitted
Fixed for v2.0: http://hg.dovecot.org/dovecot-2.0/rev/3daec8435d29 http://hg.dovecot.org/dovecot-2.0/rev/586d549732f5
You can do basically the same for v1.2 (or just ignore the errors - everything works anyway).
On 11/16/2010 10:52 AM, Timo Sirainen wrote:
On Sat, 2010-11-13 at 11:27 -0800, RParr wrote:
I quess deliver still does not support include?
In v2.0 yes, in v1.x no.
Does deliver honor multiple -c options?
No.
Or does deliver's lack of include support mean I must put all dovecot config in one file? (eg /etc/dovecot/dovecot.conf)
Yeah.
11/13/10 11:14:39 am n3 dovecot deliver(tarts): utime() failed with mbox file /var/mail/public/SPAM/SPAMMM: Operation not permitted
Fixed for v2.0: http://hg.dovecot.org/dovecot-2.0/rev/3daec8435d29 http://hg.dovecot.org/dovecot-2.0/rev/586d549732f5
You can do basically the same for v1.2 (or just ignore the errors - everything works anyway).
I applied the change referenced above to 1.2.9 src/lib-storage/index/mbox/mbox-file.c
I continued to get the errors.
I then expanded the error message output for all calls to utime() in all files in src/lib-storage/index/mbox and found the errors were coming from mbox-save.d and mbox-sync.c
11/23/10 04:40:55 pm n3 dovecot IMAP(tarts): mbox-save: utime() failed with mbox file /var/mail/public/test4: Operation not permitted 11/23/10 04:40:55 pm n3 dovecot IMAP(tarts): mbox-sync: 2: utime() failed with mbox file /var/mail/public/test4: Operation not permitted 11/23/10 04:40:55 pm n3 dovecot IMAP(tarts): mbox-save: utime() failed with mbox file /var/mail/public/test4: Operation not permitted 11/23/10 04:40:55 pm n3 dovecot IMAP(tarts): mbox-sync: 2: utime() failed with mbox file /var/mail/public/test4: Operation not permitted 11/23/10 04:40:55 pm n3 dovecot IMAP(tarts): mbox-save: utime() failed with mbox file /var/mail/public/test4: Operation not permitted 11/23/10 04:40:55 pm n3 dovecot IMAP(tarts): mbox-sync: 2: utime() failed with mbox file /var/mail/public/test4: Operation not permitted 11/23/10 04:40:55 pm n3 dovecot IMAP(tarts): mbox-save: utime() failed with mbox file /var/mail/public/test4: Operation not permitted 11/23/10 04:40:55 pm n3 dovecot IMAP(tarts): mbox-sync: 2: utime() failed with mbox file /var/mail/public/test4: Operation not permitted
Note the errors are only occuring when copying/moving a message into a public box owned by someone else even though the box and both users are part of the same group.
I can modify the calls to utime() in mbox-save.c and mbox-sync.c to ignore the EPERM errors but I first wanted to verify that was reasonable.
Please let me know if I should proceed with those changes or if there is a better solution.
Thanks for all you help
R.Parr, RHCE, Temporal Arts
On Tue, 2010-11-23 at 16:52 -0800, RParr wrote:
Fixed for v2.0: http://hg.dovecot.org/dovecot-2.0/rev/3daec8435d29 http://hg.dovecot.org/dovecot-2.0/rev/586d549732f5 .. I can modify the calls to utime() in mbox-save.c and mbox-sync.c to ignore the EPERM errors but I first wanted to verify that was reasonable.
That's what the first of those two patches does.
On 11/04/2010 06:51 PM, Timo Sirainen wrote:
On 5.11.2010, at 1.35, RParr wrote:
Could someone verify if 1) sieve can fileinto shared public mbox?
I don't see any reason why it wouldn't.
- if it can, what I might be doing wrong?
Set mail_debug=yes and post logs. Also full dovecot -n output would be nice (and don't leave out the version number). I didn't see anything obviously wrong in your setup.
I have posted the dovecot -n output and log output with mail_debug=yes.
Are there additional log/config output needed to further discussion of this problem?
Thanks R.Parr, RHCE, Temporal Arts
participants (2)
-
RParr
-
Timo Sirainen