[Dovecot] bsdauth + dovecot-sieve

Gonzalo Rodriguez gonzalo at sepp0.com.ar
Wed Jan 26 21:12:08 EET 2011


Hi all,

I have a problem with my dovecot/postfix configuration:

here is my dovecot -n


# /usr/local/sbin/dovecot -n
# 1.1.20: /etc/dovecot.conf
Warning: fd limit 128 is lower than what Dovecot can use under full
load (more than 768). Either grow the limit or change
login_max_processes_count and max_mail_processes settings
# OS: OpenBSD 4.7 amd64  ffs
base_dir: /var/dovecot/
log_path: /var/log/dovecot
protocols: imaps pop3s
ssl_cert_file: /etc/ssl/dovecotcert.pem
login_dir: /var/dovecot/login
login_executable(default): /usr/local/libexec/dovecot/imap-login
login_executable(imap): /usr/local/libexec/dovecot/imap-login
login_executable(pop3): /usr/local/libexec/dovecot/pop3-login
login_user: _dovecot
mail_location: maildir:/var/www/datos/correo/qbit.com.ar/%n:LAYOUT=fs
mail_debug: yes
mbox_write_locks: fcntl
mail_executable(default): /usr/local/libexec/dovecot/imap
mail_executable(imap): /usr/local/libexec/dovecot/imap
mail_executable(pop3): /usr/local/libexec/dovecot/pop3
mail_plugin_dir(default): /usr/local/lib/dovecot/imap
mail_plugin_dir(imap): /usr/local/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3
imap_client_workarounds(default): delay-newmail outlook-idle
netscape-eoh tb-extra-mailbox-sep
imap_client_workarounds(imap): delay-newmail outlook-idle netscape-eoh
tb-extra-mailbox-sep
imap_client_workarounds(pop3):
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
lda:
  mail_plugins: cmusieve
  postmaster_address: postmaster at bla.com
  log_path: /var/log/dovecot-deliver-errors.log
  info_log_path: /var/log/dovecot-deliver.log
auth default:
  mechanisms: login plain
  verbose: yes
  debug: yes
  debug_passwords: yes
  passdb:
    driver: bsdauth
  userdb:
    driver: static
    args: uid=vmail gid=vmail home=/var/www/datos/correo/bla.com/%n
  socket:
    type: listen
    client:
      path: /var/spool/postfix/private/auth
      mode: 432
      user: _postfix
      group: _postfix
    master:
      path: /var/dovecot/auth-master
      mode: 384
      user: vmail
      group: vmail
plugin:
  sieve_global_dir: /var/sieve
  sieve_global_path: /var/sieve/global-default.sieve
  sieve: /var/sieve/%n.sieve


I use bsdauth to system users auth againts Active-Directory, now I
want to create vacation mails with dovecot-sieve, but have issues.

Can I use in dovecot deliver (master.cf) with parameters -d if I use
bsdauth to auth without passdb (the are system users)?

if I put this in my master.cf


dovecot   unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/deliver
-f ${sender} -d ${recipient}

I get:

deliver(prueba2 at bla.com): Jan 25 15:17:24 Error: Auth lookup returned failure

If I change the  -d ${recipient} for  -a ${recipient}

dovecot use the user (vmail) who run dovecot to storage the storage:
/var/www/datos/correo/bla.com/vmail/INBOX, so I get...

deliver(vmail): Jan 25 15:54:46 Info: maildir:
data=/var/www/datos/correo/qbit.com.ar/vmail:LAYOUT=fs

deliver replace %n for the user who run dovecot, so don't save the
mail in deliver(vmail): Jan 25 15:54:46 Info: maildir:
data=/var/www/datos/correo/qbit.com.ar/prueba2:LAYOUT=fs

This works properly if a use virtual_transport = virtual.

some idea?

cheers.


More information about the dovecot mailing list