I'm helping a friend setup a small mailserver using dovecot, and I'm finding a strange problem with checkpasswd that I haven't had on my servers. How is the following debug output even possible? Jul 25 12:12:20 company2 dovecot: auth(default): master out: USER 5 joe home=/var/mail/joe.com/joe/Maildir/ uid=1005 gid=1005 Jul 25 12:12:20 company2 dovecot: pop3-login: Login: user=<joe>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured Jul 25 12:12:20 company2 dovecot: POP3(joe): open(/var/mail/joe) failed: Permission denied (euid=1005 egid=1005) I don't see how, when it's clearly getting the correct home directory from checkpassword, that it would then try the default mail directory. (mail_location is commented out, version 1.1.1) Here's the entire auth clause: auth default { mechanisms = plain login passdb checkpassword { args = /usr/local/sbin/checkpassword } userdb prefetch { } user = mailman # 1005,1005 socket listen { master { mode = 0666 } client { path = /var/run/dovecot/auth mode = 0660 user = postfix group = postfix } } } Any suggestions? I'm probably just missing something obvious, not having messed with setting this up for 6 months. Thanks, Andy --- Andy Dills Xecunet, Inc. www.xecu.net 301-682-9972 ---
Figured it out. For whatever reason, I didn't need to set the userdb_mail previously, but you definitely do now. Thanks, Andy On Fri, 25 Jul 2008, Andy Dills wrote:> > I'm helping a friend setup a small mailserver using dovecot, and I'm > finding a strange problem with checkpasswd that I haven't had on my > servers. > > How is the following debug output even possible? > > Jul 25 12:12:20 company2 dovecot: auth(default): master out: USER 5 joe home=/var/mail/joe.com/joe/Maildir/ uid=1005 gid=1005 > Jul 25 12:12:20 company2 dovecot: pop3-login: Login: user=<joe>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured > Jul 25 12:12:20 company2 dovecot: POP3(joe): open(/var/mail/joe) failed: Permission denied (euid=1005 egid=1005) > > > I don't see how, when it's clearly getting the correct home directory from > checkpassword, that it would then try the default mail directory. > > (mail_location is commented out, version 1.1.1) > > Here's the entire auth clause: > > auth default { > mechanisms = plain login > > passdb checkpassword { > args = /usr/local/sbin/checkpassword > } > userdb prefetch { > } > user = mailman # 1005,1005 > socket listen { > master { > mode = 0666 > } > client { > path = /var/run/dovecot/auth > mode = 0660 > user = postfix > group = postfix > } > } > } > > > Any suggestions? I'm probably just missing something obvious, not having > messed with setting this up for 6 months. > > Thanks, > Andy > > --- > Andy Dills > Xecunet, Inc. > www.xecu.net > 301-682-9972 > --- >--- Andy Dills Xecunet, Inc. www.xecu.net 301-682-9972 ---
Possibly Parallel Threads
- Panic: file mail-index-transaction-export.c: line 203 (log_append_ext_hdr_update): assertion failed: (u32.offset + u32.size <= ext_hdr_size)
- Errors with doveadm when using checkpassword
- Director pop-login and imap-login processes exiting on signal 11
- FreeBSD 8.3-R sysinstall does not "see" disks that are recognized during boot
- Effects of migration