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
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
Exim exiqgrep utility
Some Examples
For getting the message id of mails in the queue in which the receiving domain is yahoo.com
in which display option is i and selection criteria is r
For getting the message id of frozen messages
Try and test with other options you can handle the exim mail queue easily with this utility
Configure exim to listen on additional ports
Exim is a popular Message Transfer Agent (MTA) used on Unix systems. By default Exim will be listening on port 25. To make Exim listening on other additional port, say 26, add the following line to /etc/exim.conf.
daemon_smtp_ports = 25 : 26
After this restart Exim using the following commands.
service exim restart
or
/etc/init.d/exim restart
This will make Exim to listen on ports 25 as well as 26. Make sure you open the port 26 in the server firewall.