Wayne Carrel
2020-Dec-24  23:56 UTC
IMAP from localhost (Squirrelmail) works, IMAP from remote (Outlook) does not authenticate
I have been struggling with this for some time now. I have searched, tried,
broke it, fixed it, and still no luck. Will somebody please help me see what is
wrong?
 
[root at mail ~]# dovecot --version
2.2.36 (1f10bfa63)
 
[root at mail ~]# dovecot -n
# 2.2.36 (1f10bfa63): /etc/dovecot/dovecot.conf
# OS: Linux 3.10.0-1160.2.2.el7.x86_64 x86_64 CentOS Linux release 7.9.2009
(Core)
# Hostname: mail.mydomainname.com
auth_mechanisms = plain login
disable_plaintext_auth = no
first_valid_uid = 1000
mail_location = maildir:~/Maildir
mbox_write_locks = fcntl
namespace inbox {
  inbox = yes
  location 
  mailbox Drafts {
    special_use = \Drafts
  }
  mailbox Junk {
    special_use = \Junk
  }
  mailbox Sent {
    special_use = \Sent
  }
  mailbox "Sent Messages" {
    special_use = \Sent
  }
  mailbox Trash {
    special_use = \Trash
  }
  prefix 
}
passdb {
  driver = pam
}
service auth {
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0666
    user = postfix
  }
  unix_listener auth-userdb {
    group = postfix
    user = postfix
  }
}
service imap-login {
  inet_listener imap {
    port = 143
  }
  inet_listener imaps {
    port = 993
    ssl = yes
  }
}
ssl_cert = </etc/pki/dovecot/certs/dovecot.pem
ssl_key =  # hidden, use -P to show it
userdb {
  driver = passwd
}
 
>From maillog:
(Successful login from localhost via squirrel mail)
Dec 24 16:14:19 mail dovecot: imap-login: Login: user=<terry>,
method=PLAIN, rip=::1, lip=::1, mpid=2279, secured,
session=<CJKj9z23kN0AAAAAAAAAAAAAAAAAAAAB>
 
(Unsuccessful login from remote ip via Outlook)
Dec 24 16:13:53 mail dovecot: imap-login: Disconnected (auth failed, 1 attempts
in 4 secs): user=<terry at mydomainname.com>, method=PLAIN,
rip=75.xx.xx.xx, lip=198.xx.xx.xx, session=<1s/i9T23yspLRsWA>
 
I would be most grateful for any assistance anyone can provide -- my head is
sore from beating against the wall! ?
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<https://dovecot.org/pipermail/dovecot/attachments/20201224/dc3394cd/attachment.html>
Robert L Mathews
2020-Dec-25  00:31 UTC
IMAP from localhost (Squirrelmail) works, IMAP from remote (Outlook) does not authenticate
On 12/24/20 3:56 PM, Wayne Carrel wrote:> From maillog: > > (Successful login from localhost via squirrel mail) > > Dec 24 16:14:19 mail dovecot: imap-login: Login: user=<terry>, > method=PLAIN, rip=::1, lip=::1, mpid=2279, secured, > session=<CJKj9z23kN0AAAAAAAAAAAAAAAAAAAAB> > > (Unsuccessful login from remote ip via Outlook) > > Dec 24 16:13:53 mail dovecot: imap-login: Disconnected (auth failed, 1 > attempts in 4 secs): user=<terry at mydomainname.com>, method=PLAIN, > rip=75.xx.xx.xx, lip=198.xx.xx.xx, session=<1s/i9T23yspLRsWA>The username is different. Squirrelmail is using username "terry"; Outlook is using "terry at mydomainname.com". -- Robert L Mathews, Tiger Technologies, http://www.tigertech.net/
Benny Pedersen
2020-Dec-25  02:13 UTC
IMAP from localhost (Squirrelmail) works, IMAP from remote (Outlook) does not authenticate
On 2020-12-25 00:56, Wayne Carrel wrote:> I would be most grateful for any assistance anyone can provide -- my > head is sore from beating against the wall! ?you miss to configure auth_default_realm in dovecot and same in squirrelmail, it must be same domain in both dovecot and squirrelmail if this is done you will only login to squirrelmail with full email address !