Cannot Login to Email externally

Hi there

I have performed a standard Virtualmin installation, insofar as I have not changed any configurations with regards email etc.

I can send and receive perfectly from within Usermin, but when I try to access the account from within Gmail - I get the following error:

Server denied POP3 access for the given username and password. Server returned error: "Plaintext authentication disallowed on non-secure (SSL/TLS) connections."

I am using the same credentials that I use to login to Usermin, the mailserver responds to pings and I am using port 110

I checked the Dovecot configuration and disable plain text is set to no

Any help would be greatfully recieved, this is basically the only thing stopping me adding more domains and going fully live.

Thanks

Status: 
Closed (fixed)

Comments

Howdy -- what output do you receive if you run this command:

dovecot -n

Hi

I get the following:

root@ns1:~# dovecot -n
# 1.2.15: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-5-amd64 x86_64 Debian 6.0.5
log_timestamp: %Y-%m-%d %H:%M:%S
protocols: imap imaps pop3 pop3s
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(pop3): /usr/lib/dovecot/pop3-login
mail_privileged_group: mail
mail_location: maildir:~/Maildir
mbox_write_locks: fcntl dotlock
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(pop3): /usr/lib/dovecot/pop3
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3
auth default:
  passdb:
    driver: pam
  userdb:
    driver: passwd

Thanks

Well, the error definitely points to an issue with the "disable_plaintext_auth" setting, but "dovecot -n" shows that as correctly set.

The one other thing I can think of is that the setting may not be active for some reason. What happens if you give Dovecot a restart:

/etc/init.d/dovecot restart

After that, are you able to log in?

Thank you very much for solving this for me :)

Restarting Dovecot worked, although I am not sure why. That setting was already set from the installation...I didn't set anything. Mind you, I haven't restarted the box since everything completed.

Quick additional question, can I use my existing settings for SMTP aswell?

Same mail server but port 25 and using TLS?

Thanks again

SMTP on port 25 would typically be plain-text -- but you could use TLS on port 587. Either of those settings should work.

If you have any questions on that, let us know!

Excellent - Thank you very much for your help