Archive for December 12th, 2011

Setting Forwarder For Outgoing Email For a Domain

To set a forwarder for all outgoing emails  from a particular domain to an email address, follow the steps given below. Note:- This is only tested on cPanel11 Server. 1. Take the file /etc/cpanel_exim_system_filter in any of your favorite editor like pico, vim etc 2. Append the following contents to the file /etc/cpanel_exim_system_filter. if      ( $received_protocol is […]

Mail Error message: Error 550 “The recipient cannot be verified”

On servers running cPanel, some times it is found that mail sent to valid users is bounced back by the mail server. The bounce back messages will be similar to the following. PERM_FAILURE: SMTP Error (state 9): 550-“The recipient cannot be verified. Please check all recipients of this550 message to verify they are valid. If […]

Useful Exim Commands

Exim is a mail transfer agent used on Unix-like operating systems.  Exim is highly configurable, and therefore has features that are lacking in other MTAs. Exim  has always had substantial facilities for mail policy controls, providing facilities for the administrator to control who may send or relay mail through the system. To print a count […]

The recipient cannot be verified. Please check all recipients of this 550 message to verify they are valid

If you are receiving the following error; PERM_FAILURE: SMTP Error (state 13): 550-“The recipient cannot be verified. Please check all recipients of this 550 message to verify they are valid.” Solution : First you need to check the corresponding Domain name in the file ‘/etc/valiases’. root@f ~] cat /etc/valiases/domainname *: username@domainname Here ‘username@domainname’ indicates an […]

How to delete frozen mails from Exim mail queue

Sometimes there can be so many frozen mails in the  Exim mail queue. To know the number of frozen mails in the mail queue, you can use the following command exim -bpr | grep frozen | wc -l  In order to remove all frozen mails from the Exim mail  queue, use the following command exim […]

Exim: change the outgoing mail server IP address.

By default Exim will be using the main server IP to send mails. If the main server IP is listed in any spam database, then we will not be able to send mails. In order to fix this, we can change the Exim mail server IP to any other IP (which is not blacklisted) on […]

Error deleting email account of deleted add-on domain

Suppose you have removed the add-on domain, say domain.com and if the email accounts still exists on the server. And when you delete the email accounts, you get the error “Account does not exist”. You can follow the steps given below to fix this issue. 1. First, delete the folders and files of that particular […]

Email Setup on iPhone

Please follow this guide to install your IMAP e-mail account: 1. Click on Settings. 2. Click on ‘Mail, Contacts, Calendars’. 3. Click on Account. 4. Click on Other Fill the details: Name : Your name Address : Your email address Password : Your account password Description : Whatever you like here, but typically your email […]

Outlook Express Setup

This article is based on Outlook Expres,s but the procedure is very similar on all email clients. 1. Start your email client applications 2. Go to Tools > Accounts 3. Click on Add > Mail 4. Type in your name (this will be the name that appears as the sender of emails) and click Next. […]

How to redirect port using IPTABLES

You can redirect the port in IPTABLES using the prerouting parameter. Following is the command you can use to redirect the traffic of port 587 to port 25. $ /sbin/iptables -t nat -I PREROUTING -p tcp –dport 587 -j REDIRECT –to-port 25 $ /etc/init.d/iptables save $ /etc/init.d/iptables restart You can change the ports in the […]