Issue connecting to dovecot from remote machine

Antoine Sirven antoine.sirven at riseup.net
Mon Feb 20 08:34:25 UTC 2017


Thanks for your reply Steffen.
Well I basically uninstalled everything and started from scratch. it now
works just fine. I guess I messed something up along the way the first
time. Thanks
Antoine

Le 20/02/2017 à 09:32, Steffen Kaiser a écrit :
> On Sat, 18 Feb 2017, Antoine Sirven wrote:
>
> > I've set up a postfix +dovecot configuration on my debian jessie.
> > But I have a connection issue. When I try to connect from thunderbird it
> > doesn not work. When I check out my debug logs I get :
> > auth-worker(22252): Info: pam(myuser,hostIP): pam_authenticate()
> > failed: Authentication failure (password mismatch?) (given password:
> > correctPassword)
>
> > Running doveadm auth test tells me I can authenticate with the same
> > password.
> > So I tried connecting via openssl.
> > When I connect from my local host, everything goes fine :
> > * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE
> > IDLE AUTH=PLAIN AUTH=LOGIN AUTH=CRAM-MD5] Dovecot ready.
> > a login myUser myPassword
> > a OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE
> > IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS
> > THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN
> > NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH
> > ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS SPECIAL-USE BINARY
> > MOVE] Logged in
>
>
> > But when I run the same thing from my remote laptop, I never get any
> > reply from the imap server. It's as if the request wasn't reaching the
> > server. Although I do get a first reply from the server, I just can't
> > log in.
> > * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE
> > IDLE AUTH=PLAIN AUTH=LOGIN AUTH=CRAM-MD5] Dovecot ready.
> > a login myUser myPassword
>
> > (... and then nothing...)
>
>
> I would:
>
> 1) sniff the connection on the mail server, if there is traffic after
> sending the login
>
> 2) test if you can log in locally while the remote connection hangs
>
> 3) does PAM performs some IP checks?
>
> -- Steffen Kaiser



More information about the dovecot mailing list