Dovecot virtual domain problem

jmandrak

New member
Joined
Dec 4, 2007
Messages
3
I am configuring a postfix/dovecot multiple virtual domain instalation.

Postfix installation is complete and working.
Dovecot is giving me a big headache.
I'm using passwd-file for authentication. Each domain passwd file is located on a directory by domain name.

Now here is the problem: I can't login to either pop or imap. It seems my install is not recognizing the domain part of the login passed.

The logs says:
Code:
dovecot: Dec 04 06:01:30 Info: auth(default): client in: AUTH   1       PLAIN  service=POP3     lip=74.52.87.130        rip=200.206.221.63      resp=AGJvdW5jZUBlZmx5ZXJzLmNvb2xtYWdhemluZS5jb20uYnIAYm91OTluY2UxMg==
dovecot: Dec 04 06:01:30 Info: auth(default): passwd-file(bounce,200.206.221.63): [U]no passwd file[/U]
dovecot: Dec 04 06:01:31 Info: auth(default): client out: FAIL  1       user=bounce
dovecot: Dec 04 06:01:33 Info: pop3-login: Aborted login: user=<bounce>, method=PLAIN, rip=200.206.221.63, lip=74.52.87.130

It should be trying to read /etc/dovecot/<<some_domain_here>>/users.db
I have tryed both settings for passwd-file /etc/dovecot/%0.d/users.db and /etc/dovecot/%d/users.db but no lucky. The files are there and they are readable by everyone.

Here is my config:
Dovecot version 1.0.rc15 installed from CentOS yum
Code:
# /etc/dovecot.conf
IEffective uid=65534, gid=65534
ILoading modules from directory: /usr/lib/dovecot/imap
IModule loaded: /usr/lib/dovecot/imap/lib01_quota_plugin.so
IModule loaded: /usr/lib/dovecot/imap/lib02_imap_quota_plugin.so
log_path: /var/log/dovecot.log
info_log_path: /var/log/dovecot-info.log
protocols: imap pop3
listen(default): *:143
listen(imap): *:143
listen(pop3): *:110
ssl_disable: yes
login_dir: /var/run/dovecot/login
login_executable(default): /usr/libexec/dovecot/imap-login
login_executable(imap): /usr/libexec/dovecot/imap-login
login_executable(pop3): /usr/libexec/dovecot/pop3-login
mail_location: maildir:/home/domainMail/%d/%n
mail_debug: yes
mail_executable(default): /usr/libexec/dovecot/imap
mail_executable(imap): /usr/libexec/dovecot/imap
mail_executable(pop3): /usr/libexec/dovecot/pop3
mail_plugins(default): quota imap_quota
mail_plugins(imap): quota imap_quota
mail_plugins(pop3): quota
mail_plugin_dir(default): /usr/lib/dovecot/imap
mail_plugin_dir(imap): /usr/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/pop3
auth default:
  mechanisms: plain login digest-md5
  username_format: %n
  verbose: yes
  debug: yes
  debug_passwords: yes
  passdb:
    driver: passwd-file
    args: /etc/dovecot/%0.d/users.db
  userdb:
    driver: static
    args: uid=vmail gid=vmail home=/home/domainMail/%d/%n
  socket:
    type: listen
    client:
      path: /var/spool/postfix/private/auth
      mode: 432
      user: postfix
      group: postfix
    master:
 
Problem solved

Just in case someone else come into this problem...

I had username_format: %n on my dovecot.conf file.
I have changed it to username_format: %n@%d and all is working correctly now.

Best luck you all!
 
I've moved this thread to Off-Topic Discussion because, though it may be valuable to someone, this is a DirectAdmin forum, and DirectAdmin doesn't use Postfix.

Jeff
 
Although I respect your decision, I disagree with it. The postfix part is not the important part of the post, and is mentioned only as being working in harmony with dovecot...

The problem was entirely related to dovecot, no matter the MTA used.
 
I don't have a username_format setting in any of my dovecot.conf files on DirectAdmin and yet it still works as it should.

So the problem, related to Dovecot, doesn't seem to be related to DirectAdmin's use of Dovecot.

Or do you see something I don't?

Jeff
 
dovecot imap config file settings

When I installed the direct admin dovecot it wrote a dovecot config file in /etc/dovecot.conf.

But now I see that the directadmin Exim saves virtual mailboxes in an IMAP folder and the default is to use imapd through inetd.

But if I want to use dovecot as the IMAP server what settings should I use?

The default /etc/dovecot.conf file has all the IMAP settings commented out.

What are the imap settings for dovecot to work with directadmin?

This may need it's own thread so I'll go start a new one in the email area over here: http://www.directadmin.com/forum/showthread.php?t=23305
 
Last edited:
Back
Top