| Linode Forum https://forum.linode.com/ |
|
| emails are delayed https://forum.linode.com/viewtopic.php?f=11&t=6919 |
Page 1 of 1 |
| Author: | xananax [ Mon Apr 04, 2011 8:09 pm ] |
| Post subject: | emails are delayed |
Hello. I did search for a long time before posting this, but I could not find anything related to my problem (or if it was, then it was too complex for me to understand). I am setting up a simple website where users register to events; Upon registering, an email is sent to confirm registration has been received and yaddah yaddah. Thing is, emails take a very long time to get to destination. Sometimes 2 hours, sometimes more. Is this normal? I am simply using PHP's mail() function, as I am reluctant to install a PEAR package or a command-line app for such a simple task (but I will if it is the solution to my problem)...I like my apps to be as independent as possible. For all means and purposes, here is a sample header: Code:
p---s.com being the domain (email are google apps based, but of course in this case I go through my own server and I am not using gmail's SMTP). jad@y---o.com is my address (works on google apps too) I have no problem in posting the actual domain and email, but I am just weary of spam collectors. Just some background so if you decide to help me, you know how much you have to explain: I code websites for a living, I use PHP/JS/actionscript/Java daily, and I am under ubuntu, at home and at work, and I use to command line for most of my management. I can set up an apache server no problem, etc. I just never had to deal with sending emails from a website until now. In other words simple guidelines will do the trick, I can google more info, I just need to know how to go from here, because I am frankly a bit lost right now. Any suggestions? |
|
| Author: | hoopycat [ Mon Apr 04, 2011 8:26 pm ] |
| Post subject: | |
Looks like the e-mail was received by 80.83.25.142 on Apr 3 at 23:55:25 UTC and received by Google at Apr 4 at 11:11:48 UTC. Whatever 80.83.25.142 is, you seem to be routing outgoing mail through there, which is strange. In any case, the mail logs on 80.83.25.142 may be able to tell you what it was doing with that message for 11 hours. |
|
| Author: | xananax [ Mon Apr 04, 2011 8:34 pm ] |
| Post subject: | WHAT?! |
I am sorry. This is making less and less sense to me. I mean it really doesn't. VISP (the domain this IP address points to), is our office's internet provider here, in Lebanon. But my server is on Linode, in the UK, and sends email through it's internal sendmail function to an address using google apps, on google's servers. The email is filled through a simple form, submit through POST, then handled by my script. Where does my ISP, which operates only in Lebanon, fit in all this?! How is it even possible that it is an actor in that transaction? I am missing a piece here. This seems like dark voodoo to me. Pointers please! |
|
| Author: | db3l [ Mon Apr 04, 2011 8:37 pm ] |
| Post subject: | |
What information do you have in your mail log for that queue entry? It should show you any attempts, reasons for deferring, and give you a more detailed time line than just the headers. In this case it looks like arrival at Google was almost 12 hours later, so there should have been multiple attempts logged on your side. I will note that your mail host is announcing itself to the receiver (Google in this case) as host xannax-RV408-RV508 which neither is a fully qualified name, nor shares domain information with the addresses being used (which are .com domains). So maybe it's getting hung up or throttled since it appears spam-like. Also, oddly, I can't reverse resolve your 80.83.25.142 address - is this a Linode? Typically they resolve at least to a members.linode.com address. Or is that some external host you are using as a "smart" gateway? In that case, I'd definitely suggest just putting postfix (or equivalent) on your Linode, pointing php's mail at localhost and letting it handle the queueing/delivery. -- David |
|
| Author: | db3l [ Mon Apr 04, 2011 8:42 pm ] |
| Post subject: | Re: WHAT?! |
xananax wrote: But my server is on Linode, in the UK, and sends email through it's internal sendmail function to an address using google apps, on google's servers. The email is filled through a simple form, submit through POST, then handled by my script. And then what does your script do with it? Quote: Where does my ISP, which operates only in Lebanon, fit in all this?! How is it even possible that it is an actor in that transaction?
Best guess is that you've explicitly configured part of your mail delivery chain to use your ISP's mail gateway to deliver mail. You just need to figure out what part. Does the the ISP host address or name show up in any configuration file beneath /etc or anywhere in your applications code/configs? Given that the first Received line in your posted headers use the ISP host, my first bet would be your own application configuration (or some general configuration for php internal mail transmission) is pointing there. -- David |
|
| Author: | xananax [ Mon Apr 04, 2011 9:06 pm ] |
| Post subject: | |
Thank you both for your help (sorry I haven't thanked you before, hoopycat, but I was just too confused). This is just my stupidity: Those are the emails I sent while testing the website on my test server! For my defense, I was never able to send emails through my test server before, it seems like something in my ISP's config changed. Always had to upload on a production server to use the mail() function...So I really wasn't expecting those emails to ever arrive. Thank you for your time and sorry to have wasted it! |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|