Emails sent from my app on DH are delayed several hours

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 :

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.

hi sdayman - thankyou for your help!

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

Received: by with SMTP id zq5csd9220yao;
Fri, 16 Sep 2011 14:04:50 -0700 (PDT)
Received: by with SMTP id g9dhh6724bd.416.13183839919;
Fri, 16 Sep 2011 14:04:49 -0700 (PDT)
Received: from ( [])
by with ESMTP id h3si3117123pbg.248.2011.;
Fri, 16 Sep 2011 14:04:49 -0700 (PDT)
Received-SPF: pass ( domain of designates as permitted sender) client-ip=;
Authentication-Results:; spf=pass ( domain of designates as permitted sender)
Received: from ( [])
by (Postfix) with ESMTP id 01DEEEABBCBF;
Fri, 16 Sep 2011 13:52:39 -0700 (PDT)
Received: by (Postfix, from userid 12363990)
id 90B138DCA; Fri, 16 Sep 2011 10:42:17 -0700 (PDT)
Subject: Thank you for your payment.
From: jet-noreply
Date: Fri, 16 Sep 2011 18:42:17 +0100
X-Mailer: CakePHP Email Component
Content-Type: text/html; charset=UTF-8

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

There were known mail delays on Sept 16th

thanks I will test again and see what happens