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.
Reply
 
Thread Tools Display Modes
  #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, 447 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
  #2  
Old 1st April 2011, 10:20
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,446
Thanks: 813
Thanked 5,216 Times in 4,089 Posts
Default

Thanks for the Exim Config. I will add the config to SVN.

Not sure if we will be able to add official Exim support as this means that there has to be a active maintainer who implements and tests exim support for all supported Linux distributions (Debian, Ubuntu, Fedora, Centos and Dovecot) for every new ISPConfig release.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 2nd April 2011, 11:37
-= AD =- -= AD =- is offline
Junior Member
 
Join Date: Mar 2011
Posts: 7
Thanks: 0
Thanked 6 Times in 4 Posts
Default

I see.

There should be no differences in Exim config for different Linux distributions, the only possible difference I can think of is exim.conf location. Will check this exim.conf on Ubuntu+ISPConfig3 and post results here.
Reply With Quote
  #4  
Old 18th April 2011, 12:03
-= AD =- -= AD =- is offline
Junior Member
 
Join Date: Mar 2011
Posts: 7
Thanks: 0
Thanked 6 Times in 4 Posts
Default

Tested it under Ubuntu - works fine. Some ubuntu-related notes:

1. Exim config file is "/etc/exim4/exim4.conf"

2. You should install "exim4-daemon-heavy" package which includes mysql support
Reply With Quote
The Following User Says Thank You to -= AD =- For This Useful Post:
falko (19th April 2011)
  #5  
Old 10th May 2011, 01:31
-= AD =- -= AD =- is offline
Junior Member
 
Join Date: Mar 2011
Posts: 7
Thanks: 0
Thanked 6 Times in 4 Posts
Default

I've tested this exim.conf with ispconfig 3.0.3.3 and updated instructions in the initial post (added ubuntu how-to).
Reply With Quote
The Following 2 Users Say Thank You to -= AD =- For This Useful Post:
falko (10th May 2011), till (10th May 2011)
  #6  
Old 17th May 2011, 23:22
-= AD =- -= AD =- is offline
Junior Member
 
Join Date: Mar 2011
Posts: 7
Thanks: 0
Thanked 6 Times in 4 Posts
Default

exim.conf.gz attachment has been updated
Added support for "cc" field in "mail_user" table (new router "cc_router").
Reply With Quote
The Following User Says Thank You to -= AD =- For This Useful Post:
falko (18th May 2011)
  #7  
Old 25th November 2013, 16:37
hauke hauke is offline
Junior Member
 
Join Date: Nov 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default Running well? (Exim 4, ispconfig3, centos6.4)

Latest Exim 4 running well with this config, latest ispconfig 3 and centos 6.4?
I'm Happy about every hint. thx
Reply With Quote
Reply

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 03:48.


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