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.

http://www.howtoforge.com/perfect-server-centos-6.3-x86_64-nginx-dovecot-ispconfig-3-p4

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.

http://www.howtoforge.com/perfect-server-centos-6.3-x86_64-nginx-dovecot-ispconfig-3-p7

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.

Troubleshooting

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 domain.org 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 domain.org in BOTH mydestination and virtual_mailbox_domains
Nov 24 06:16:34 domain dovecot: imap-login: Login: user=<support@domain.org>, method=PLAIN, rip=72.29.80.225, lip=72.29.80.225, mpid=31910, TLS
Nov 24 06:16:34 domain postfix/local[31908]: 93C3F316800D: to=<root@domain.org>, orig_to=<support@domain.org>, relay=local, delay=0.22, delays=0.12/0.05/0/0.06, dsn=2.0.0, status=sent (delivered to mailbox)

Solution: http://www.howtoforge.com/forums/archive/index.php/t-59061.html

Added subdomain in /etc/hosts and /etc/postfix/main.cf

mydestination = mail.domain.org, ……

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

2) Postfix was not sending emails giving error in /var/log/maillog : (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]: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 main.cf. Commented it’s filter and Postfix SMTP also worked.

#content_filter = amavis:[127.0.0.1]:10024
content_filter =

http://www.textndata.com/forums/delivery-temporarily-suspended-connect-127-a-49572.html

Another solution could be properly follow walk through and install this anti-spam tool as mentioned here:
http://forum.linode.com/viewtopic.php?p=36880

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
:%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:

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: