Emails sent from my app on DH are delayed several hours


#1

I have made a small web-app, with CakePHP framework, for a client who wanted to use their dreamhost hosting, so I am new to it.

I am sending emails to confirm orders to customers, but they are having an 8 hour delay in Gmail accounts and delayed in others too. I am not sure if it is caused by:

  1. Dreamhost policy
  2. the text or headers in email being grey-listed
  3. the time difference (?) as I am in UK and test it in UK hours (I know, sounds silly but maybe… ). I do set my app to be timezone Europe in PHP but in the email headers they say PDT.
  4. something else…?

any ideas? My cakePHP email code has worked in plenty other apps on a LAMP VPS setup so it’s quite hard to figure out. I’m checking the forum but only found a few on stackoverflow who report similar issues.

I am sending HTML email using the standard cake 1.3 component : http://book.cakephp.org/view/1283/Email


#2

Start by looking at the full headers in your email that was delayed. That will show all the hops it took to get from your server to their server. Post them here if you’d like. Just be sure to censor out any sensitive info. But you’re looking for lines that say “Received” at the beginning.


#3

hi sdayman - thankyou for your help!

I have redacted bits of the headers, here they are (did show original in the receiving gmail account)

Delivered-To: lb@REDACTED.com
Received: by 10.147.109.14 with SMTP id zq5csd9220yao;
Fri, 16 Sep 2011 14:04:50 -0700 (PDT)
Received: by 10.68.16.131 with SMTP id g9dhh6724bd.416.13183839919;
Fri, 16 Sep 2011 14:04:49 -0700 (PDT)
Return-Path: foobarry@brewers.dreamhost.com
Received: from smarty.dreamhost.com (smarty.dreamhost.com. [208.121.166.6])
by mx.google.com with ESMTP id h3si3117123pbg.248.2011.03.12.14.04.49;
Fri, 16 Sep 2011 14:04:49 -0700 (PDT)
Received-SPF: pass (google.com: domain of foobarry@brewers.dreamhost.com designates 208.113.175.8 as permitted sender) client-ip=208.110.155.8;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of foobarry@brewers.dreamhost.com designates 208.113.175.8 as permitted sender) smtp.mail=foobarry@brewers.dreamhost.com
Received: from brewers.dreamhost.com (brewers.dreamhost.com [69.163.150.203])
by smarty.dreamhost.com (Postfix) with ESMTP id 01DEEEABBCBF;
Fri, 16 Sep 2011 13:52:39 -0700 (PDT)
Received: by brewers.dreamhost.com (Postfix, from userid 12363990)
id 90B138DCA; Fri, 16 Sep 2011 10:42:17 -0700 (PDT)
To: luke.r@googlemail.com
Subject: Thank you for your payment.
From: jet-noreply noreply@REDACTED.co.uk
Message-ID: 4e738a79-cb38-4cfa-b7a2-7666adecf2e4@www.REDACTED.co.uk
Date: Fri, 16 Sep 2011 18:42:17 +0100
X-Mailer: CakePHP Email Component
Content-Type: text/html; charset=UTF-8


#4

There was a three hour delay within the DreamHost network. Submit this to Support and maybe they can explain the delay.


#5

There were known mail delays on Sept 16th
http://www.dreamhoststatus.com/2011/09/16/sending-of-mail-messages-delayed-temporarily/


#6

thanks I will test again and see what happens