View Single Post
  #1  
Old 1st April 2011, 02:28
-= AD =- -= AD =- is offline
Junior Member
 
Join Date: Mar 2011
Posts: 7
Thanks: 0
Thanked 6 Times in 4 Posts
Default Adding EXIM MTA support for ISPConfig 3

Hi,

Tested on OS: CentOS 5, Ubuntu-server 10.04 (LTS)
Tested with ISPConfig version: 3.0.3.3

attached is exim.conf file for exim MTA which provides full exim support for ISPConfig 3.

Here are some quick steps how to apply this assuming you already have ISPConfig 3 + postfix running.


========== CentOS 5 ==========
1) Remove postfix (copy-paste into root shell):
Code:
yum remove postfix
2) Add atrpms repo for more recent exim build than a default Centos repo has (copy-paste into root shell):
Code:
cat > /etc/yum.repos.d/atrpms.repo << ATREPO
[atrpms]
name=Red Hat Enterprise Linux \$releasever - \$basearch - ATrpms
baseurl=http://dl.atrpms.net/el\$releasever-\$basearch/atrpms/stable
failovermethod=priority
enabled=0
gpgcheck=1
gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms
ATREPO
3) Install exim with mysql support (copy-paste into root shell):
Code:
yum --enablerepo=atrpms install exim exim-mysql
4) Update dovecot.conf to create auth socket exim can access (copy-paste into root shell):
Code:
cp /etc/dovecot.conf /etc/dovecot.conf_backup
sed -e "s#/var/spool/postfix/private/auth#/var/spool/dovecot/auth#" -e "s#user = postfix#user = exim#" -e "s#group = postfix#group = exim#" -i /etc/dovecot.conf
mkdir /var/spool/dovecot ; chown exim:exim /var/spool/dovecot
/etc/init.d/dovecot restart
5) Upload attached exim.conf.gz file to your server, unpack it with "gzip -d" command, copy unpacked file into /etc/exim/exim.conf

6) Edit /etc/exim/exim.conf and update it with your Mysql DB credentials. Just run this command in your root shell in order to see your current ispconfig mysql login info:
Code:
grep ^connect /etc/dovecot-sql.conf
7) Restart exim (copy-paste into root shell):
Code:
/etc/init.d/exim restart
========== Ubuntu-server 10.04 LTS ==========
1) Remove postfix (copy-paste into root shell):
Code:
apt-get remove postfix
2) Install exim4 with mysql support (copy-paste into root shell) :
Code:
apt-get install exim4-daemon-heavy
3) Update dovecot.conf to create auth socket exim can access (copy-paste into root shell):
Code:
cp /etc/dovecot/dovecot.conf /etc/dovecot/dovecot.conf_backup
sed -e "s#/var/spool/postfix/private/auth#/var/spool/dovecot/auth#" -e "s#user = postfix#user = Debian-exim#" -e "s#group = postfix#group = Debian-exim#" -i /etc/dovecot/dovecot.conf
mkdir /var/spool/dovecot
chown Debian-exim: /var/spool/dovecot
/etc/init.d/dovecot restart
4) Upload attached exim.conf.gz file to your server, unpack it with "gzip -d" command, copy unpacked file into /etc/exim4/exim4.conf

5) Edit /etc/exim4/exim4.conf and update it with your Mysql DB credentials. Just run this command in your root shell in order to see your current ispconfig mysql login info:
Code:
grep ^connect /etc/dovecot/dovecot-sql.conf
6) Create Exim SSL certificate and key (copy-paste into root shell and follow instructions):
Code:
/usr/share/doc/exim4-base/examples/exim-gencert
7) Update exim4.conf with new TLS cert and key files since attached exim.conf has TLS options actual for CentOS (copy-paste into root shell):
Code:
sed -e "s#/etc/pki/tls/certs/exim.pem#/etc/exim4/exim.crt#" -e "s#/etc/pki/tls/private/exim.pem#/etc/exim4/exim.key#" -i /etc/exim4/exim4.conf
8) Restart exim (copy-paste into root shell):
Code:
/etc/init.d/exim4 restart
================================

Any bug reports are welcome
Attached Files
File Type: gz exim.conf.gz (2.1 KB, 459 views)

Last edited by -= AD =-; 17th May 2011 at 23:20.
Reply With Quote
Sponsored Links