[Dovecot] Asked about Dovecot Logging
Dear Sirs,
I was able to migrate successfully from Courier-Imap to Dovecot, Timo I appreciate your help.
I have notices that the file /var/log/dovecot.log shows the following:
dovecot: Jun 23 15:04:05 Info: imap-login: Login: user=<dtoledo>, method=PLAIN, rip=172.16.10.15, lip=172.16.10.19 dovecot: Jun 23 15:04:06 Info: imap-login: Login: user=<abonilla>, method=PLAIN, rip=172.16.10.14, lip=172.16.10.19 dovecot: Jun 23 15:04:06 Info: IMAP(abonilla): Disconnected: Logged out bytes=59/566 dovecot: Jun 23 15:04:06 Info: imap-login: Login: user=<slopez>, method=PLAIN, rip=172.16.10.14, lip=172.16.10.19 dovecot: Jun 23 15:04:06 Info: IMAP(slopez): Disconnected: Logged out bytes=59/567 dovecot: Jun 23 15:04:06 Info: IMAP(dtoledo): Disconnected: Logged out bytes=1252/34481 dovecot: Jun 23 15:04:07 Info: imap-login: Login: user=<slopez>, method=PLAIN, rip=172.16.10.14, lip=172.16.10.19 dovecot: Jun 23 15:04:07 Info: IMAP(slopez): Disconnected: Logged out bytes=59/567 dovecot: Jun 23 15:04:07 Info: IMAP(framirez): Disconnected: Logged out bytes=1252/34041 dovecot: Jun 23 15:04:08 Info: imap-login: Login: user=<mgomez>, method=PLAIN, rip=172.16.10.14, lip=172.16.10.19 dovecot: Jun 23 15:04:10 Info: IMAP(mgomez): Disconnected: Logged out bytes=1805/66570 dovecot: Jun 23 15:04:13 Info: imap-login: Login: user=<curibe>, method=PLAIN, rip=172.16.10.14, lip=172.16.10.19 dovecot: Jun 23 15:04:15 Info: IMAP(curibe): Disconnected: Logged out bytes=749/351591
Given that there are several domains hosted on the server, how can I configure Dovecot to the log file shows the full user name.
Example:
user=user1@dominio1.com user=user2@dominio2.com
Thanks
Jose Luis
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us
On Tue, 2009-06-23 at 15:04 -0500, Jose Luis Marin Perez wrote:
Given that there are several domains hosted on the server, how can I configure Dovecot to the log file shows the full user name.
It does that. Which means the domain is dropped by your passdb or userdb lookup. Post your dovecot -n output and other passdb/userdb configuration files you may have?
Dear Timo,
Thanks for your reply
It's my dovecot -n output:
# 1.1.16: /usr/local/etc/dovecot.conf # OS: Linux 2.6.9-78.0.22.ELsmp i686 CentOS release 4.7 (Final) log_path: /var/log/dovecot.log protocols: imap listen: *:10143 ssl_disable: yes disable_plaintext_auth: no login_dir: /usr/local/var/run/dovecot/login login_executable: /usr/local/libexec/dovecot/imap-login first_valid_uid: 89 last_valid_uid: 89 first_valid_gid: 89 last_valid_gid: 89 mail_uid: 89 mail_gid: 89 mail_location: maildir:~/Maildir namespace: type: private separator: . prefix: INBOX. inbox: yes list: yes subscriptions: yes auth default: passdb: driver: checkpassword args: /usr/vpopmail/bin/vchkpw userdb: driver: prefetch args: uid=89 gid=89 home=/usr/vpopmail/domains/%d/%u
Thanks
Jose Luis
From: tss@iki.fi To: jolumape_al@hotmail.com Date: Tue, 23 Jun 2009 18:08:54 -0400 CC: dovecot@dovecot.org Subject: Re: [Dovecot] Asked about Dovecot Logging
On Tue, 2009-06-23 at 15:04 -0500, Jose Luis Marin Perez wrote:
Given that there are several domains hosted on the server, how can I configure Dovecot to the log file shows the full user name.
It does that. Which means the domain is dropped by your passdb or userdb lookup. Post your dovecot -n output and other passdb/userdb configuration files you may have?
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us
On Tue, 2009-06-23 at 17:16 -0500, Jose Luis Marin Perez wrote:
passdb: driver: checkpassword args: /usr/vpopmail/bin/vchkpw
It's vchkpw. You could work around it with something like:
args = /usr/vpopmail/bin/vchkpw /usr/local/bin/vchkpw-wrapper.sh
and the vchkpw-wrapper.sh would contain:
#!/bin/sh
unset USER exec $*
Hmm. Can you check if vchkpw returns the domain in some environment variable (temporarily add "set > /tmp/log" to the wrapper script)? If it does, I could change Dovecot to use it and this wrapper wouldn't be necessary.
Dear Timo,
Thanks for your response I will use the script you mention.
I have another query in the dovecot -n output displays a parameter which I have doubts:
args: uid = 89 gid = 89 home = /usr/vpopmail/domains/%d/%u
Some accounts created through vpopmail are in the directory:
/usr/vpopmail/domains/example.com/0/user10
/usr/vpopmail/domains/example.com/1/user20
there is a problem with this configuration because accounts are created in a subdirectory 0 or 1 within the domain example.com?
Thanks
Jose Luis
Subject: Re: [Dovecot] Asked about Dovecot Logging From: tss@iki.fi To: jolumape_al@hotmail.com CC: dovecot@dovecot.org Date: Tue, 23 Jun 2009 18:39:20 -0400
On Tue, 2009-06-23 at 17:16 -0500, Jose Luis Marin Perez wrote:
passdb: driver: checkpassword args: /usr/vpopmail/bin/vchkpw
It's vchkpw. You could work around it with something like:
args = /usr/vpopmail/bin/vchkpw /usr/local/bin/vchkpw-wrapper.sh
and the vchkpw-wrapper.sh would contain:
#!/bin/sh
unset USER exec $*
Hmm. Can you check if vchkpw returns the domain in some environment variable (temporarily add "set > /tmp/log" to the wrapper script)? If it does, I could change Dovecot to use it and this wrapper wouldn't be necessary.
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us
Dear Timo,
What is the difference between these options?
Thanks
Jose Luis
From: tss@iki.fi To: jolumape_al@hotmail.com Date: Wed, 24 Jun 2009 01:40:04 -0400 CC: dovecot@dovecot.org Subject: Re: [Dovecot] Asked about Dovecot Logging
On Jun 24, 2009, at 1:23 AM, Jose Luis Marin Perez wrote:
I have another query in the dovecot -n output displays a parameter which I have doubts:
args: uid = 89 gid = 89 home = /usr/vpopmail/domains/%d/%u
You should be using userdb prefetch, not userdb static.
Explore the seven wonders of the world http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE
With userdb prefetch you're using the uid, gid and home directory
given by vchkpw (when Dovecot did passdb lookup from it). With static
userdb you're using those static values that you manually specified.
On Jun 24, 2009, at 2:44 AM, Jose Luis Marin Perez wrote:
Dear Timo,
What is the difference between these options?
Thanks
Jose Luis
From: tss@iki.fi To: jolumape_al@hotmail.com Date: Wed, 24 Jun 2009 01:40:04 -0400 CC: dovecot@dovecot.org Subject: Re: [Dovecot] Asked about Dovecot Logging
On Jun 24, 2009, at 1:23 AM, Jose Luis Marin Perez wrote:
I have another query in the dovecot -n output displays a parameter which I have doubts:
args: uid = 89 gid = 89 home = /usr/vpopmail/domains/%d/%u
You should be using userdb prefetch, not userdb static.
Explore the seven wonders of the world http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE
Dear Timo
So no matter if the account has been created at any location within the domain example.com as these parameters are obtained from vchkpw?
According to your knowledge my configuration is correct?
userdb: driver: prefetch args: uid=89 gid=89 home=/usr/vpopmail/domains/%d/%u
Thanks
Jose Luis
From: tss@iki.fi To: jolumape_al@hotmail.com Date: Wed, 24 Jun 2009 03:11:05 -0400 CC: dovecot@dovecot.org Subject: Re: [Dovecot] Asked about Dovecot Logging
With userdb prefetch you're using the uid, gid and home directory given by vchkpw (when Dovecot did passdb lookup from it). With static userdb you're using those static values that you manually specified.
On Jun 24, 2009, at 2:44 AM, Jose Luis Marin Perez wrote:
Dear Timo,
What is the difference between these options?
Thanks
Jose Luis
From: tss@iki.fi To: jolumape_al@hotmail.com Date: Wed, 24 Jun 2009 01:40:04 -0400 CC: dovecot@dovecot.org Subject: Re: [Dovecot] Asked about Dovecot Logging
On Jun 24, 2009, at 1:23 AM, Jose Luis Marin Perez wrote:
I have another query in the dovecot -n output displays a parameter which I have doubts:
args: uid = 89 gid = 89 home = /usr/vpopmail/domains/%d/%u
You should be using userdb prefetch, not userdb static.
Explore the seven wonders of the world http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE
Connect to the next generation of MSN Messenger http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline
On Jun 24, 2009, at 3:24 AM, Jose Luis Marin Perez wrote:
So no matter if the account has been created at any location within
the domain example.com as these parameters are obtained from vchkpw?
Right.
According to your knowledge my configuration is correct?
userdb: driver: prefetch args: uid=89 gid=89 home=/usr/vpopmail/domains/%d/%u
Remove the args, they're ignored anyway and will just confuse in future.
participants (2)
-
Jose Luis Marin Perez
-
Timo Sirainen