[Dovecot] cannot use password-file for userdb
OK, I am attempting to use the userdb connection to facilitate per user migration to Maildir format from mbox. Here's the first user:
more /home/dovecot.passwd health:$1$MCtvt/Tz$FmKqU/cbWlBhKnhc5W.Ko.:1152:1152:/home/health:userdb_mail=maildir:~/Maildir
The configuration was set up as:
userdb passwd { }
I changed this to:
userdb passwd-file { args = /home/dovecot.conf }
And unfortunately the dovecot daemon dies after successfully launching.
Suggestions?
-- Albert E. Whale, CHS CISA CISSP Sr. Security, Network, Risk Assessment and Systems Consultant
ABS Computer Technology, Inc. http://www.ABS-CompTech.com - Email, Internet and Security Consultants SPAMZapper http://www.Spam-Zapper.com - No-JunkMail.com http://www.No-JunkMail.com - *True Spam Elimination*.
Albert E. Whale wrote:
OK, I am attempting to use the userdb connection to facilitate per user migration to Maildir format from mbox. Here's the first user:
more /home/dovecot.passwd health:$1$MCtvt/Tz$FmKqU/cbWlBhKnhc5W.Ko.:1152:1152:/home/health:userdb_mail=maildir:~/Maildir
The configuration was set up as:
userdb passwd { }
I changed this to:
userdb passwd-file { args = /home/dovecot.conf }
And unfortunately the dovecot daemon dies after successfully launching.
Suggestions?
The dovecot password file is really /home/dovecot.passwd, but this still does not resolve the authentication issue for user health.
Still seeking suggestions.
-- Albert E. Whale, CHS CISA CISSP Sr. Security, Network, Risk Assessment and Systems Consultant
ABS Computer Technology, Inc. http://www.ABS-CompTech.com - Email, Internet and Security Consultants SPAMZapper http://www.Spam-Zapper.com - No-JunkMail.com http://www.No-JunkMail.com - *True Spam Elimination*.
On Sun, 2008-10-26 at 10:01 -0400, Albert E. Whale wrote:
And unfortunately the dovecot daemon dies after successfully launching.
What does it log? http://wiki.dovecot.org/Logging
Timo Sirainen wrote:
On Sun, 2008-10-26 at 10:01 -0400, Albert E. Whale wrote:
And unfortunately the dovecot daemon dies after successfully launching.
What does it log? http://wiki.dovecot.org/Logging
Actually the userdb was wrong, but now I am seeing the following:
Oct 26 17:26:54 ns6 dovecot: auth(default): new auth connection: pid=5142 Oct 26 17:26:54 ns6 dovecot: auth(default): client in: AUTH^I1^IPLAIN^Iservice=pop3^Ilip=66.207.133.228^Irip=71.162.15.2^Ilport=110^Irport=4238^Iresp=<hidden> Oct 26 17:26:54 ns6 dovecot: auth(default): client out: CONT^I1^I Oct 26 17:26:54 ns6 dovecot: auth(default): client in: CONT<hidden> Oct 26 17:26:54 ns6 dovecot: auth(default): passwd-file(health,71.162.15.2): lookup: user=health file=/home/dovecot.passwd
How do I get this to recognize the :userdb_mail=maildir:~/Maildir in the dovecot.passwd file??
-- Albert E. Whale, CHS CISA CISSP Sr. Security, Network, Risk Assessment and Systems Consultant
ABS Computer Technology, Inc. http://www.ABS-CompTech.com - Email, Internet and Security Consultants SPAMZapper http://www.Spam-Zapper.com - No-JunkMail.com http://www.No-JunkMail.com - *True Spam Elimination*.
On Oct 26, 2008, at 11:28 PM, Albert E. Whale wrote:
Oct 26 17:26:54 ns6 dovecot: auth(default): new auth connection:
pid=5142 Oct 26 17:26:54 ns6 dovecot: auth(default): client in: AUTH ^ I1 ^ IPLAIN ^ Iservicepop3 ^ Ilip =66.207.133.228^Irip=71.162.15.2^Ilport=110^Irport=4238^Iresp=<hidden> Oct 26 17:26:54 ns6 dovecot: auth(default): client out: CONT^I1^I Oct 26 17:26:54 ns6 dovecot: auth(default): client in: CONT<hidden> Oct 26 17:26:54 ns6 dovecot: auth(default): passwd-file(health,71.162.15.2): lookup: user=health file=/home/dovecot.passwd
This shows the passdb lookup part. Does it continue? If so, post it
too. It should show more for the userdb lookup.
How do I get this to recognize the :userdb_mail=maildir:~/Maildir in
the dovecot.passwd file??
Post your current dovecot -n output.
Timo Sirainen wrote:
On Oct 26, 2008, at 11:28 PM, Albert E. Whale wrote:
Oct 26 17:26:54 ns6 dovecot: auth(default): new auth connection: pid=5142 Oct 26 17:26:54 ns6 dovecot: auth(default): client in: AUTH^I1^IPLAIN^Iservice=pop3^Ilip=66.207.133.228^Irip=71.162.15.2^Ilport=110^Irport=4238^Iresp=<hidden>
Oct 26 17:26:54 ns6 dovecot: auth(default): client out: CONT^I1^I Oct 26 17:26:54 ns6 dovecot: auth(default): client in: CONT<hidden> Oct 26 17:26:54 ns6 dovecot: auth(default): passwd-file(health,71.162.15.2): lookup: user=health file=/home/dovecot.passwd
This shows the passdb lookup part. Does it continue? If so, post it too. It should show more for the userdb lookup. At present it does not continue. Which is probably the issue.
How do I get this to recognize the :userdb_mail=maildir:~/Maildir in the dovecot.passwd file??
Post your current dovecot -n output.
See attached. Thank you.
-- Albert E. Whale, CHS CISA CISSP Sr. Security, Network, Risk Assessment and Systems Consultant
ABS Computer Technology, Inc. http://www.ABS-CompTech.com - Email, Internet and Security Consultants SPAMZapper http://www.Spam-Zapper.com - No-JunkMail.com http://www.No-JunkMail.com - *True Spam Elimination*.
ns6.ABS-CompTech.com root [/root] dovecot -n # 1.1.4: /etc/dovecot.conf base_dir: /var/run/dovecot/ protocols: imap pop3 ssl_disable: yes disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable(default): /usr/libexec/dovecot/imap-login login_executable(imap): /usr/libexec/dovecot/imap-login login_executable(pop3): /usr/libexec/dovecot/pop3-login login_greeting: SpamZapper Email ready. mail_max_userip_connections(default): 10 mail_max_userip_connections(imap): 10 mail_max_userip_connections(pop3): 3 verbose_proctitle: yes mail_privileged_group: mail mail_location: mbox:~/mail:INBOX=/var/spool/mail/%u mail_debug: yes mmap_disable: yes mail_nfs_storage: yes mail_nfs_index: yes lock_method: dotlock mail_executable(default): /usr/libexec/dovecot/imap mail_executable(imap): /usr/libexec/dovecot/imap mail_executable(pop3): /usr/libexec/dovecot/pop3 mail_plugin_dir(default): /usr/lib/dovecot/imap mail_plugin_dir(imap): /usr/lib/dovecot/imap mail_plugin_dir(pop3): /usr/lib/dovecot/pop3 pop3_uidl_format(default): %08Xu%08Xv pop3_uidl_format(imap): %08Xu%08Xv pop3_uidl_format(pop3): %08Xv%08Xu auth default: username_format: %Lu verbose: yes debug: yes passdb: driver: passwd-file args: /home/dovecot.passwd passdb: driver: pam userdb: driver: passwd-file args: /home/dovecot.passwd userdb: driver: passwd
I cannot get to the Maildir info for a user. The user's user_db is set up in /home/dovecot.passwd.
Here is the transcript of the pop3 connection:
Oct 28 14:56:04 ns6 dovecot: auth(default): client in: AUTH^I1^IPLAIN^Iservice=pop3^Ilip=66.207.133.228^Irip=71.162.15.2^Ilport=110^Irport=1874^Iresp=<hidden> Oct 28 14:56:04 ns6 dovecot: auth(default): client out: CONT^I1^I Oct 28 14:56:04 ns6 dovecot: auth(default): client in: CONT<hidden> Oct 28 14:56:04 ns6 dovecot: auth(default): passwd-file(health,71.162.15.2): lookup: user=health file=/home/dovecot.passwd Oct 28 14:56:04 ns6 dovecot: auth(default): client out: OK^I1^Iuser=health Oct 28 14:56:04 ns6 dovecot: auth(default): master in: REQUEST^I354^I7953^I1 Oct 28 14:56:04 ns6 dovecot: auth(default): passwd-file(health,71.162.15.2): lookup: user=health file=/home/dovecot.passwd Oct 28 14:56:04 ns6 dovecot: auth(default): master out: USER^I354^Ihealth^Iuid=1152^Igid=1152^Ihome=userdb_mail=maildir Oct 28 14:56:04 ns6 dovecot: pop3-login: Login: user=<health>, method=PLAIN, rip=71.162.15.2, lip=66.207.133.228 Oct 28 14:56:04 ns6 dovecot: POP3(health): Effective uid=1152, gid=1152 Oct 28 14:56:04 ns6 dovecot: POP3(health): mbox: data=~/mail:INBOX=/var/spool/mail/health Oct 28 14:56:04 ns6 dovecot: POP3(health): fs: root=userdb_mail=maildir/mail, index=, control=, inbox=/var/spool/mail/health Oct 28 14:56:05 ns6 dovecot: auth(default): new auth connection: pid=8987 Oct 28 14:56:06 ns6 dovecot: POP3(health): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
The /home/dovecot.passwd has the following.
more /home/dovecot.passwd health:$1$MCtvt/Tz$FmKqU/cbWlBhKnhc5W.Ko.:1152:1152:/home/health:userdb_mail=mai ldir:~/Maildir
WHY can I get the emails from ~health/Maildir/new ???
-- Albert E. Whale, CHS CISA CISSP Sr. Security, Network, Risk Assessment and Systems Consultant
ABS Computer Technology, Inc. http://www.ABS-CompTech.com - Email, Internet and Security Consultants SPAMZapper http://www.Spam-Zapper.com - No-JunkMail.com http://www.No-JunkMail.com - *True Spam Elimination*.
ns6.ABS-CompTech.com root [/root] dovecot -n # 1.1.4: /etc/dovecot.conf base_dir: /var/run/dovecot/ protocols: imap pop3 ssl_disable: yes disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable(default): /usr/libexec/dovecot/imap-login login_executable(imap): /usr/libexec/dovecot/imap-login login_executable(pop3): /usr/libexec/dovecot/pop3-login login_greeting: SpamZapper Email ready. mail_max_userip_connections(default): 10 mail_max_userip_connections(imap): 10 mail_max_userip_connections(pop3): 3 verbose_proctitle: yes mail_privileged_group: mail mail_location: mbox:~/mail:INBOX=/var/spool/mail/%u mail_debug: yes mmap_disable: yes mail_nfs_storage: yes mail_nfs_index: yes lock_method: dotlock mail_executable(default): /usr/libexec/dovecot/imap mail_executable(imap): /usr/libexec/dovecot/imap mail_executable(pop3): /usr/libexec/dovecot/pop3 mail_plugin_dir(default): /usr/lib/dovecot/imap mail_plugin_dir(imap): /usr/lib/dovecot/imap mail_plugin_dir(pop3): /usr/lib/dovecot/pop3 pop3_uidl_format(default): %08Xu%08Xv pop3_uidl_format(imap): %08Xu%08Xv pop3_uidl_format(pop3): %08Xv%08Xu auth default: username_format: %Lu verbose: yes debug: yes passdb: driver: passwd-file args: /home/dovecot.passwd passdb: driver: pam userdb: driver: passwd-file args: /home/dovecot.passwd userdb: driver: passwd
more /home/dovecot.passwd health:$1$MCtvt/Tz$FmKqU/cbWlBhKnhc5W.Ko.:1152:1152:/home/health:userdb_mail=mai ldir:~/Maildir
I guess you need two ':' between 1152 and /home/health and userdb_mail=maildir:~/Maildir
So the line should look like this:
health:$1$MCtvt/Tz$FmKqU/cbWlBhKnhc5W.Ko.:1152:1152::/home/health::userdb_mail=maildir:~/Maildir
e-frog wrote:
more /home/dovecot.passwd health:$1$MCtvt/Tz$FmKqU/cbWlBhKnhc5W.Ko.:1152:1152:/home/health:userdb_mail=mai
ldir:~/Maildir
I guess you need two ':' between 1152 and /home/health and userdb_mail=maildir:~/Maildir
So the line should look like this:
health:$1$MCtvt/Tz$FmKqU/cbWlBhKnhc5W.Ko.:1152:1152::/home/health::userdb_mail=maildir:~/Maildir
Great, I thank you, however that has not changed the communications at all.
Oct 28 16:42:17 ns6 dovecot: auth(default): client in: AUTH^I1^IPLAIN^Iservice=pop3^Ilip=66.207.133.228^Irip=71.162.15.2^Ilport=110^Irport=2635^Iresp=<hidden> Oct 28 16:42:17 ns6 dovecot: auth(default): client out: CONT^I1^I Oct 28 16:42:17 ns6 dovecot: auth(default): client in: CONT<hidden> Oct 28 16:42:17 ns6 dovecot: auth(default): passwd-file /home/dovecot.passwd: Read 1 users Oct 28 16:42:17 ns6 dovecot: auth(default): passwd-file(health,71.162.15.2): lookup: user=health file=/home/dovecot.passwd Oct 28 16:42:17 ns6 dovecot: auth(default): client out: OK^I1^Iuser=health^I~/Maildir= Oct 28 16:42:17 ns6 dovecot: auth(default): master in: REQUEST^I365^I27263^I1 Oct 28 16:42:17 ns6 dovecot: auth(default): passwd-file(health,71.162.15.2): lookup: user=health file=/home/dovecot.passwd Oct 28 16:42:17 ns6 dovecot: auth(default): master out: USER^I365^Ihealth^Iuid=1152^Igid=1152^Ihome=/home/health Oct 28 16:42:17 ns6 dovecot: pop3-login: Login: user=<health>, method=PLAIN, rip=71.162.15.2, lip=66.207.133.228 Oct 28 16:42:17 ns6 dovecot: POP3(health): Effective uid=1152, gid=1152 Oct 28 16:42:17 ns6 dovecot: POP3(health): mbox: data=~/mail:INBOX=/var/spool/mail/health Oct 28 16:42:17 ns6 dovecot: POP3(health): fs: root=/home/health/mail, index=, control=, inbox=/var/spool/mail/health Oct 28 16:42:17 ns6 dovecot: POP3(health): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0 Oct 28 16:42:17 ns6 dovecot: auth(default): new auth connection: pid=31252
-- Albert E. Whale, CHS CISA CISSP Sr. Security, Network, Risk Assessment and Systems Consultant
ABS Computer Technology, Inc. http://www.ABS-CompTech.com - Email, Internet and Security Consultants SPAMZapper http://www.Spam-Zapper.com - No-JunkMail.com http://www.No-JunkMail.com - *True Spam Elimination*.
e-frog wrote:
more /home/dovecot.passwd health:$1$MCtvt/Tz$FmKqU/cbWlBhKnhc5W.Ko.:1152:1152:/home/health:userdb_mail=mai
ldir:~/Maildir
I guess you need two ':' between 1152 and /home/health and userdb_mail=maildir:~/Maildir
So the line should look like this:
health:$1$MCtvt/Tz$FmKqU/cbWlBhKnhc5W.Ko.:1152:1152::/home/health::userdb_mail=maildir:~/Maildir
Thank you to everyone that responded to this posting. This issue is now resolved.
-- Albert E. Whale, CHS CISA CISSP Sr. Security, Network, Risk Assessment and Systems Consultant
ABS Computer Technology, Inc. http://www.ABS-CompTech.com - Email, Internet and Security Consultants SPAMZapper http://www.Spam-Zapper.com - No-JunkMail.com http://www.No-JunkMail.com - *True Spam Elimination*.
participants (3)
-
Albert E. Whale
-
e-frog
-
Timo Sirainen