Hi, I'm using dovecot with a passdb-file . When I login using : test at 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 at 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 at 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 at testdomain.com Can someone enlighten me on how to config it so he looks up "test at testdomain.com" fully ? thx
ben <mailing at gigaspeeds.be> wrote:> I'm using dovecot with a passdb-file . > > When I login using : test at 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 at 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 at 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 at testdomain.com > > Can someone enlighten me on how to config it so he looks up > "test at 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 at 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
On Sat, 2009-02-21 at 12:23 +0100, ben wrote:> I'm using dovecot with a passdb-file . > > When I login using : test at 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. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20090221/e6f52908/attachment-0002.bin>
Hi, tried %Lu, dovecot seems to still strip of the domain part before looking it up in dovecot.passwd... : dovecot.passwd : --------------- test at 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 at 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 at itux.be,195.0.10.8): unknown user dovecot: Feb 22 09:48:43 Info: auth(default): client out: FAIL 1 user=test at 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 at 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 at 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 at testdomain.com > > > > Can someone enlighten me on how to config it so he looks up > > "test at 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 >