Simplest Dovecot Web-based Mailbox Management

I initially had a lot of hard time searching for admin interface to manage dovecot mailbox and user accounts, but finally found a solution. It was the simplest and quickest by my googled research.

Logging it for future reference.

11 Install Dovecot

Dovecot can be installed as follows:

yum install dovecot dovecot-mysql

Now create the system startup links and start Dovecot:

chkconfig –levels 235 dovecot on
/etc/init.d/dovecot start

12 Install Postfix

Postfix can be installed as follows:

yum install postfix

Then turn off Sendmail and start Postfix:

chkconfig –levels 235 sendmail off
chkconfig –levels 235 postfix on
/etc/init.d/sendmail stop
/etc/init.d/postfix restart

This will setup the server. And finally the magical tool was ISPConfig.

After installation, it was really very simple to add domain, then mailbox and then connect from outlook express, without going in dovecot-mysql detailed configuration. See attached screenshot for more.


In this setup, i got stucked at 3 places. Actually i didn’t followed complete walkthrough instead installed postfix, dovecot+dovecot_mysql, ispconfig.

1) Postfix mail  receiving issue, warning: do not list domain in BOTH mydestination and virtual_mailbox_domains

It started fetching mailbox folders but was receiving any emails. In logs it shows

Nov 24 06:16:34 domain postfix/trivial-rewrite[31898]: warning: do not list domain in BOTH mydestination and virtual_mailbox_domains
Nov 24 06:16:34 domain dovecot: imap-login: Login: user=<>, method=PLAIN, rip=, lip=, mpid=31910, TLS
Nov 24 06:16:34 domain postfix/local[31908]: 93C3F316800D: to=<>, orig_to=<>, relay=local, delay=0.22, delays=0.12/0.05/0/0.06, dsn=2.0.0, status=sent (delivered to mailbox)


Added subdomain in /etc/hosts and /etc/postfix/

mydestination =, ……

The hostname defined in of postfix should not be your, instead some sub domain e.g.

2) Postfix was not sending emails giving error in /var/log/maillog : (delivery temporarily suspended: connect to[]:10024: Connection refused)

Solution: There were many solutions on web, but case was i didn’t installed ‘amavisd’ from walk through and it was preset in ISPConfig postfix config Commented it’s filter and Postfix SMTP also worked.

#content_filter = amavis:[]:10024
content_filter =

Another solution could be properly follow walk through and install this anti-spam tool as mentioned here:

3) Config issues in “atmail” web client

I also setup “atmail” from sourceforge. It crashed just after installation on first page causing blank modal login window.

I check firebug->ajax response, and it was 500 server error. Debugged code and found it’s PHP new version ‘deprecated’ warning issue, which forcefully terminate script. So i turned on error_reporting in header.php. List the files causing deprecated warning and replace them using vim command.

:%s/= &/= /g  <—- this one with space after =

It resolved the deprecated warning issue.

Next issue was with libs/IMAP_Client.php. In new php version ‘namespace’ is a keyword but in this lib, it was named as a class->function. So renamed it and calling and definition places, and finally it worked.

Pretty unique cases, very hard to google. It burnt almost my half night sleep (of 9th muharram, nov 23-24, 2012)

Hope it help.

Posted in Uncategorized. Leave a Comment »

Share your thoughts & feedback

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: