Hostopia SMTP Mail failing
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Hostopia SMTP Mail failing
Hostopia SMTP Mail failing
12-08-2015 2:58 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Debug gives:
Connection: opening to localhost:25, t=300, opt=array ()
SMTP ERROR: Failed to connect to server: php_network_getaddresses: getaddrinfo failed: Name or service not known (0)
SMTP connect() failed.
I first noticed this late last night, but the problem is still present.
Using PHP mail() (which interfaces to sendmail) works OK.
David
Re: Hostopia SMTP Mail failing
13-08-2015 2:59 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator

Bob Pullen
Plusnet Product Team
If I've been helpful then please give thanks ⤵
Re: Hostopia SMTP Mail failing
14-08-2015 10:57 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Bob Pullen
Plusnet Product Team
If I've been helpful then please give thanks ⤵
Re: Hostopia SMTP Mail failing
14-08-2015 1:19 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
As before sending using the php mail() function continues to work.
David
Re: Hostopia SMTP Mail failing
16-08-2015 7:28 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Connection: opening to localhost:25, timeout=300, options=array ()
SMTP ERROR: Failed to connect to server: php_network_getaddresses: getaddrinfo failed: Name or service not known (0)
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
After reviewing that page DNS lookups seemed a likely source of the problem. This was confirmed by replacing 'localhost' with '127.0.0.1' in my code; with that change SMTP sending works again.

Until recently 'localhost' used to work - so what has changed? This is only a guess but I suspect Hostopia DNS now supports IPv6 with IPv6 preferred.. This implies the IP returned for 'localhost' will be '::1'. I suspect the problem is that opening a socket to port 25 using that IPv6 address then fails.

David
Re: Hostopia SMTP Mail failing
17-08-2015 11:44 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I've changed localhost to the loopback IP in my own script and it works.
I've provided Hostopia with this diagnosis and am awaiting a response from them.
Bob Pullen
Plusnet Product Team
If I've been helpful then please give thanks ⤵
Re: Hostopia SMTP Mail failing
18-08-2015 1:45 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
SMTP -> FROM SERVER:220 web86c50 ESMTP Sendmail 8.14.4/8.12.6/SuSE Linux 0.6; Tue, 18 Aug 2015 12:44:01 GMT
SMTP -> FROM SERVER: 250-web86c50 Hello localhost [127.0.0.1], pleased to meet you 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-8BITMIME 250-SIZE 250-DSN 250-ETRN 250-DELIVERBY 250 HELP
SMTP -> FROM SERVER:250 2.1.0 ... Sender ok
SMTP -> FROM SERVER:250 2.1.5 ... Recipient ok
SMTP -> FROM SERVER:354 Enter mail, end with "." on a line by itself
SMTP -> FROM SERVER:250 2.0.0 t7ICi1BD021074 Message accepted for delivery
SMTP -> FROM SERVER:221 2.0.0 web86c50 closing connection
Message sent!
You were right BTW, it was a local DNS issue.
Bob Pullen
Plusnet Product Team
If I've been helpful then please give thanks ⤵
Re: Hostopia SMTP Mail failing
18-08-2015 3:47 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
So problem fixed.

David
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Hostopia SMTP Mail failing