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.
Get exim to listen on another port on top of port 25
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
To specify listening on ports 25 and 26 on all interfaces:
daemon_smtp_ports = 25 : 26
Once saved, restart exim:
How to prevent exim from including the original email in a bounce message
If you want to stop exim from including the orignal message in a bounced email, add this line to the top section of your /etc/exim.conf:
bounce_return_message = false
save, exit and restart exim. This doesn’t stop bounce emails, only the orignal message from being incuded as part of the message.
Force exim to send email from a particular IP
If you need to change the IP that is used to send email out of your system, you can do so by editing your /etc/exim.conf
Change:
remote_smtp:
driver = smtp
To the following below.
remote_smtp:
driver = smtp
interface = IP ADDRESS
Where IP ADDRESS is the IP you want exim to use.
On this following post, We’ll provide a *short* exim useful command list for handle Exim Mail Administration in a easy way.
Find exim current version:
Delete All Frozen Emails:
-
exim -bpru|grep frozen|awk {’print $3′}|xargs exim -Mr
Force delivery of an email:
Force another queue run:
Force another queue run and attempt to flush the frozen messages:
View the log for the message:
View the body of the message:
View the header of the message:
Remove bounced emails
-
cd /var/spool/exim/input
-
find . -type f -iname ‘*’ -exec grep -li "Failed" {} \; -exec rm {}\;