Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am running a server with CentOS 5 with Plesk 10.1.1 (64-bit). The only change to the system recently has been upgrades to Plesk. I am having awful problems with doing a mass mailing recently.

When I run a test script using the php mail function in a simple script it takes 5 seconds to complete ( sending one email ).

When I tested sendmail with

strace sendmail -t < test.msg

The pause seems to occur on the wait4 command.

write(4, "Date: 16 Mar 2011 00:11:57 +0000"..., 190) = 190
close(4)                                = 0
write(6, "Froot@s15321728.onlinehome-serve"..., 62) = 62
close(6)                                = 0
wait4(25648, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 25648
--- SIGCHLD (Child exited) @ 0 (0) ---
exit_group(0)                           = ?

My knowledge of server is rather limited, could someone point me where the issue might lay?

The message headers are

Received: by with SMTP id s9cs151609bkb;
        Tue, 15 Mar 2011 17:08:51 -0700 (PDT)
Received: by with SMTP id z60mr4210560wez.104.1300234130914;
        Tue, 15 Mar 2011 17:08:50 -0700 (PDT)
Return-Path: <>
Received: from ( [])
        by with ESMTPS id m29si630437wej.135.2011.
        (version=TLSv1/SSLv3 cipher=OTHER);
        Tue, 15 Mar 2011 17:08:49 -0700 (PDT)
Received-SPF: pass ( best guess record for domain of designates as permitted sender) client-ip=;
Authentication-Results:; spf=pass ( best guess record for domain of designates as permitted sender)
Received: (qmail 23890 invoked by uid 0); 16 Mar 2011 00:08:42 +0000
Date: 16 Mar 2011 00:08:42 +0000
Message-ID: <>

The contents of /etc/hosts are        s15321728        localhost localhost.localdomain
share|improve this question
How is DNS response on your machine? Slow? How about disk access? – Bill Weiss Mar 16 '11 at 4:00
+1 for the DNS comment. You should check your /etc/resolv.conf, /etc/ and /etc/hosts. Posting the headers from the test mail would also help. – adamo Mar 16 '11 at 7:28
How do I test DNS response ( sorry ). The correct nameservers are in resolv.conf – Leo Mar 16 '11 at 13:21
In the command line type host -t mx a_domain_name and if the response is slow, maybe the first nameserver in /etc/resolv.conf is in trouble. Do also a host -t ptr where is your IP address. – adamo Mar 17 '11 at 9:28
host -t mx command was super fast host -t ptr resolves instantly to correct address – Leo Mar 17 '11 at 13:37
up vote 1 down vote accepted

Remove your host's name ( from the line in /etc/hosts

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.