[Dovecot] Lost %d variable

Aladdin aladdin at csunv.com
Sun Sep 12 08:24:06 EEST 2010


I'm trying to set up sieve with dovecot, and for some reason, sieve is not
getting the %d variable that is part of the path to where its script should
be.

 

Here's the version:

ops:/var/log/mail# dovecot --version

1.2.13

 

And, here's the configuration (I've left it all for reference, but moved the
lda & plugins portions together and marked them out):

 

ops:/var/log/mail# dovecot -n

# 1.2.13: /etc/dovecot/dovecot.conf

# OS: Linux 2.6.18-3-686 i686 Debian 4.0 ext3

log_path: /var/log/mail/dovecot.log

info_log_path: /var/log/mail/dovecot.info

log_timestamp: %Y-%m-%d %H:%M:%S

protocols: imap imaps pop3 pop3s

ssl_parameters_regenerate: 0

disable_plaintext_auth: no

verbose_ssl: yes

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

mail_location:
maildir:/var/mail/%d/%n:CONTROL=/var/mail/%d/%n:INDEX=/var/mail/%d/%n:INBOX=
/var/mail/%d/%n

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_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

 

----------- Start lda/sieve part --------------

lda:

  log_path: /var/log/mail/deliver-errors.log

  info_log_path: /var/log/mail/deliver.log

  postmaster_address: aladdin at csunv.com

  mail_plugin_dir: /usr/lib/dovecot/modules/lda

  mail_plugins: sieve

plugin:

  sieve: /var/mail/%d/%n/.sieve

----------- End lda/sieve part --------------

 

auth default:

  verbose: yes

  passdb:

    driver: passwd-file

    args: /etc/dovecot/passwd.dovecot

  userdb:

    driver: static

    args: uid=vmail gid=vmail home=/var/mail/home/%u

  userdb:

    driver: passwd

plugin:

  sieve: /var/mail/%d/%n/.sieve

 

And, here is the log output:

 

ops:/var/log/mail# cat deliver-errors.log

2010-09-11 18:23:46 deliver(aladdin): Error: sieve: failed to stat user's
sieve script: stat(/var/mail//aladdin/.sieve) failed: Not a directory (using
global script path in stead)

2010-09-11 18:23:46 deliver(aladdin): Error: stat(/var/mail//aladdin/tmp)
failed: Not a directory

 

Obviously, the double slashes shouldn't be there; there should be the domain
name: /var/mail/csunv.com/aladdin

 

The "regular" dovecot gets the path fine; that is also where it puts the
mail, and I'm getting mail just fine.

 

TIA,

Allen

 

 



More information about the dovecot mailing list