Exim is an open source mail transfer agent (MTA), which is a program responsible for receiving,
routing, and delivering e-mail messages. MTAs receive e-mail messages and recipient
addresses from local users, remote hosts and deliver the messages to their destinations.
Exim was developed in 1995, by Philip Hazel at the University of Cambridge for the use of Unix systems connected over the Internet. The software feature more straightforward configuration and task management.
Early MTAs were usually run as open relays, just routing and delivering mail without applying many rules or security controls. Exim features include user options for defense against mail bombs and unsolicited junk mail. Exim can be run on any TCP/IP network, in conjunction with any combination of host and user software, and is the default MTA included on most Linux systems.
Each mail handled by Exim will have a unique message-ID. Most commands related to
managing the queue and logging use these message-ids. Exim log files are stored in
/var/spool/exim/msglog and are named the same as the message-id. Files in
/var/spool/exim/input are named after the message-id.
Config:/etc/exim.confMail:
/home/<username>/mail/domain
/usr/lib/mailman
/var/spool/mail
Logs:/var/log/exim_mainlogs
root@dipu11161/~#telnet gittopaul.com 25
Trying 192.168.1.218...
Connected to gittopaul.com.
Escape character is '^]'.
220 dipu11161 ESMTP Exim 4.43 Wed, 13 Aug 2008 20:25:37 +0400
mail from:gitto@gittopaul.com
250 OK
rcpt to:gitto@gittopaul.com
550-Verification failed for <gitto@gittopaul.com>
550-Unrouteable address
550 Sender verify failed
rcpt to:gittopaul@gmail.com
550 Sender verify failed
data:
501 unexpected argument data
exim -bV
Configuration file
/etc/exim/exim.conf
Configuration file
/etc/exim/exim.conf
exim -bpc : no of emails currently mail queue have
exim -M email-id => Force delivery of one message
exim -qf => Force another queue run
exim -qff => Force another queue run and attempt to flush the frozen message
exim -Mvl messageID => View the log for the message
exim -Mvb messageID => View the body of the message
exim -Mvh messageID => View the header of the message
exim -Mrm messageID => Remove message without sending any error message
exim -Mg messageID => Giveup and fail message to bounce the message to the Sender
How many mails on the Queue
exim -bpr | grep \u201c
Lets use proper commands to deal with Exim.
Working with Exim Mail Server - Exim Commands
>> Count the number of messages in the queue.
>> Print messages older than the specified number of seconds. Eg: messages older than 1
hour.
root@localhost# exiqgrep -o 3600 [...]
>> Print messages younger than the specified number of seconds. Eg: messages less than an
hour old.
root@localhost# exiqgrep -y 3600 [...]
Leave a Comment