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
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
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 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: 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=<firstname.lastname@example.org>, method=PLAIN, rip=184.108.40.206, lip=220.127.116.11, mpid=31910, TLS
Nov 24 06:16:34 domain postfix/local: 93C3F316800D: to=<email@example.com>, orig_to=<firstname.lastname@example.org>, 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/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
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.