LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-12-2011, 11:01 AM   #1
elliot01
Member
 
Registered: Jun 2009
Location: UK
Distribution: CentOS / RedHat
Posts: 89

Rep: Reputation: 16
Sendmail deffering emails


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.

Last edited by elliot01; 10-12-2011 at 11:03 AM.
 
Old 10-13-2011, 01:10 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Mail recipients might greylist you if your mail server does not resolve.
It looks like your server is named mail1.hayley-group.local (from the EHLO command), but that name is not valid in DNS.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail fails to receive emails countryuser Linux - Server 8 11-03-2009 04:55 PM
Sendmail doesn't send emails Bodyweb Linux - Software 5 07-18-2006 08:53 AM
forward emails in sendmail turbo_acura Linux - Networking 1 10-06-2004 08:52 AM
sending/recieving emails with sendmail xushi Slackware 2 02-25-2004 04:44 PM
sendmail not receiving emails destined for itself markng Linux - Networking 4 08-27-2002 09:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration