There was a problem loading the comments.

How to update your exim.conf

Support Portal  »  Knowledgebase  »  Viewing Article

  Print
CustomBuild 2.0
With CB2.0, you can update your SpamBlocker 4.x exim.conf more easily with:cd /usr/local/directadmin/custombuild
./build update
./build set exim yes
./build set eximconf yes
./build set eximconf_release 4.5
./build set spamassassin yes
./build update
./build exim
./build exim_conf


Custom exim.conf override
With CustomBulid 2.0 revision 1995+, you'll be able to add a custom exim.conf to this location to have any custom changes saved, and copied over to the /etc/exim.conf:/usr/local/directadmin/custombuild/custom/exim/exim.conf

The call to ./build exim_conf will use this exim.conf, instead of downloading a fresh one. It's recommend you make a diff patch of your exim.conf changes, so that you can later update your exim.conf to a more current version, and re-patch your changes to it.



CustomBuild 1.x
If you don't have CustomBuild 2.0, you can manually update your SpamBlocker 2.x exim.conf by running the following as root:wget -O /etc/exim.conf http://files.directadmin.com/services/exim.conf
wget -O /etc/exim.pl http://files.directadmin.com/services/exim.pl
chmod 755 /etc/exim.pl
cd /etc/virtual
touch blacklist_domains whitelist_from use_rbl_domains bad_sender_hosts blacklist_senders whitelist_domains whitelist_hosts whitelist_senders
if [ ! -e limit ]; then echo 0 > limit; fi
mkdir -p usage
chown mail:mail limit blacklist_domains whitelist_from use_rbl_domains bad_sender_hosts blacklist_senders whitelist_domains whitelist_hosts whitelist_senders limit usage

If you are running dovecot (which you most likely are), you will need to re-patch your exim.conf:patch -p0 < /usr/local/directadmin/customapache/exim.conf.dovecot.patch
patch -p0 < /usr/local/directadmin/custombuild/exim.conf.dovecot.patch

Note that you only need to run the patch appropriate to the build system you have. If you have custombuild, run the 2nd one. If you don't know what you have, then run them both, as it won't hurt anything if you patch twice.

Note that there are entries in the /etc/exim.conf that should be manually set for your system.
See the readme file for more information. (See the section labelled MANDATORY CHANGES to the SpamBlocker.exim.conf file)

Then restart exim:
RedHat:/sbin/service exim restart


Debian:/etc/init.d/exim restart


FreeBSD:/usr/local/etc/rc.d/exim restart

Share via

Related Articles

Copyright © 2024 TheGigabit. All right reserved. Reg.No: 200701034297 (792326-P)