DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 27th January 2011
bettyblue bettyblue is offline
New User
 
Join Date: May 2010
Posts: 4
Smile Dovecot bsdauth

Hi all,

I have a problem with my dovecot/postfix configuration:

here is my dovecot -n


Code:
# /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 i386 *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/data/mail/bla.com/%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/data/mail/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


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

Code:
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/data/mail/bla.com/vmail/INBOX, so I get...

deliver(vmail): Jan 25 15:54:46 Info: maildir:
data=/var/www/data/mail/bla.com/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/data/mail/bla.com/prueba2:LAYOUT=fs

This works properly if a use virtual_transport = virtual.

some idea?

cheers.

Last edited by J65nko; 27th January 2011 at 07:30 PM. Reason: added code tags
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix, Dovecot, spamassassin, mysql and maildrop hamba Guides 3 20th May 2010 06:40 PM
dovecot + ssl bsdperson FreeBSD Ports and Packages 6 25th December 2009 08:55 PM
MySQL / Dovecot connection problem DrKrall FreeBSD Ports and Packages 2 12th July 2009 06:40 PM
[DOVECOT] How to choose the ports? Sunsawe FreeBSD Ports and Packages 2 7th July 2008 02:41 PM
postfix + dovecot LDA: bounce, user unknown cbrace FreeBSD General 1 9th May 2008 05:19 PM


All times are GMT. The time now is 05:31 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick