Dedicated Servers
Managed Dedicated Servers
Semi-Dedicated Hosting
Cheap Dedicated Servers
Hyper-V VPS Hosting
Hyper-V Virtual Private Servers
Linux VPS Hosting
VPS Hosting with Root Access
Windows VPS Hosting
Windows VPS Web Hosting
Reseller Hosting
Reseller Hosting India
cPanel Shared Hosting
Linux Shared Web Hosting
Windows Hosting
Windows Shared Web Hosting
Web Hosting Blog
Web Hosting Blog India
Hosting Knowledgebase
Web Hosting Knowledgebase




  #1 (permalink)  
Old 07-23-2010, 11:01 PM
Member
 
Join Date: May 2005
Posts: 44
Thumbs up Useful exim commands

Check mail logs :

root@server# ] tail -f /var/log/exim_maillog

Print a count of the messages in the queue

root@server# ] exim -bpc;


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

root@server# ] exim -bp

Print a summary of messages in the queue (count, volume, oldest, newest, domain, and totals)

root@server# ] exim -bp | exiqsumm

Print what Exim is doing right now


root@server# ] exiwhat

start a queue run

root@server# ] exim -q -v

Remove a message from the queue

root@server# ] exim -Mrm <message-id> [ <message-id> ... ]

View a message's headers:

root@server# exim -Mvh <message-id>


View a message's body:

root@server# exim -Mvb <message-id>


View a message's logs:

root@server# exim -Mvl <message-id>

How to Freeze a message

root@server# ] exim -Mf <message-id> [ <message-id> ... ]

Remove 7 days old emails

root@server# ] exim -bpr | grep 7d | awk {'print $3'} | xargs exim -Mrm;
__________________
Regards,
Tukaram
System Admin
Host.co.in
Reply With Quote
  #2 (permalink)  
Old 07-26-2010, 10:25 AM
Junior Member
 
Join Date: Apr 2010
Posts: 23
Thumbs up

Following are few more important exim commands to manage exim email queue

List frozen email:
root@Server [~]#exim -bp | grep frozen

Count number of frozen email in email queue:
root@Server [~]#exim -bp | grep frozen | wc -l

Removing all frozen messages:
root@Server [~]#exiqgrep -z -i | xargs exim -Mrm
OR
root@Server [~]#exim -bp | grep frozen | awk '{print$3}' | xargs exim -Mrm

Forcefully deliver one email from email queue:
root@Server [~]#exim -M message-id
__________________
Regards,
Kuldeep N.
Reply With Quote
  #3 (permalink)  
Old 10-21-2010, 03:08 PM
Member
 
Join Date: May 2005
Posts: 44
Thumbs up

Force another queue run.

root@Server [~]# exim -qf

Force another queue run and attempt to flush the frozen message.

root@Server [~]# exim -qff


How many Frozen mails on the queue

root@Server [~]# exim -bpr | grep frozen | wc -l
__________________
Regards,
Tukaram
System Admin
Host.co.in
Reply With Quote
  #4 (permalink)  
Old 03-06-2011, 03:52 PM
Member
 
Join Date: Sep 2010
Posts: 59
Default exim command

Here is the command to see the exim configuration parameteres

Quote:
exim -bP
Note that the 'P' is capital in this case.

Example

exim -bP | grep qualify_domain

exim -bP +local_domains

Last edited by kaustubh_s; 03-06-2011 at 03:58 PM.
Reply With Quote
  #5 (permalink)  
Old 06-30-2011, 02:26 AM
Member
 
Join Date: Sep 2010
Posts: 59
Default Exim Log line Flags

Very important information must be known while examining the exim logs

Quote:

<= message arrival
=> normal message delivery
-> additional address in same delivery
*> delivery suppressed by -N
** delivery failed; address bounced
== delivery deferred; temporary problem
Read more about exim logs at

Reply With Quote
Reply

Bookmarks
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT. The time now is 04:33 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0