View Full Version : [ubuntu] email server login!
August 10th, 2012, 06:44 PM
hi i need help with a dovecot imap server, i have set it up to receive mail for these 2 domains,
and both receiving mail fine for users.
but i just cant login to the server to view mail apart from the read user mail plugin on webmin.
i have set "Disallow plaintext authentication in non-SSL mode?" to NO
when i connect using mutt i get to password prompt and get login failed.
i have tried most of the auth methods e.g PAM, passwd, shadow. with no luck and cant seem to find any help elsewhere.
just ask what config files you would like to see as there seems to be a few for dovecot so not pasting them all here.
August 10th, 2012, 07:52 PM
Post the output of doveconf, as well as your .muttrc on the client-side.
(Also you should really not use webmin.)
August 10th, 2012, 08:38 PM
can't get text to stay in format sorry link to text file>
Not sure were the .muttrc file is.
August 10th, 2012, 08:59 PM
.muttrc is in your home directory, it is your personal mutt configuration file. If you have not modified it and are running on default settings, it's not surprising that you can't login. To login with IMAP+SSL you need something like
# Automatically log in to this mailbox at startup
# Define the = shortcut, and the entry point for the folder browser (c?)
# activate TLS if available on the server
# always use SSL when connecting to a server
# Don't wait to enter mailbox manually
# Automatically poll subscribed mailboxes for new mail (new in 1.5.11)
# Reduce polling frequency to a sane level
# And poll the current mailbox more often (not needed with IDLE in post 1.5.11)
# keep a cache of headers for faster loading (1.5.9+?)
# Display download progress every 5K
August 10th, 2012, 09:10 PM
what i really am trying to achieve is use that imap server with roundcube but as am having trouble accessing it via outlook, thunderBird i need to get this sorted first.
i dont really know what mutt is a just used it as a client to try connect to the server with
lee@Services:~$ sudo mutt -f imap://email@example.com
i dont know if mutt is meant to be configured for dovecot to work but i have had imap server working in the past
August 10th, 2012, 09:21 PM
It shouldn't matter which client you are experimenting with. Normally, if one client work, they all do. That said, mutt provides an easy way to test. Put what I pasted above in your ~/.muttrc (create it if it doesn't exist), change user/host and run just
August 10th, 2012, 09:28 PM
I have to leave, so here (http://paste.ubuntu.com/1139965/)'s a diff between my (working) doveconf and yours. (Red is yours, green is mine.)
Things that might be of interest are disable_plaintext_auth, mail_location and mail_privileged_group. In particular, you can disregard the SQL stuff since you don't use SQL authentication.
August 10th, 2012, 09:31 PM
ok thanks will have a look
August 11th, 2012, 01:36 AM
You don't need a mail client to test a plain-text IMAP connection; just use telnet:
$ telnet localhost 143
1 login username password
Either you'll get logged in or rejected. If you're rejected, look in /var/log/mail.log to see why. To logout enter the command "2 logout", then use Ctrl-] and "quit" to exit telnet.
August 11th, 2012, 02:38 PM
thanks i tried that and this is the error in mail.log
Aug 11 14:33:50 Services dovecot: imap-login: Aborted login (auth failed, 2 attempts): user=<l.jewitt>, method=PLAIN, rip=192.168.1.3, lip=192.168.1.3, TLS
August 11th, 2012, 03:13 PM
ok strange i can now login with outlook, thunderbird but not mutt.
well at least its working now think it was a mailbox location problem, i changed postfix to /maildir
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.