Exim

From Cheatsheet
Revision as of 10:31, 1 February 2011 by Admin (talk | contribs) (Created page with ' == Basics == number of msg in queue exim -bpc print msg queue summary exim -bp | exiqsumm start a full queue run exim -q -v Start a local delivery queue run exim -ql -v Flu…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Basics

number of msg in queue

exim -bpc

print msg queue summary

exim -bp | exiqsumm

start a full queue run

exim -q -v

Start a local delivery queue run

exim -ql -v

Flush exim queue

exim -bpr | awk {'print $3'} | xargs exim -Mrm

Do a traceroute on the email path to the mx hosts

exim -bt Email address here

Troubleshooting

If you try to restart Exim and come across this error do the following.

[root@host.dremed.com [/]$ /etc/init.d/exim restart
Shutting down clamd: [ OK ]
Shutting down exim: [FAILED]
Shutting down antirelayd: [FAILED]
Shutting down spamd: [ OK ]
Starting clamd: [ OK ]
Starting exim: /usr/sbin/exim: error while loading shared libraries: libperl.so: cannot open shared object file: No such file or directory
[FAILED]
Starting exim-smtps: /usr/sbin/exim: error while loading shared libraries: libperl.so: cannot open shared object file: No such file or directory
[FAILED]
Starting antirelayd: [ OK ]
Starting spamd: [ OK ]
[root@host.dremed.com [/]$ 

Proceed to do the following:

wget http://www.cpan.org/src/perl-5.10.1.tar.gz
tar zxf perl-5.10.1.tar.gz
cd perl-5.10.1
./Configure
make
make install
/scripts/checkperlmodules --force
/scripts/eximup --force
ldconfig
/etc/init.d/exim restart

If the above does not work open a cpanel ticket.