[Dovecot] dovecot auth
Hi,
I'm using dovecot with a passdb-file .
When I login using : test@testdomain.com I notice dovecot strips off the domainname and looks up everything in front of the @ in his passdb-file...
So I went on to configure the following in my dovecot.conf :
auth_username_format = %u@%d
restarted dovecot, but he still strips of the @ and the domainname ...
LOG (sorry for f* up format) :
dovecot: Feb 21 12:15:08 Info: auth(default): new auth connection: pid=24483 dovecot: Feb 21 12:15:12 Info: auth(default): client in: AUTH 1 PLAIN service=pop3 lip=195.207.136.102 rip=195.207.136.108 lport=110 rport=36132 resp=AGJlbkBpdHV4LmJlAHRlc3QxMjMu dovecot: Feb 21 12:15:12 Info: auth(default): passwd-file(test@testdomain.com@testdomain.com,195.207.136.108): lookup: user=test file=/opt/dovecot/etc/dovecot.passwd dovecot: Feb 21 12:15:12 Info: auth(default): passwd-file(test@testdomain.com@testdomain.com,195.207.136.108): unknown user dovecot: Feb 21 12:15:14 Info: auth(default): client out: FAIL 1 user=test@testdomain.com
Can someone enlighten me on how to config it so he looks up "test@testdomain.com" fully ?
thx
ben <mailing@gigaspeeds.be> wrote:
I'm using dovecot with a passdb-file .
When I login using : test@testdomain.com I notice dovecot strips off the domainname and looks up everything in front of the @ in his passdb-file...
So I went on to configure the following in my dovecot.conf :
auth_username_format = %u@%d
restarted dovecot, but he still strips of the @ and the domainname ...
LOG (sorry for f* up format) :
dovecot: Feb 21 12:15:08 Info: auth(default): new auth connection: pid=24483 dovecot: Feb 21 12:15:12 Info: auth(default): client in: AUTH 1 PLAIN service=pop3 lip=195.207.136.102 rip=195.207.136.108 lport=110 rport=36132 resp=AGJlbkBpdHV4LmJlAHRlc3QxMjMu dovecot: Feb 21 12:15:12 Info: auth(default): passwd-file(test@testdomain.com@testdomain.com,195.207.136.108): lookup: user=test file=/opt/dovecot/etc/dovecot.passwd dovecot: Feb 21 12:15:12 Info: auth(default): passwd-file(test@testdomain.com@testdomain.com,195.207.136.108): unknown user dovecot: Feb 21 12:15:14 Info: auth(default): client out: FAIL 1 user=test@testdomain.com
Can someone enlighten me on how to config it so he looks up "test@testdomain.com" fully ?
Try: auth_username_format = %Lu
[ %Lu - %u turned to lowercase ] %u@%d you have used produced "double domain" so try it without trailing "@%d".
URL(s): http://wiki.dovecot.org/MainConfig
-- [pl>en: Andrew] Andrzej Adam Filip : anfi@onet.eu Genius doesn't work on an assembly line basis. You can't simply say, "Today I will be brilliant." -- Kirk, "The Ultimate Computer", stardate 4731.3
Hi,
tried %Lu, dovecot seems to still strip of the domain part before looking it up in dovecot.passwd... :
dovecot.passwd :
test@testdomain.com:{plain}test123.:8:12::/opt/storage/mbox/bb107608::
dovecot -n
# OS: Linux 2.6.24.5-smp i686 Slackware 12.1.0 base_dir: /var/run/dovecot/ log_path: /var/log/dovecot/log protocols: pop3 ssl_disable: yes disable_plaintext_auth: no login_dir: /var/run/dovecot//login login_executable: /opt/dovecot/libexec/dovecot/pop3-login first_valid_uid: 8 first_valid_gid: 12 mail_uid: 8 mail_gid: 12 mail_location: maildir:~/Maildir mail_executable: /opt/dovecot/libexec/dovecot/pop3 mail_plugins: quota mail_plugin_dir: /opt/dovecot/lib/dovecot/pop3 auth default: mechanisms: plain login apop executable: /opt/dovecot/libexec/dovecot/dovecot-auth user: mail username_format: %Lu verbose: yes debug: yes debug_passwords: yes passdb: driver: passwd-file args: scheme=plain username_format=% n /opt/dovecot/etc/dovecot.passwd userdb: driver: passwd-file args: username_format=%n /opt/dovecot/etc/dovecot.passwd socket: type: listen master: path: /var/run/dovecot/auth-master mode: 384 user: mail group: mail
/var/log/dovecot/log :
dovecot: Feb 22 09:48:22 Info: auth(default): new auth connection: pid=25113 dovecot: Feb 22 09:48:41 Info: auth(default): client in: AUTH 1 PLAIN service=pop3 lip=195.207.136.102 rip=195.0.10.8 lport=110 rport=35153 resp=AGJlbkBpdHV4LmJlAHRlc3QxMjMu dovecot: Feb 22 09:48:41 Info: auth(default): passwd-file(ben@itux.be,195.0.10.8): lookup: user=test file=/opt/dovecot/etc/dovecot.passwd dovecot: Feb 22 09:48:41 Info: auth(default): passwd-file(ben@itux.be,195.0.10.8): unknown user dovecot: Feb 22 09:48:43 Info: auth(default): client out: FAIL 1 user=test@testdomain.com
So I went on to configure the following in my dovecot.conf :
auth_username_format = %u@%d
restarted dovecot, but he still strips of the @ and the domainname ...
LOG (sorry for f* up format) :
dovecot: Feb 21 12:15:08 Info: auth(default): new auth connection: pid=24483 dovecot: Feb 21 12:15:12 Info: auth(default): client in: AUTH 1 PLAIN service=pop3 lip=195.207.136.102 rip=195.207.136.108 lport=110 rport=36132 resp=AGJlbkBpdHV4LmJlAHRlc3QxMjMu dovecot: Feb 21 12:15:12 Info: auth(default): passwd-file(test@testdomain.com@testdomain.com,195.207.136.108): lookup: user=test file=/opt/dovecot/etc/dovecot.passwd dovecot: Feb 21 12:15:12 Info: auth(default): passwd-file(test@testdomain.com@testdomain.com,195.207.136.108): unknown user dovecot: Feb 21 12:15:14 Info: auth(default): client out: FAIL 1 user=test@testdomain.com
Can someone enlighten me on how to config it so he looks up "test@testdomain.com" fully ?
Try: auth_username_format = %Lu
[ %Lu - %u turned to lowercase ] %u@%d you have used produced "double domain" so try it without trailing "@%d".
ben <mailing@gigaspeeds.be> wrote:
tried %Lu, dovecot seems to still strip of the domain part before looking it up in dovecot.passwd... :
dovecot.passwd :
test@testdomain.com:{plain}test123.:8:12::/opt/storage/mbox/bb107608::
dovecot -n
# OS: Linux 2.6.24.5-smp i686 Slackware 12.1.0 [...] auth default: mechanisms: plain login apop executable: /opt/dovecot/libexec/dovecot/dovecot-auth user: mail username_format: %Lu verbose: yes debug: yes debug_passwords: yes passdb: driver: passwd-file args: scheme=plain username_format=%n /opt/dovecot/etc/dovecot.passwd userdb: driver: passwd-file args: username_format=%n /opt/dovecot/etc/dovecot.passwd socket: type: listen master: path: /var/run/dovecot/auth-master mode: 384 user: mail group: mail [...]
Have you tried to change username_format for passdb and userdb *TOO*? You seem to overwrite "global default" in "sub sections". They both are set to %n - username with stripped domain.
URL(s): http://wiki.dovecot.org/AuthDatabase/PasswdFile
P.S. My experience with dovecot is limited so treat my replies as guesses based of "general email experience".
-- [pl>en: Andrew] Andrzej Adam Filip : anfi@onet.eu Never have children, only grandchildren. -- Gore Vidal
You were right... I changed the %n to %Lu in the passdb file scheme and everything is working now :-)
thx a lot
On Sun, 2009-02-22 at 13:42 +0100, Andrzej Adam Filip wrote:
ben <mailing@gigaspeeds.be> wrote:
tried %Lu, dovecot seems to still strip of the domain part before looking it up in dovecot.passwd... :
dovecot.passwd :
test@testdomain.com:{plain}test123.:8:12::/opt/storage/mbox/bb107608::
dovecot -n
# OS: Linux 2.6.24.5-smp i686 Slackware 12.1.0 [...] auth default: mechanisms: plain login apop executable: /opt/dovecot/libexec/dovecot/dovecot-auth user: mail username_format: %Lu verbose: yes debug: yes debug_passwords: yes passdb: driver: passwd-file args: scheme=plain username_format=%n /opt/dovecot/etc/dovecot.passwd userdb: driver: passwd-file args: username_format=%n /opt/dovecot/etc/dovecot.passwd socket: type: listen master: path: /var/run/dovecot/auth-master mode: 384 user: mail group: mail [...]
Have you tried to change username_format for passdb and userdb *TOO*? You seem to overwrite "global default" in "sub sections". They both are set to %n - username with stripped domain.
URL(s): http://wiki.dovecot.org/AuthDatabase/PasswdFile
P.S. My experience with dovecot is limited so treat my replies as guesses based of "general email experience".
On Sat, 2009-02-21 at 12:23 +0100, ben wrote:
I'm using dovecot with a passdb-file .
When I login using : test@testdomain.com I notice dovecot strips off the domainname and looks up everything in front of the @ in his passdb-file...
There are several possibilities. Show your dovecot -n output so I don't have to guess.
participants (3)
-
Andrzej Adam Filip
-
ben
-
Timo Sirainen