postalserver / postal

📮 A fully featured open source mail delivery platform for incoming & outgoing e-mail
https://postalserver.io
MIT License
14.9k stars 1.06k forks source link

SMTP ERROR: Failed to connect to server: Connection refused (111)SMTP connect() failed. #749

Closed jonhuther closed 5 years ago

jonhuther commented 5 years ago

Getting this error when trying to send a test message from a Wordpress SMTP plugin (https://wordpress.org/plugins/easy-wp-smtp/).

Using STARTTLS, port 2525. Tried with no encryption as well.

SMTP ERROR: Failed to connect to server: Connection refused (111)SMTP connect() failed. This is a message displayed after submitting the test email form.

Fresh install of Postal on Ubuntu 16.4. Setup an organization and mail server and can see credentials username and password.

I'm able to telnet in from local machine to smtp host on 2525 port. I'm able to telnet in from server the website lives on and connect to smtp host on port 2525. I can use an external smtp check website and successfully send a test email.

I've gone through all the DNS settings in docs, disabled the security plugin on the website, checked port 2525 is open in ConfigServer Security & Firewall (csf) on website server and I've check error logs on website server.

Next step is to check the smtp logs on Postal server but I don't know where they live.

Anything else I can check?

jonhuther commented 5 years ago

CSF was blocking 2525 on the website server. I also have to select 'none' as type of encryption in the wordpress smtp plugin. Then it sends from the test form.