On 11/10/2010 05:33 PM, Timo Sirainen wrote:
On 5.11.2010, at 19.34, RParr wrote:

r...@n3:/etc/dovecot# dovecot -n
# 1.2.9: /etc/dovecot/dovecot.conf
..
11/05/10 12:23:16 pm    n3    postfix/local    CADCC60482: 
to=<ta...@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.oadjevyh028...@jaysmith.com> 11/13/10 11:14:33 am n3 postfix/qmgr 569D3600C0: from=<rp...@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.oadjevyh028...@jaysmith.com> 11/13/10 11:14:33 am n3 postfix/qmgr 569D3600C0: from=<rp...@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.oadjevyh028...@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=<rp...@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] <rp...@jaysmith.com> -> <ta...@n3.temporalarts.com>, quarantine: l/spam-lBjUDy0M-IWi.gz, Message-ID: <201011131914.oadjevyh028...@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=<ta...@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.oadjevyh028...@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=<ta...@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.oadjevyh028...@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=<rp...@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] <rp...@jaysmith.com> -> <ta...@n3.temporalarts.com>, quarantine: l/spam-lBjUDy0M-IWi.gz, Message-ID: <201011131914.oadjevyh028...@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=<ta...@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.oadjevyh028...@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=<ta...@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
-----------------------------------------
r...@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

Reply via email to