Aug 4

All emails sent out to yahoo were deferring with the following error code today and I was bombarded with the tickets and chat early in the morning.

421 Message temporarily deferred - [numeric code]

If you are seeing the error “421 Message temporarily deferred - [numeric code]“, where “[numeric code]” shows a specific diagnostic code (e.g., “4.16.51″, “4.16.52″) in your SMTP logs, you will be directed to view the following page @ Yahoo.

http://help.yahoo.com/l/us/yahoo/mail/postmaster/postmaster-22.html

This doesn’t really help me to take care of the issue immediately as my customers are normally on shared hosting servers where in more than one domain will get affected as and when a big email service provider blocks our IP on their network for intentional / non-intentional spamming activities.

I have learned that such issues were used to be resolved by routing the emails to a different server to bring back the email service online or the MTA interface could have been changed to deal with the same.

Now, cpanel has made lots of changes to its MTA (exim) ACL’s to deal with this issue. Cpanel allows us to use different IP for each domain hosted on a shared hosting account if they buy a dedicated IP. These IP’s are listed in a file called /etc/mailips.  Following lines are taken from /etc/exim.conf
transport section. Here you could see that interfaces are searched against the domain name through which the email’s are being sent out of the server. If the domain name is not associated with a dedicated IP in /etc/mailips, MTA will use servers main IP to send out that email.

# This transport is used for delivering messages over SMTP connections.

begin transports

remote_smtp:
driver = smtp
interface = ${if exists {/etc/mailips}
{${lookup{$sender_address_domain}lsearch{/etc/mailips}{$value}{}}}{}}
helo_data = ${if exists {/etc/mailhelo}
{${lookup{$sender_address_domain}lsearch{/etc/mailhelo}{$value}
{$primary_hostname}}}{$primary_hostname}}

dk_remote_smtp:
driver = smtp
interface = ${if exists {/etc/mailips}
{${lookup{$sender_address_domain}lsearch{/etc/mailips}{$value}{}}}{}}
helo_data = ${if exists {/etc/mailhelo}
{${lookup{$sender_address_domain}lsearch{/etc/mailhelo}{$value}
{$primary_hostname}}}{$primary_hostname}}
dk_private_key = “/var/cpanel/domain_keys/private/${dk_domain}”
dk_canon = nofws
dk_selector = default

Today, I faced an issue where in a php script that was unable to send out emails to  yahoo accounts. PHP sends email as the user nobody (web server user), hence the emails needs to be sent out via server’s main IP.  Server’s main IP was found to be blocked by yahoo and I had to take care of this issue quickly as my customer was on chat. Customer had no dedicated IP allocated to his domain and I can’t help much even if he has got one as php is sending out email as nobody. I had to change the interface used for servers host name.

I went ahead and added a entry in /etc/mailips (I found it empty) and added the host name with the secondary IP which was found on the server as follows :

server.hostname.com : <new IP>

To test whether this configuration works fine or not, I sent out an email to yahoo test account via console and it did a trick. Even php scripts started shooting out emails to yahoo accounts.

May 29

If you’re a web hosting service provider, system administrator, website owner you got to think about a tool which lets you manage your server and websites easily. Cpanel is one of my favorite control panel for web hosting automation. Cpanel gives a lot of help to system administrator and save a considerable amount of time. Its ease of use and the fresh web2.0 design lets website owners manage their websites easily. On top of all this, Cpanel constantly improves and updates its product features. If you don’t have Cpanel on your servers think of using it, you will find the reasons below. Following gives an update on recent changes happening in Cpanel features.

cPanel 11.23 introduces a number of exciting changes to our industry leading control panel product. While there are many changes on the backend to cPanel and WHM with the 11.23 release, we’ll focus on four main areas: Memory Usage Reduction, Mail Flexibility and Efficiency, Backups and Transfers, and User Specific Changes.

Read the rest of this entry »

Mar 6

Monitoring Mail server queues is always not an easy job. That too when our servers becomes victims of spammers, it takes hell a lot of job to identify the spammer and block him.

Yesterday I came across this wonderful tool called “Isoqlog“written in C. A turkey software development team at EnderUnix has developed this tool to keep and eye on qmail, postfix, sendmail and exim mail server activities by scanning their logs. This tool generates HTML statistics pages which can be accessed via your web browser. It also produces Top domains output according to Sender, Receiver, Total mails and bytes; it keeps your main domain mail statistics with regard to Days Top Domain, Top Users values for per day, per month and years.

It really made my job easier on a qmail server. Now its your turn to try it on your mail servers.Installation of this tool is very simple. Download the latest tarball from EnderUnix.org and follow the other instructions given below :
Read the rest of this entry »

Close
E-mail It