Unable to send emails - relay.plus.net refusing connection
- 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
- :
- :
- Re: Unable to send emails - relay.plus.net refusin...
Unable to send emails - relay.plus.net refusing connection
20-06-2018 11:08 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I am trying to setup a server with wordpress at home for testing and then moving to my plusnet webspace.
Unfortunately I can't get SMTP to work.
On Phones, PC's and Tablets I use the same details, but in my wordpress config it isn't working.
Note: this system is connected to plusnet, so is on the plusnet network (not connected to internet through a third party).
I get the following error - any help would be appreciated.
Server:
OpenSSL: Yes
Apache.mod_security: No
SMTP Debug:
2018-06-20 19:04:24 Connection: opening to relay.plus.net:587, timeout=300, options=array ( 'ssl' => array ( 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true, ), ) 2018-06-20 19:04:24 Connection: Failed to connect to server. Error number 2. "Error notice: stream_socket_client(): unable to connect to relay.plus.net:587 (Permission denied) 2018-06-20 19:04:24 SMTP ERROR: Failed to connect to server: Permission denied (13)
Re: Unable to send emails - relay.plus.net refusing connection
21-06-2018 12:02 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
relay.plus.net does not currently support SSL/TLS. However since you are using a Plusnet.connection authentication is not necessary.
When you move the set up to your webspace is that on the CCGI server (it won't work on standard webspace)? On CCGI you would have to send using local host.
Re: Unable to send emails - relay.plus.net refusing connection
22-06-2018 7:04 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I am not using TSL or SSL.
Also this is running on my home computer (whiilst i develop the site) then I will move it to CCGI.
My home computer is on the plusnet network.
let me remove authentication.
Re: Unable to send emails - relay.plus.net refusing connection
22-06-2018 7:27 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I fixed my problem.
For anyone else who comes accross this, here is what happened.
This version of linux does not by default allow any SMTP client to bind to SMTP ports.
To correct this I entered these commands
sudo setsebool -P httpd_can_sendmail 1
sudo setsebool -P httpd_can_network_connect 1
Then I retried the email test and it worked fine.
Thanks for you help.
Re: Unable to send emails - relay.plus.net refusing connection
22-06-2018 8:47 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Glad to hear you got it working and thanks for posting the solution to help others.
Re: Unable to send emails - relay.plus.net refusing connection
23-06-2018 11:17 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
- 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
- :
- :
- Re: Unable to send emails - relay.plus.net refusin...