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'm having some mail issues which I'm trying to resolve. When I connect to my mail server using telnet should I supply my username like this:

 USER name



or doesn't it matter?



share|improve this question
up vote 1 down vote accepted

It depends on your configuration. If you are delivering mail to people who have shell accounts, you must specify the username, and not the email address (the domain is implied, and dovecot won't know what to do with it).

If you are delivering mail to virtual mailbox users, and the virtual mailboxes are mapped using the full email address, you need to give the email address there. It all depends on how you've mapped it.

I have a setup where some users have their unix username as their login (as they have shell accounts) and others, on some hosted domains, use their email address. These configuration directives make it recognize unix usernames:

passdb {
  args = *
  driver = pam
userdb {
  args = home=/home/%u/.maildir mail=/home/%u/.maildir
  driver = passwd

These make it pull the email address and password out of an SQL database, and then find the mailbox for the username in the filesystem:

passdb {
  args = /etc/dovecot/dovecot-sql.conf
  driver = sql
userdb {
  args = uid=207 gid=207 home=/home/postfix/%u mail=/home/postfix/%u/ nice=10
  driver = static

It's quite flexible. dovecot-sql.conf is a file specifying a query to do, what password scheme to use, and DB credentials. I somehow suspect, though, that you're using the former method.

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.