Exim Commands : Searching the queue with exiqgrep


Cheap reseller Hosting


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

 

 


Cheap web Hosting


Useful Exim Commands


Cheap reseller Hosting


Useful Exim Commands

 

Exim is a message transfer agent (MTA) for hosts that are highly comfortable and running in Unix or Linux Operating system. Exim server is developed at the University of Cambridge. We can easily manage and configure in server. In this article i will explain few executable commands as below.

 

1) Print a count of the messages in the queue, use the following command line : 

root@localhost# exim -bpc

 

2) Print a listing of the messages in the queue (time queued, size, message-id, sender, recipient), use the following command line : 

root@localhost# exim -bp

 

3) Print a summary of messages in the queue (count, volume, oldest, newest, domain, and totals), use the following command line : 

root@localhost# exim -bp | exiqsumm

 

4) Print what Exim is doing right now, use the following command line : 

root@localhost# exiwhat

 

5) Test how exim will route a given address, use the following command line : 

root@localhost# exim -bt test@ownmyserver.com
user@thishost.com
<– test@ownmyserver.com
router = localuser, transport = local_delivery
root@localhost# exim -bt user@thishost.com
user@thishost.com
router = localuser, transport = local_delivery
root@localhost# exim -bt user@remotehost.com
router = lookuphost, transport = remote_smtp
host mail.remotehost.com [1.2.3.4] MX=0

 

6) Run a pretend SMTP transaction from the command line, as if it were coming from the given IP address. This will display Exim’s checks, ACLs, and filters as they are applied. The message will NOT actually be delivered, use the following command line : 

root@localhost# exim -bh 192.168.11.22

 

7) Display all of Exim’s configuration settings, use the following command line : 

root@localhost# exim -bP

 

 

 

 

exim-vps


Cheap web Hosting


How to Create a StartSSL Certificate on StartSSL Control Panel


Cheap reseller Hosting


To Create a StartSSL Certificate

In this article I will give you how you can easily Create a StartSSL Certificate on StartSSL Control Panel. Follow the steps and create a StartSSL Certificate.

Create a StartSSL Certificate

 

Step 1 : Login to the StartSSL Control Panel.

Step 2 : Select the Validations Wizard tab.

Step 3 : Select Domain Name.

Step 4 : Click on Continue button.

Step 5 : Then enter the top domain name, and select the domain name extension.

Step 6 : Click on Continue button.

Step 7 : Select the email address for verification of domain name.

Step 8 : Click on Continue button.

Step 9 : Then enter the verification code you received by mail into the the field. 

Step 10 : Click on Finish button. 

Step 11 : Select the Certificates Wizard tab.

Step 12 : Select SSL/TLS Server Certificate.

Step 13 : Click on Continue button.

Step 14 : Then enter a password ( at least 10 characters ).

Step 15 : Click on Continue button. 

Step 16 : Save the private key.

Step 17 : Click on Continue button.

Step 18 : Select the domain name from the drop-down box.

Step 19 : Click on Continue button.

Step 20 : Then add a sub domain name.

 Step 21 : Click on Continue button. 

Step 22 : Save the certificate

Step 23 : Click on Finish button.

Step 24 : Select the Tool Box tab.

Step 25 : Click on Decrypt Private Key.

Step 26 : Then enter the content of the private key and supply the password.

Step 27 : And finally Save the decrypted private key.

 

That’s it!

 

 

 


Cheap web Hosting


How to import StartCom CA into Vista


Cheap reseller Hosting


To Import StartCom CA into Vista

import StartCom copy

In this Article I will explain how to import StartCom CA into Vista. Please follow the instruction and import StartCom CA.

Step 1 : Using IE click on the appropriate certificate.

Step 2 : You can download the cert and double click on it.

Step 3 : In the security warning box, click on Open button.

Step 4 : Click on Install Certificate button.

Step 5 : You will see Certificate Import Wizad windo, Click on Next button.

Step 6 : Then, Choose the radio button for Place all certificates in the following store.

Step 7 : Then click on Browse.

Step 8 : Select the certificate store you wont to use, Choose Trusted Root Certification Authorities.

Step 9 : Then click on OK button.

Step 10 : Click on Next button.

Step 11 : Then, click on Finish button.

Step 12 : There might be a warning, which you should approve.

That’s it!


Cheap web Hosting


How to Install SSL Certificate in Microsoft IIS 7


Cheap reseller Hosting


To install the primary SSL certificate, you must complete the pending request, and then bind the certificate to your website, Please follow the steps and  Install an Certificate in Microsoft IIS 7.

 

Step 1: Click Start.

Step 2: Then click Run.

Step 3: Type mmc.

Step 4: Then click OK.

The Microsoft Management Console (Console) window opens.

Step 5: Click the File menu, in the Console1 window, and Select Add/Remove Snap-in.

Step 6: Select Certificates, in the Add or Remove Snap-in window, and click Add.

Step 7: Select Computer Account, in the Certificates snap-in window, and then click Next.

Step 8: Select Local Computer, in the Select Computer window, and then click Finish.

Step 9: Click OK.

Step 10: In the Console1 window, click + to expand the folder.

Step 11: Right-click Intermediate Certification Authorities, mouse-over All Tasks.

Step 12: Then click Import.

Step 13: In the Certificate Import Wizard window, click Next.

Step 14: Click Browse to find the intermediate certificate file.

Step 15: Change the file extension filter to PKCS #7 Certificates (*.spc;*.p7b), select the *_iis_intermediates.p7b file

Step 16: Then click Open.

Note : Do not install your Leaf Certificate in this area. Doing so removes your certificate from the list, and you must reinstall to correct the problem.

Step 17: Click Next, in the Certificate Import Wizard window.

Step 18: Select Place all certificates in the following store. 

Step 19: Then click Browse.

Step 20: In the Select Certificate Store window, select Intermediate Certification Authorities, and then click OK.

Step 21: In the Certificate Import Wizard window, click Next.

Step 22: Click Finish.

Step 23: Click OK.

Step 24: Close the Console 1 window.

Step 25: Then click No to remove the console settings.

That’s it!


Cheap web Hosting


How to access WHM on a Cloud VPS


Cheap reseller Hosting


How-to-Access-WHM

WHM (Web Host Manager) is cPanel’s server administrative management software. All customers on a Cloud VPS hosting package can access their WHM (Web Host Manager) interface by opening

http://yourdomain.com/whm

Where yourdomain.com is your actual domain name.

* If your domain is not yet pointed to your VPS, you will be able to access the VPS via its server name.

* When you access WHM, you will receive a warning about the SSL certificate used. The reason for the warning is that by default cPanel uses a shared self-signed SSL certificate. You can safely accept the certificate – the connection will still be secure.

* Next log in to your WHM

Note: You will be asked for your WHM login credentials.

1) The WHM username is your cPanel username.

2) The WHM password is your cPanel password.

 

That’s it! You will be able to manage your Cloud VPS.

 

 

See Cloud VPS Offers


Cheap web Hosting


How to install SOGo on Ubuntu


Cheap reseller Hosting


SOGo is an open source collaborative software server with a focus on simplicity and scalability. It is developed in Objective-C using PostgreSQL, Ubuntu, Apache, and IMAP. It supports CalDAV, CardDAV, GroupDAV, iMIP and iTIP and reuses existing IMAP, SMTP and database servers. In addition, SOGo offers native Microsoft Outlook compatibility using the Open Change backend.

We’ll see how to install this fantastic suite in an Ubuntu 12.04Lts Server Edition. Please follow the instruction.  

SOGo

 

* If you’re using Ubuntu Trusty Tahr (14.04) 

Step 1 :  From terminal prompt:

/etc/apt/sources.list

Step 2 :  Add the following line to your apt source list

deb http://inverse.ca/ubuntu trusty trusty

Step 3 : When you prefer using the nightly builds, then simply use the following line:

deb http://inverse.ca/ubuntu-nightly trusty trusty

 

* If you’re using Ubuntu Precise Pangolin (12.04)

Step 1 : From terminal prompt:

/etc/apt/sources.list

Step 2 : Add the following line to your apt source list

deb http://inverse.ca/ubuntu precise precise

Step 3 : When you prefer using the nightly builds, then simply use the following line:

deb http://inverse.ca/ubuntu-nightly precise precise

 

* If you’re using Ubuntu Lucid Lynx (10.04)

Step 1 : From terminal prompt:

/etc/apt/sources.list

Step 2 : Add the following line to your apt source list

deb http://inverse.ca/ubuntu lucid main

Step 3 : When you prefer using the nightly builds, then simply use the following line:

deb http://inverse.ca/ubuntu-nightly lucid main

 

 

For SOGo v3, simply add the “-v3” suffix to the http source path.

Signed builds

Since 2011-05-17

To verify their signature, our GPG public key has to be added into apt keyring.

Run the following commands:

sudo apt-key adv –keyserver keys.gnupg.net –recv-key 0x810273C4

Then, update your lists of available software packages

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install sogo

From that point, apt-get should not complain about package signatures anymore.

 

That’s!!


Cheap web Hosting


How to install R1soft cdp agent on the Linux server


Cheap reseller Hosting


To install R1soft cdp agent on the Linux server

R1Soft is an affordable, easy-to-use, high performance backup, restore, and disaster recovery software. Its a software application which is used to backup the data in a client (R1Soft agent) which is assigned to R1Soft server based upon the configurations which we define. R1soft can also be used to restore files and databases. You can install the Latest R1soft cdp agent on Linux server by using following steps.

Install-R1soft-cdp-agent

Step No. 1 : Create the yum repository for the r1soft by using the following command

/etc/yum.repos.d/r1soft.repo
[r1soft]
name=R1Soft Repository Server
baseurl=http://repo.r1soft.com/yum/stable/\$basearch/
enabled=1
gpgcheck=0

 

Step No. 2 : Install the cdp agent by using following command line

yum install r1soft-cdp-enterprise-agent

 

Step No. 3 : Then, install the header kernels by using following command line

yum install kernel-devel

 

Step No. 4 : Obtain the kernel module from R1Soft  by using following command line

r1soft-setup –get-module

 

Step No. 5 : To Setup the authentication key for the Agent on client server

serverbackup-setup –get-key http://cdpserverip

 

Kernel module is now installed.

 

Now, Use the following command line and load the new driver.

/etc/init.d/cdp-agent restart 

 

That’s it!


Cheap web Hosting


1 3 4 5 6 7 25