Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 31st March 2012, 00:21
muflix muflix is offline
Junior Member
 
Join Date: Sep 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Dovecot - telnet Authentication Failed

Hello i have a problem with Authentication:

Dovecot verison: 2.0.18
Debian 6 squeeze

# telnet localhost 143
Code:
...
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE
IDLE STARTTLS AUTH=PLAIN] Dovecot ready.
1 login Administrator@mydomain.cz 123456aB
* OK Waiting for authentication process to respond..
1 NO [AUTHENTICATIONFAILED] Authentication failed.
* BYE Disconnected for inactivity.
Connection closed by foreign host.
/var/log/dovecot.message
Code:
2012-03-30 22:45:03 imap-login: Info: Disconnected: Inactivity (auth
failed, 1 attempts): user=<Administrator@mydomain.cz>, method=PLAIN,
rip=127.0.0.1, lip=127.0.0.1, secured
# 2.0.18: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-5-amd64 x86_64 Debian 6.0.4 ext3
Code:
disable_plaintext_auth = no
log_path = /var/log/dovecot.message
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_location = maildir:/var/mail/%u
mail_privileged_group = mail
passdb {
  args = /etc/dovecot/dovecot-ldap.conf
  driver = ldap
}
passdb {
  driver = pam
}
protocols = imap
service auth {
  unix_listener auth-master {
    group = vmail
    mode = 0600
    user = vmail
  }
  unix_listener auth-userdb {
    user = vmail
  }
  user = root
}
ssl_cert = </etc/ssl/certs/dovecot.pem
ssl_key = </etc/ssl/private/dovecot.pem
userdb {
  args = /etc/dovecot/dovecot-ldap.conf
  driver = ldap
}
userdb {
  driver = passwd
}
protocol lda {
  hostname = oc.test
  log_path = /var/log/dovecot.message
  postmaster_address = postmaster@oc.test
}
protocol pop3 {
  pop3_uidl_format = %08Xu%08Xv
}


# /etc/dovecot/dovecot-ldap.conf
Code:
hosts = 192.168.0.10:389
dn = cn=Administrator,cn=Users,dc=mydomain,dc=cz
dnpass = 123456aB
tls = no
ldap_version = 3
base = dc=mydomain,dc=cz
scope = subtree
user_attrs = sAMAccountName=home=/var/vmail/mydomain.cz/%$
user_filter =
(&(sAMAccountName=%Ln)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))
pass_filter =
(&(sAMAccountName=%Ln)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))

# cat /etc/hostname
mailsrv
# cat /etc/hosts
127.0.0.1 mydomain.cz mailsrv.mydomain.cz
...

# in /etc/passwd i have:
mail:x:8:8:mail:/var/mail:/bin/sh
vmail:x:5000:5000::/var/mail:/bin/sh

on 192.168.0.10:389 : im using windows Active Directory with default
settings, user accounts are in Organization Unit named Users (i didnt
specify mail adresses in AD, hope its not mistake)

please help, thank you
Reply With Quote
Sponsored Links
  #2  
Old 4th April 2012, 15:53
muflix muflix is offline
Junior Member
 
Join Date: Sep 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

okay, i changed to cyrus and it works now.. i think maybe was mistake in
user_attrs = sAMAccountName=home=/var/vmail/mydomain.cz/%$
or
(&(sAMAccountName=%Ln)(!(userAccountControl:1.2.84 0.113556.1.4.803:=2)))
line. thx
Reply With Quote
Reply

Bookmarks

Tags
dovecot auth failed

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig3 won't start after update Cracklefish Installation/Configuration 15 28th February 2012 15:11
Need help with ISPConfig Mail and Squirrelmail m.xander Installation/Configuration 109 3rd February 2012 01:15
strange fail2ban behaviour > doesn't ban specific IP Djamu Server Operation 2 13th January 2012 03:29
Postfix can't received email from exterior astra2000 Server Operation 5 18th October 2009 00:26
Systemimager (rsync) doesn't copy all comedit HOWTO-Related Questions 11 19th January 2007 18:17


All times are GMT +2. The time now is 19:04.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.