Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Standard view
Full view
of .
Look up keyword
Like this
0 of .
Results for:
No results containing your search query
P. 1


|Views: 169|Likes:
Published by api-3764104

More info:

Published by: api-3764104 on Dec 03, 2009
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less





Exim - The Mail Transfer Agent

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.

Port:smtp 25 pop 110


root@dipu11161/~#telnet gittopaul.com 25
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

1 / 11

550-Verification failed for <gitto@gittopaul.com>
550-Unrouteable address
550 Sender verify failed
rcpt to:gittopaul@gmail.com
550 Sender verify failed
501 unexpected argument data

To know the version of exim

exim -bV
Configuration file
Configuration file

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.

root@localhost# exim -bpc
>> Listing the messages in the queue (time queued, size, message-id, sender, recipient).
root@localhost# exim -bp
>> Print a summary of messages in the queue (count, volume, oldest, newest, domain, and
2 / 11
root@localhost# exim -bp | exiqsumm
>> Check what Exim is doing right now.
root@localhost# exiwhat
>> Test how exim will route a given address.
root@localhost# exim -bt user@localdomain.com
>> Display Exim's configuration settings.
root@localhost# exim -bP
>> Search the queue for messages from a specific sender.
root@localhost# exiqgrep -f [luser]@domain
>> Search the queue for messages for a specific recipient/domain.
root@localhost# exiqgrep -r [luser]@domain

>> Print messages older than the specified number of seconds. Eg: messages older than 1
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 [...]

>> Match the size of a message with a regex. Eg: Messages between 500-599 bytes.
root@localhost# exiqgrep -s '^5..$' [...]
>> Match only frozen messages.
root@localhost# exiqgrep -z
>> Match only frozen messages.
root@localhost# exiqgrep -x
>> Print just the message-id of the entire queue.
root@localhost# exiqgrep -i
>> Start a queue run.
root@localhost# exim -q -v
>> Start a queue run for just local deliveries.
root@localhost# exim -ql -v
>> Remove a message from the queue.
root@localhost# exim -Mrm <message-id> [ <message-id> ... ]
3 / 11

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->