[Dovecot] dovecot auth

ben mailing at gigaspeeds.be
Sun Feb 22 10:52:46 EET 2009


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
> 



More information about the dovecot mailing list