[Dovecot] imap-login aborted login
Daminto Lie
dlie76 at yahoo.com.au
Tue Aug 16 10:05:35 EEST 2011
Thanks for your reply.
Now I can see more info after turning on all those debugs
Here it is
2011-08-16 16:16:53 dovecot: Warning: Killed with signal 15 (by pid=7250 uid=0 code=kill)
2011-08-16 16:16:53 dovecot: Info: Dovecot v1.2.9 starting up (core dumps disabled)
2011-08-16 16:16:54 auth(default): Info: new auth connection: pid=7259
2011-08-16 16:16:54 auth(default): Info: new auth connection: pid=7264
2011-08-16 16:16:54 auth(default): Info: new auth connection: pid=7263
2011-08-16 16:16:54 auth(default): Info: new auth connection: pid=7261
2011-08-16 16:16:54 auth(default): Info: new auth connection: pid=7262
2011-08-16 16:16:54 auth(default): Info: new auth connection: pid=7260
2011-08-16 16:18:14 auth(default): Info: client in: AUTH 1 PLAIN service=imap secured lip=127.0.0.1 rip=127.0.0.1 lport=143 rport=32973 resp=AGRsaWUAZGxpZTMyMDU=
2011-08-16 16:18:14 auth-worker(default): Info: pam(msmith,127.0.0.1): lookup service=dovecot
2011-08-16 16:18:14 auth-worker(default): Info: pam(msmith,127.0.0.1): #1/1 style=1 msg=Password:
2011-08-16 16:18:15 auth(default): Info: new auth connection: pid=7271
2011-08-16 16:18:16 auth-worker(default): Info: pam(msmith,127.0.0.1): pam_authenticate() failed: Authentication failure (password mismatch?) (given password: xxx)
2011-08-16 16:18:18 auth(default): Info: client out: FAIL 1 user=msmith
2011-08-16 16:18:23 imap-login: Info: Aborted login (auth failed, 1 attempts): user=<msmith>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Here is my dovecot.conf (Note: I have removed all the comments)
## Dovecot configuration file
protocols = imap imaps pop3 pop3s
listen = *
disable_plaintext_auth = no
log_path = /var/log/dovecot-deliver.log
info_log_path = /var/log/dovecot-deliver.log
log_timestamp = "%Y-%m-%d %H:%M:%S "
login_user = postfix
login_greeting = Dovecot IMAP server!
mail_location = maildir:~/Maildir
mail_privileged_group = mail
mail_debug = yes
verbose_proctitle = yes
protocol imap {
login_executable = /usr/lib/dovecot/imap-login
mail_executable = /usr/lib/dovecot/imap
imap_client_workarounds = outlook-idle delay-newmail netscape-eoh tb-extra-mailbox-sep
}
protocol pop3 {
pop3_uidl_format = %08Xu%08Xv
}
protocol managesieve {
}
protocol lda {
postmaster_address =
hostname = ubuntuserver
sendmail_path = /usr/lib/sendmail
rejection_subject = Rejected: %s
rejection_reason = Your message to <%t> was automatically rejected:%n%r
auth_socket_path = /var/run/dovecot/auth-master
}
auth_username_format = %Lu
auth_verbose = yes
auth_debug = yes
auth_debug_passwords = yes
auth default {
mechanisms = plain
passdb pam {
}
userdb passwd {
}
user = root
socket listen {
master {
path = /var/run/dovecot/auth-master
mode = 0660
user = mail
group = mail
}
client {
path = /var/spool/postfix/private/auth-client
mode = 0660
user = postfix
group = postfix
}
}
!include_try /etc/dovecot/auth.d/*.auth
}
dict {
}
plugin {
}
# Config files can also be included. deliver doesn't support them currently.
#!include /etc/dovecot/conf.d/*.conf
# Optional configurations, don't give an error if it's not found:
!include_try /etc/dovecot/conf.d/*.conf
#!include_try /etc/dovecot/extra.conf
I think the issue is with PAM authentication. How do I configure the PAM authentication?
Any help would be much appreciated.
Thank you
________________________________
From: CopalFreak <copalfreak at gmail.com>
To: Daminto Lie <dlie76 at yahoo.com.au>
Sent: Tuesday, 16 August 2011 3:39 PM
Subject: Re: [Dovecot] imap-login aborted login
You might try turning on the various DEBUG modes in Dovecot.
In your dovecot.conf file :
Something like this :
-------------------------------------
auth_debug = yes
auth_debug_passwords = yes
auth_verbose - yes
verbose_proctitle = yes
mail_debug = yes
log_path = /var/log/dovecot.log
info_log_path = /var/log/dovecot-deliver.log
-------------------------------------
After edit, restart dovecot.
Then tail your log (tail -f /var/log/dovecot-deliver.log) while
attempting to check mail.
You should see a bit more info that might help.
(be sure to turn it all back off. it will sometimes log the passwords
and when using plaintext, thats bad.)
Hope this helps,
-=*CopalFreak*=-
On 8/16/2011 12:19 AM, Daminto Lie wrote:
> Hi,
>
> I have been trying to set up Apache2, Postfix, Dovecot, openLDAP and squirrelmail on my Ubuntu Server 10.04 machine. The idea is to make use of the LDAP to authenticate users to login to squirrelmail to send/receive emails.
>
> I have been using the link - https://help.ubuntu.com/community/Postfix/DovecotLDAP, as a guide to get it all set up. I have checked the status for postfix and dovecot, and they both are up and running by using telnet. I have even installed openldapadmin to check and see if I've got the ldap working. I could login to openldapadmin and saw myself there with uid=msmith.
>
> I have also installed squirrelmail as my webmail. After all that installed, I went to localhost/squirrelmail on the firefox browser. It would not log me in.
>
> Later I found in the /var/log/dovecot-deliver.log file, I saw the following messages
> dovecot: Info: Dovecot v1.2.9 starting up (core dumps disabled)
> imap-login: Info: Aborted login (auth failed, 1 attempts): user=<msmith>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
> imap-login: Info: Aborted login (auth failed, 1 attempts):
> user=<msmith at mycompany.com.au>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
>
> imap-login: Info: Aborted login (auth failed, 1 attempts):
> user=<mike.smith at mycompany.com.au>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
>
> I tried to login with three different usernames but none worked as shown above in the log file. I wonder if it is to do with method=PLAIN and secured.
>
> Any help would be greatly appreciated.
>
> Thank you
>
More information about the dovecot
mailing list