Exim

From Cheatsheet
Revision as of 23:51, 23 October 2014 by Admin (talk | contribs) (4 revisions)
(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

Removal commands

Remove all frozen emails.

for i in `exiqgrep -zi`; do exim -Mrm $i; done

Remove email from a specific sender.

for i in `exiqgrep -f sending@email.com -i`; do exim -Mrm $i; done

Changing the exim deliver load setting

Well, as you probably know, you really need to resolve the load issue as any changes to exim to force it to process are only going to exacerbate the situation. AFAIK, the setting you want to change is:

   deliver_queue_load_max

Which by default is set to 3. If you go into WHM > Exim Configuration Editor > Advanced Mode > and put this into the first textbox and Save:

   deliver_queue_load_max = 6

Then the queue will process up to a load average of 6 instead of 3.

Blatently stolen from here (http://forums.cpanel.net/f5/exim-configuration-need-little-help-34796.html)


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.