Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to setup basic e-mail server just for me on my Ubuntu 12.04 following these guides.

I executed everything as it says in the tutorial. When I test with telnet from localhost everything seems fine, but when I try to connect with Thunderbird, it finds the settings automatically, even says that the certificate is invalid (which seems legit), but I get an error that my password is incorrect.

I can`t quite understand, is my mailbox linked with my linux account or I have to create a new user for this ? What can I do to see what the problem is ?

I have almost no idea what I am doing, so ... any help will be usefull.


share|improve this question

You can check authorization with doveadm command. Log in tou your mail server and type:

doveadm auth username

then enter the password. If no luck, try doveadm auth username@domain.tld - it depends on your setup.

If both commands fail, check if such user exist: doveadm user username or with domain.

If it fails too, the check your config files and lookups.

share|improve this answer
When I execute: doveadm auth username this is what I get: Password: doveadm(username): Error: auth: connect(/var/run/dovecot/auth-client) failed: Permission denied (euid=1000(username) egid=1000(username) missing +r perm: /var/run/dovecot/auth-client, dir owned by 0:0 mode=0755) Any ideas what this shoud mean ? – gotha Mar 18 '13 at 13:50
Okay, then run sudo chmod a+r /var/run/dovecot/auth-client and try one more time. If succeed, now you know the reason. And do not forget to tighten up the permissions of that file after that. – Gevial Mar 18 '13 at 13:54
When I execute this as root I get: doveadm(root): Error: auth: connect(/var/run/dovecot/auth-client) failed: Connection refused – gotha Mar 18 '13 at 13:56
Check if dovecot is running: /etc/init.d/dovecot status. If it is stopped, run: sudo /etc/init.d/dovecot start – Gevial Mar 18 '13 at 14:02
I changed all permissions, now when I try doveadm auth I see: passdb: gotha auth succeeded extra fields: user=gotha but the problem with Thunderbird remains. Anything else I may want to test ? – gotha Mar 18 '13 at 14:02

According to the documents you've followed, you've configured your server to use PAM for authentication, which means yes, your email accounts are connected to use local accounts.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.