Archive for the tag 'exim'

Finding Exim Unexpected or Fatal Errors

The below log file receives all entries exim doesn’t know how to handle. It’s generally a really bad thing when log entries are being written here, and they should be thoroughly investigated.

/var/log/exim_paniclog ( Linux )
/var/log/exim/paniclog (FreeBSD)

When certain serious errors occur, Exim writes entries to its panic log. If the error is sufficiently disastrous, Exim bombs out after-wards. Panic log entries are usually written to the main log as well, but can get lost amid the mass of other entries. The panic log should be empty under normal circumstances. It is therefore a good idea to check it (or to have a cron script check it) regularly, in order to become aware of any problems.

Reference:
General Information and Configuration for Exim Logs:
http://exim.org/exim-html-current/doc/html/spec_html/ch49.html

How to enable realtime blocklists (RBLs) with exim

To enable RBL blocking, as root, run the following:

cd /etc/virtual
rm -f use_rbl_domains
ln -s domains use_rbl_domains

This will setup the list of domains to be filtered to match the active domains list, so new domains added to the server are also included for the spammer IP blocking.

The RBLs will connect out to remote servers for each email, check to see if the sending IP is a spammer, and prevent that email from arriving. These lists are regularly updated, so they are highly effective.

Note that some lists also block entire ISP IP ranges, so if your clients are not able to send email, then can switch to sending email through port 587 instead of port 25.

or to disable RBLs, you can do the followig:

cd /etc/virtual
rm -f use_rbl_domains
touch use_rbl_domains

Source : http://directadmin.com/

Get exim to listen on another port other than 25

Some ISP’s are now blocking outgoing port 25 which prevents user from using smtp via their server. The workaround is to get exim to listen on another port other than 25 to bypass the ISP’s block.

For example, to get exim to listen on both port 25 and port 587, you’d add the following code to the very top of the /etc/exim.conf file:

daemon_smtp_ports = 25 : 587

Once saved, restart exim:
Redhat:
/sbin/service exim restart

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

More
: http://www.exim.org/exim-html-4.40/doc/html/spec_13.html#SECT13.5

SBDavid

Useful Exim Commands

Useful Exim Commands

Exim is a mail transfer agent used on Unix-like operating systems. Exim is highly configurable, and therefore has features that are lacking in other MTAs. Exim has always had substantial facilities for mail policy controls, providing facilities for the administrator to control who may send or relay mail through the system.

To print a count of the mails in the queue -> exim -bpc

Print a listing of the messages in the queue (time queued, size, message-id, sender, recipient) -> exim -bp

To show the current configuration file of exim -> exim -bP

To show the version and configuration file of exim -> exim -bV

Generate and display Exim stats from a logfile -> eximstats /var/log/exim_mainlog

Print what Exim is doing right now -> exiwhat

To Print the message-id of the messages in queue -> exiqgrep -i

To remove a mail from the queue -> exim -Mrm

To freeze a mail -> exim -Mf

To deliver a specific mail from the queue -> exim -M

To remove all frozen mails -> exiqgrep -z -i | xargs exim -Mrm

To view the headers of a mail -> exim -Mvh

To view body of a mail -> exim -Mvb

SBDavid

Exim exiqgrep utility

Exim exiqgrep utility

Some Examples

For getting the message id of mails in the queue in which the receiving domain is yahoo.com

exiqgrep -i -r yahoo.com

in which display option is i and selection criteria is r

For getting the message id of frozen messages

exiqgrep -i -z

Try and test with other options you can handle the exim mail queue easily with this utility

« Prev - Next »