Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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, 461 views)

Last edited by -= AD =-; 17th May 2011 at 23:20.
Reply With Quote
The Following 2 Users Say Thank You to -= AD =- For This Useful Post:
falko (1st April 2011), till (1st April 2011)
Sponsored Links
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
server Installation Configuration deco5003 Installation/Configuration 12 5th August 2009 12:00
sending e-mail using mail() function linuxuser1 HOWTO-Related Questions 38 21st April 2009 12:20
Installation -- pcre_exec.c:403: internal compiler error: Segmentation fault zerman Installation/Configuration 2 23rd September 2008 23:58
Update php shajazzi Server Operation 6 6th April 2008 18:20
ERROR: The PHP binary coming with ISPConfig does not work properly on your system! micko_escalade Installation/Configuration 35 30th March 2007 11:31


All times are GMT +2. The time now is 18:20.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.