[Dovecot] bsdauth + dovecot-sieve
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@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@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.
On Wed, 2011-01-26 at 16:12 -0300, Gonzalo Rodriguez wrote:
passdb: driver: bsdauth userdb: driver: static args: uid=vmail gid=vmail home=/var/www/datos/correo/bla.com/%n ..
Can I use in dovecot deliver (master.cf) with parameters -d if I use bsdauth to auth without passdb (the are system users)?
Only if you add allow_all_users=yes to userdb static.
deliver(prueba2@bla.com): Jan 25 15:17:24 Error: Auth lookup returned failure
There should be another error message from dovecot-auth saying bsdauth doesn't support lookups.
hi thank you for response, without the allow_all_users=yes
I have this:
deliver(prueba2@bla.com): Jan 28 18:09:49 Info: Loading modules from directory: /usr/local/lib/dovecot/lda deliver(prueba2@bla.com): Jan 28 18:09:49 Info: Module loaded: /usr/local/lib/dovecot/lda/lib90_cmusieve_plugin.so
deliver(prueba2@bla.com): Jan 28 18:09:49 Error: Auth lookup returned failure
dovecot: Jan 28 18:09:49 Info: auth(default): password(prueba2@bla.com): passdb doesn't support credential lookups dovecot: Jan 28 18:09:49 Error: auth(default): static(prueba2@bla.com): passdb doesn't support lookups, can't verify user's existence
And a deferred mail in maillog.
Remember I have the user system added in the mail server but they auth to a AD, any way to solve this?
Cheers
2011/1/27 Timo Sirainen tss@iki.fi:
On Wed, 2011-01-26 at 16:12 -0300, Gonzalo Rodriguez wrote:
passdb: driver: bsdauth userdb: driver: static args: uid=vmail gid=vmail home=/var/www/datos/correo/bla.com/%n ..
Can I use in dovecot deliver (master.cf) with parameters -d if I use bsdauth to auth without passdb (the are system users)?
Only if you add allow_all_users=yes to userdb static.
deliver(prueba2@bla.com): Jan 25 15:17:24 Error: Auth lookup returned failure
There should be another error message from dovecot-auth saying bsdauth doesn't support lookups.
On 28.1.2011, at 23.22, Timo Sirainen wrote:
On 28.1.2011, at 23.16, Gonzalo Rodriguez wrote:
Remember I have the user system added in the mail server but they auth to a AD, any way to solve this?
By:
add allow_all_users=yes to userdb static.
Or is there a reason why you don't want to do this? I guess you could also create userdb ldap that does lookups from AD. Other than that, there aren't really any possibilities.
well with allow_all_users=yes is fixed, so now I need to avoid spam :)
cheers mate.
2011/1/28 Timo Sirainen tss@iki.fi:
On 28.1.2011, at 23.22, Timo Sirainen wrote:
On 28.1.2011, at 23.16, Gonzalo Rodriguez wrote:
Remember I have the user system added in the mail server but they auth to a AD, any way to solve this?
By:
add allow_all_users=yes to userdb static.
Or is there a reason why you don't want to do this? I guess you could also create userdb ldap that does lookups from AD. Other than that, there aren't really any possibilities.
participants (2)
-
Gonzalo Rodriguez
-
Timo Sirainen