HostOnNet Blog

Exim not working

Looking for Linux Server Admin or WordPress Expert? We can help.

Today a client told exim is not working properly on his server running Fedora C4 and Cpanel.

I checked /var/log/exim_mainlog

Found

root@shah [~]# tail -f /var/log/exim_mainlog
2005-12-07 05:55:46 failed to open /etc/localdomains for linear search: No such file or directory
2005-12-07 05:58:26 failed to open /etc/localdomains for linear search: No such file or directory
2005-12-07 05:58:26 failed to open /etc/localdomains for linear search: No such file or directory
2005-12-07 05:59:21 failed to open /etc/localdomains for linear search: No such file or directory
2005-12-07 05:59:21 failed to open /etc/localdomains for linear search: No such file or directory

The file /etc/localdomains is missing.

his /etc/yum.conf was

[main]
exclude=mod_ssl* httpd* perl mysql* php* spamassassin* kernel*
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=fedora-release
tolerant=1
exactarch=1
retries=20

[base]
name=Fedora Core $releasever – $basearch – Base
baseurl=http://mirror.linux.duke.edu/pub/fedora/linux/core/$releasever/$basearch/os/
ftp://mirror.linux.duke.edu/pub/fedora/linux/core/$releasever/$basearch/os/

[updates-released]
name=Fedora Core $releasever – $basearch – Released Updates
baseurl=http://mirror.linux.duke.edu/pub/fedora/linux/core/updates/$releasever/$basearch/
ftp://mirror.linux.duke.edu/pub/fedora/linux/core/updates/$releasever/$basearch/

#[updates-testing]
#name=Fedora Core $releasever – $basearch – Unreleased Updates
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/testing/$releasever/$$

The problem was fixed by adding exim* to exclude list

exclude=mod_ssl* httpd* perl mysql* php* spamassassin* kernel* exim*

Else exim get reinstalled by yum everyday overwriting cpanel exim, creating the problem.

Now reinstalled exim and is working fine

/scripts/eximup –force

Read more at

http://server.netfreehost.com/server-ftopic46.html

Posted in Cpanel Server. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.