Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

 USER name@domain.com

or doesn't it matter?

Thanks,

Joe

share|improve this question
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.