Hi all,
Since moving our CentOS mail server to a new data centre we have had some issues getting a proportion of emails out.
The server has retained its IP address and gateway. I have updated DNS accordingly and notified our third-party mail filtering service of our new public IP.
Thousands of emails are leaving our system everyday, with apparently no problem, but over the past few days we have accumulated a backlog of 551 queued emails. 99% of which fail to send with a status of (Deferred).
I have spent the past three days talking with the filtering service, and Googling sendmail documents and guides but I just can't crack it.
I have ruled out the filtering service because if I remove the smarthost setting from sendmail's config, the same error occurs.
Here's an example of one of the emails which is constantly deferred:
[root@mail1 mqueue]# less qfp9AA5qxb017067
Code:
V8
T1318241152
K1318433082
N285
P25800095
I253/0/5309614
MDeferred
Fwbds
$_localhost.localdomain [127.0.0.1]
$rESMTP
$smail1.hayley-group.local
${daemon_flags}
${if_addr}127.0.0.1
S<elliot.johnson@hayley-group.co.uk>
Z00ed01cc8734$2ee17b40$8ca471c0$@hayley-group.co.uk
rrfc822; Liam.Delaney@sas.co.uk
RPNFD:<Liam.Delaney@sas.co.uk>
MDeferred
rrfc822; Dan.Philpott@sas.co.uk
RPNFD:<Dan.Philpott@sas.co.uk>
H?P?Return-Path: <<81>g>
H??Received: from mail1.hayley-group.local (localhost.localdomain [127.0.0.1])
by mail1.hayley-group.local (8.13.8/8.13.8) with ESMTP id p9AA5qxb017067;
Mon, 10 Oct 2011 11:05:52 +0100
H??Received: from johnsone (johnsone.hayley-group.local [10.11.22.202])
by mail1.hayley-group.local (Scalix SMTP Relay 11.4.6.13676)
via ESMTP; Mon, 10 Oct 2011 11:05:50 +0100 (BST)
H??Date: Mon, 10 Oct 2011 11:05:45 +0100
H??From: "Elliot Johnson" <elliot.johnson@hayley-group.co.uk>
H??To: "'Liam Delaney'" <Liam.Delaney@sas.co.uk>,
Ben Noakes <ben.noakes@hayley-group.co.uk>,
Rebecca Jones <becky.jones@hayley-group.co.uk>,
Mark Law <mark.law@hayley-group.co.uk>
H??cc: "'Dan Philpott'" <Dan.Philpott@sas.co.uk>
H??Message-ID: <00ed01cc8734$2ee17b40$8ca471c0$@hayley-group.co.uk>
H??In-Reply-To: <DCB60E715BC02543A68A87C5979FFC701711AD2B@SGC-SRV-24.sas.internal>
H??References: <DCB60E715BC02543A68A87C5979FFC701711AD2B@SGC-SRV-24.sas.internal>
H??Subject: RE: Monday 17th
H??x-scalix-Hops: 1
H??Organization: Hayley Group PLC
H??X-Mailer: Microsoft Outlook 14.0
H??Thread-Index: AQHldOJgd3pgcL4jupBA6PWZjdtzGZVDfZZg
H??MIME-Version: 1.0
H??Content-Type: multipart/related;
boundary="----=_NextPart_000_00EE_01CC873C.90AD0F30"
H??Content-Language: en-gb
.
I'm not very experienced with sendmail or the raw mechanics of email, so I was wondering if anyone can spot anything obvious in the email which would be upsetting the delivery?
I have tried processing the particular mail item with DNS debugging:
Code:
[root@mail1 mqueue]# sendmail -v -d8.32 -qIp9AA5qxb017067
_res.options = 812c3, HasWildcardMX = 0
Running /var/spool/mqueue/p9AA5qxb017067 (sequence 1 of 1)
dns_getcanonname(hayley-group.co.uk, trymx=1)
dns_getcanonname: trying hayley-group.co.uk. (AAAA)
NO: errno=0, h_errno=4
dns_getcanonname: trying hayley-group.co.uk. (A)
NO: errno=0, h_errno=4
dns_getcanonname: trying hayley-group.co.uk. (MX)
YES
dns_getcanonname: hayley-group.co.uk
dns_getcanonname(sas.co.uk, trymx=1)
dns_getcanonname: trying sas.co.uk. (AAAA)
NO: errno=0, h_errno=4
dns_getcanonname: trying sas.co.uk. (A)
YES
dns_getcanonname: sas.co.uk
getmxrr(cust1147-s.out.mailcontrol.com, droplocalhost=1)
getmxrr: res_search(cust1147-s.out.mailcontrol.com) failed (errno=0, h_errno=4)
dns_getcanonname(cust1147-s.out.mailcontrol.com, trymx=0)
dns_getcanonname: trying cust1147-s.out.mailcontrol.com. (AAAA)
NO: errno=0, h_errno=4
dns_getcanonname: trying cust1147-s.out.mailcontrol.com. (A)
YES
dns_getcanonname: cust1147-s.out.mailcontrol.com
<Dan.Philpott@sas.co.uk>,<Liam.Delaney@sas.co.uk>... Connecting to cust1147-s.out.mailcontrol.com. via relay...
220 *******************************************
>>> EHLO mail1.hayley-group.local
250-cluster-d.mailcontrol.com Hello [194.75.51.243], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE 1073741824
250-DSN
250-ETRN
250-XXXXXXXA
250-XXXXXXXXB
250 XXXC
>>> MAIL From:<elliot.johnson@hayley-group.co.uk> SIZE=90300 ENVID=00ed01cc8734$2ee17b40$8ca471c0$@hayley-group.co.uk RET=FULL
250 2.1.0 <elliot.johnson@hayley-group.co.uk>... Sender ok
>>> RCPT To:<Dan.Philpott@sas.co.uk> NOTIFY=FAILURE,DELAY
>>> RCPT To:<Liam.Delaney@sas.co.uk> NOTIFY=FAILURE,DELAY
>>> DATA
250 2.1.5 <Dan.Philpott@sas.co.uk>... Recipient ok
250 2.1.5 <Liam.Delaney@sas.co.uk>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
421 4.4.1 collect: read timeout on connection from [194.75.51.243], from=<elliot.johnson@hayley-group.co.uk>
>>> QUIT
<Dan.Philpott@sas.co.uk>,<Liam.Delaney@sas.co.uk>... Deferred: 421 4.4.1 collect: read timeout on connection from [194.75.51.243], from=<elliot.johnson@hayley-group.co.uk>
Closing connection to cust1147-s.out.mailcontrol.com.
Why am I getting a timeout?
Why are thousands of other emails (relaying via the same mailcontrol service) successful?
Any help or suggestions would be most appreciated.