Deprecated: Optional parameter $shortcode declared before required parameter $args is implicitly treated as a required parameter in /home/ashishka/public_html/wp-content/plugins/wp-cirrus/wp-cirrus.php on line 331

Warning: Cannot modify header information - headers already sent by (output started at /home/ashishka/public_html/wp-content/plugins/wp-cirrus/wp-cirrus.php:331) in /home/ashishka/public_html/wp-content/plugins/all-in-one-seo-pack/app/Common/Meta/Robots.php on line 89

Warning: Cannot modify header information - headers already sent by (output started at /home/ashishka/public_html/wp-content/plugins/wp-cirrus/wp-cirrus.php:331) in /home/ashishka/public_html/wp-includes/feed-rss2.php on line 8
Mail Server | Web Hosting Stuff https://www.ashishkale.in Get solutions under one roof Mon, 04 Jan 2016 04:55:52 +0000 en-US hourly 1 Exim commands : To remove emails from mail queue for a specific Sender/Receiver https://www.ashishkale.in/exim-commands-to-remove-emails-from-mail-queue-for-a-specific-senderreceiver/ https://www.ashishkale.in/exim-commands-to-remove-emails-from-mail-queue-for-a-specific-senderreceiver/#respond Sat, 28 Nov 2015 12:42:49 +0000 http://www.ashishkale.in/?p=1027 In this article i will show you how to remove emails from mail queue for a specific Sender/Receiver. How to remove all emails from a particular user using exiqgrep? Do follow this command: # exiqgrep -i -f $user | xargs exim -Mrm                                      [...]

The post Exim commands : To remove emails from mail queue for a specific Sender/Receiver first appeared on Web Hosting Stuff.

]]>
In this article i 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

 

The post Exim commands : To remove emails from mail queue for a specific Sender/Receiver first appeared on Web Hosting Stuff.

]]>
https://www.ashishkale.in/exim-commands-to-remove-emails-from-mail-queue-for-a-specific-senderreceiver/feed/ 0
Exim Commands : Searching the queue with exiqgrep https://www.ashishkale.in/exim-commands-searching-the-queue-with-exiqgrep/ https://www.ashishkale.in/exim-commands-searching-the-queue-with-exiqgrep/#respond Sat, 28 Nov 2015 12:11:53 +0000 http://www.ashishkale.in/?p=1018 Searching the queue with exiqgrep   In this article I am explaining 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 [...]

The post Exim Commands : Searching the queue with exiqgrep first appeared on Web Hosting Stuff.

]]>
Searching the queue with exiqgrep

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

 

In this article I am explaining 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

 

 

The post Exim Commands : Searching the queue with exiqgrep first appeared on Web Hosting Stuff.

]]>
https://www.ashishkale.in/exim-commands-searching-the-queue-with-exiqgrep/feed/ 0