How to use the Exim Mail Queue Manager in WHM

To Using the Exim Mail Queue Manager in WHM

Exim is the mail software that runs on your server to control email delivery, there are mail queue management options you can use with Exim directly via the command line.

How to use the Exim Mail Queue Manager in WHM

In this article Hostdens will show you how you can manage your Exim mail queue on your VPS or dedicated server in WHM.

 

Step 1 : Log into WHM.

 

Step 2 : Find the Email menu.

 

Step 3 : Go to Mail Queue Manager.

 

Step 4 : In the Search box type in user@hostdens.com.

 

Step 5 : From the Select Query drop-down and select Search Recipients.

 

Step 6 : In Search Type Click on Begins With.

 

Step 7 : Click on the calendar icon and Specify the Start Date and End Date.

 

Step 8 : Next, specify the Start Time and End Time.

 

Step 9 : Then, click on Run Report.

 

Step 10 : We can see that our messages to user@hostdens.com are Frozen.

This means that Exim has detected an error trying to deliver the message, and it is going to hold the message and try again later.

 

Step 11 : Click on the magnifying glass icon to view the message in a new window.

In this message we can see that it’s not delivering to user@hostdens.com because their mail server is giving us back the error of Mailbox quota exceeded.

 

Step 12 : At the top of the message you can choose to Delete Message which will completely remove it from the mail queue.

 

Or

 

you can choose to Deliver Message Now which will attempt to send the message again, in this case if the user has freed up some space on their email account it should go through successfully now.

 

 

That’s it !! :-) 

 

Read More

Exim commands : To remove emails from mail queue for a specific Sender/Receiver

In this article Hostdens will show you how to remove emails from mail queue for a specific Sender/Receiver.

exim-vps

How to remove all emails from a particular user using exiqgrep?

Do follow this command:

# exiqgrep -i -f $user | xargs exim -Mrm

                                                 Or

 

How to remove all emails to a particular user using exiqgrep?

Do follow this command:

# exiqgrep -i -r $user | xargs exim -Mrm

 

That’s it :-) :-)

 

Exim related post

 

Read More

Exim Commands : Searching the queue with exiqgrep

Searching the queue with exiqgrep

Exim-Commands-Searching-the-queue-with-exiqgrep

 

 

In this article Hostdens will explain the command usages for finding emails in Exim mail queue for particular sender or receiver.

Exim includes a utility that is quite nice for grepping through the queue, called exiqgrep. Learn it. Know it. Live it. If you’re not using this, and if you’re not familiar with the various flags it uses, you’re probably doing things the hard way, like piping `exim -bp` into awk, grep, cut, or `wc -l`. Don’t make life harder than it already is.

First, various flags that control what messages are matched. These can be combined to come up with a very particular search.

 

1) Use -f ( To search the queue for messages from a specific sender )

Command :

 

root@localhost# exiqgrep -f [luser]@domain

 

2) Use -r ( To search the queue for messages for a specific recipient/domain )

Command :

 

root@localhost# exiqgrep -r [luser]@domain

 

3) Use -o ( To print messages older than the specified number of seconds. For example, messages older than 1 day )

Command :

 

root@localhost# exiqgrep -o 86400 […]

 

4) Use -y ( To print messages that are younger than the specified number of seconds. For example, messages less than an hour old )

Command :

 

root@localhost# exiqgrep -y 3600 […]

 

5) Use -s ( To match the size of a message with a regex. For example, 700-799 bytes )

Command :

 

root@localhost# exiqgrep -s ‘^7..$’ […]

 

“^3$” –> 3bytes
“^3.$” –> 3-30bytes
“^3..$” –> 3-300bytes
“^3…$” –> 3-3000bytes
And so on..

 

6) Use -z ( To match only frozen messages )

 

7) Use -x ( To match only unfrozen messages )

 

There are also a few flags that control the display of the output.

 

8) Use -i ( To print just the message-id as a result of one of the above two searches )

Command :

 

root@localhost# exiqgrep -i [ -r | -f ] …

 

9) Use -c ( To print a count of messages matching one of the above searches )

Command :

 

root@localhost# exiqgrep -c …

 

10) Print just the message-id of the entire queue

Command :

 

root@localhost# exiqgrep -i

 

That’s it :-) :-)

 

Exim related post

 

 

Read More