cancel
Showing results for 
Search instead for 
Did you mean: 

Delays to email coming from PHP on Hostopia

bobpullen
Community Gaffer
Community Gaffer
Posts: 16,887
Thanks: 4,979
Fixes: 316
Registered: ‎04-04-2007

Re: Delays to email coming from PHP on Hostopia

The relays don't accept mail without a preceding HELO as can be seen here:
shell1c50:/$ telnet 127.0.0.1 25
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
220 shell1c50.megawebservers.eu ESMTP Sendmail 8.12.7/8.12.6/SuSE Linux 0.6; Thu, 12 Mar 2015 10:46:42 -0500
mail from:<>
503 5.0.0 Polite people say HELO first

I'd have thought PHPList would cater for this though, and I'm sure it's worked before. It doesn't help that I don't know when it broke Undecided

Bob Pullen
Plusnet Product Team
If I've been helpful then please give thanks ⤵

spraxyt
Resting Legend
Posts: 10,063
Thanks: 674
Fixes: 75
Registered: ‎06-04-2007

Re: Delays to email coming from PHP on Hostopia

Still using SMTP but I've now tried a different testing script that uses DIY HTML code rather than converting plain text. This one works. The other one still doesn't but claims it has.
I'll investigate further but at the moment it looks like the problem is in my court. Roll_eyes
David
David
bobpullen
Community Gaffer
Community Gaffer
Posts: 16,887
Thanks: 4,979
Fixes: 316
Registered: ‎04-04-2007

Re: Delays to email coming from PHP on Hostopia

No worries, thanks for the clarification David.
I'm still a tad miffed by the PHPList thing, so if you get the chance can you install it and see if you encounter the same issues? I know it should work because Penny was using it wasn't she?

Bob Pullen
Plusnet Product Team
If I've been helpful then please give thanks ⤵

bobpullen
Community Gaffer
Community Gaffer
Posts: 16,887
Thanks: 4,979
Fixes: 316
Registered: ‎04-04-2007

Re: Delays to email coming from PHP on Hostopia

Quote from: Bob
I'm still a tad miffed by the PHPList thing.

Figured it out.
The following in class.phplistmailer.php gave it away:
$this->Helo = getConfig("website");

'website' was defined as domain.tld/phplist which Hostopia's servers won't have liked with it not being a FQDN.

Bob Pullen
Plusnet Product Team
If I've been helpful then please give thanks ⤵

spraxyt
Resting Legend
Posts: 10,063
Thanks: 674
Fixes: 75
Registered: ‎06-04-2007

Re: Delays to email coming from PHP on Hostopia

I haven't used phplist so far this year but it worked OK last time. My installation has
$this->Helo = getConfig("website"); set in class.phplistmailer.php
but I probably set website appropriately during set-up.
I did change a fair number of configuration and set-up variables to make phplist work, and I believe Penny made similar ones.
David
David
spraxyt
Resting Legend
Posts: 10,063
Thanks: 674
Fixes: 75
Registered: ‎06-04-2007

Re: Delays to email coming from PHP on Hostopia

Quote from: spraxyt
Still using SMTP but I've now tried a different testing script that uses DIY HTML code rather than converting plain text. This one works. The other one still doesn't but claims it has.

Turning phpmailer debug on

// use debug
$mail->SMTPDebug = "3"; // 0=none, 1=commands, 2=1+data, 3=2+connection status, 4=low level data output
$mail->Debugoutput = 'html'; // 'echo'=as is, 'html'=escaped and breaks, 'error_log'= log only

to show the dialogue with the MTA shows the failing message is accepted for delivery by ESMTP on the web server but is never seen again. I assume this means the Hostopia mail relay refuses to accept it from the web server. This should cause a bounce but locally there is nowhere to bounce to.
Some experimentation shows the Hostopia mail relays now appear to require the Content-Type: text/html message part to be enclosed in (at least) HTML <body>...</body> tags. With these the message is received.
Checking back to the last phpList campaign message I sent (which used phpList 3.0.6 and phpmailer 5.2.5) shows that was formatted as a complete HTML document so phpList should continue to work.
David
David
spraxyt
Resting Legend
Posts: 10,063
Thanks: 674
Fixes: 75
Registered: ‎06-04-2007

Re: Delays to email coming from PHP on Hostopia

Quote from: spraxyt
Some experimentation shows the Hostopia mail relays now appear to require the Content-Type: text/html message part to be enclosed in (at least) HTML <body>...</body> tags. With these the message is received.

This problem with SMTP sending seems now to be fixed. Smiley
As of Fri, 13 Mar 2015 14:39:52 GMT only messages satisfying the HTML part format above were accepted:

Received: from web3c50.megawebservers.eu ([10.130.1.52])
by mailrelay2c50.megamailservers.eu (8.13.6/8.13.1) with ESMTP id t2DEdqCG028442;
Fri, 13 Mar 2015 14:39:52 GMT
<snipped>
--b1_85b373c33856153c0b65b5281368ac89
Content-Type: text/plain; charset=us-ascii
This is the body in plain text for non-HTML mail clients

--b1_85b373c33856153c0b65b5281368ac89
Content-Type: text/html; charset=us-ascii
<body>This is the HTML message body including <b>some bold</b> text</body>

--b1_85b373c33856153c0b65b5281368ac89--

At Sun, 15 Mar 2015 17:29:00 GMT it worked (as it used to) without the <body>...</body> tags

Received: from web26c50.megawebservers.eu ([10.130.1.78])
by mailrelay2c50.megamailservers.eu (8.13.6/8.13.1) with ESMTP id t2FHT0vw004097;
Sun, 15 Mar 2015 17:29:00 GMT
<snipped>
--b1_1a2be2b4b57e07bd6ea470b7dda780dd
Content-Type: text/plain; charset=us-ascii
This is the body in plain text for non-HTML mail clients

--b1_1a2be2b4b57e07bd6ea470b7dda780dd
Content-Type: text/html; charset=us-ascii
This is the HTML message body including <b>some bold</b> text

--b1_1a2be2b4b57e07bd6ea470b7dda780dd--
David
mikep
Dabbler
Posts: 17
Thanks: 3
Registered: ‎31-03-2015

Re: Delays to email coming from PHP on Hostopia

Is anyone experiencing the same problem with missing php mail again over the last couple of days?
bobpullen
Community Gaffer
Community Gaffer
Posts: 16,887
Thanks: 4,979
Fixes: 316
Registered: ‎04-04-2007

Re: Delays to email coming from PHP on Hostopia

Just tried a couple of phpMail forms on my own webspace and out of 20 messages, none of them have turned up. I can't see anything in my inbound mail logs either. I'll get in touch with Hostopia...
Edit: ref 3566640.

Bob Pullen
Plusnet Product Team
If I've been helpful then please give thanks ⤵

spraxyt
Resting Legend
Posts: 10,063
Thanks: 674
Fixes: 75
Registered: ‎06-04-2007

Re: Delays to email coming from PHP on Hostopia

SMTP mail (sent using phpmailer 5.2.9) also fails to arrive (with or without the message body enclosed in <body>...</body> tags). It was working on 29.03.2015 a few minutes after the switch to BST.
As before localhost on the web server accepts the messages but the mail relays (presumably) refuse to accept them from the web server.
David
spraxyt
Resting Legend
Posts: 10,063
Thanks: 674
Fixes: 75
Registered: ‎06-04-2007

Re: Delays to email coming from PHP on Hostopia

SMTP mail from PHP on my Hostopia account is working again now (31/03/2015 18:45 BST). This is with or without HTML body text enclosed in <body> tags.
David
mikep
Dabbler
Posts: 17
Thanks: 3
Registered: ‎31-03-2015

Re: Delays to email coming from PHP on Hostopia

It looks like our mail is flowing again too. Thank to Bob for chasing hostopia but is there any chance of getting hostopia to get this issue bottomed out?
bobpullen
Community Gaffer
Community Gaffer
Posts: 16,887
Thanks: 4,979
Fixes: 316
Registered: ‎04-04-2007

Re: Delays to email coming from PHP on Hostopia

Yep, I've had confirmation things are fixed. Not sure of the root cause yet but I'll endeavour to find out.

Bob Pullen
Plusnet Product Team
If I've been helpful then please give thanks ⤵

mikep
Dabbler
Posts: 17
Thanks: 3
Registered: ‎31-03-2015

Re: Delays to email coming from PHP on Hostopia

Anyone seeing another repeat of this problem AGAIN!!! I think PHP incoming mail from Hostopia has stopped again?
andydg
Grafter
Posts: 46
Thanks: 10
Registered: ‎16-03-2010

Re: Delays to email coming from PHP on Hostopia

Add my voice again - no emails coming through again this morning!!  Angry
(plus, last time they weren't queued - just disappeared)