How to send mail from Wordpress if one server hosts page and another email?

by Akitirija   Last Updated July 12, 2018 00:08 AM

The website VPS has the domain name and the mail server

I successfully send and receive mail using using postfix and dovecot.

However, when I try to register a new user on my page, the new user receives no mail, and consequently cannot register. This made me install the plugin "WP Mail SMTP", with TLS and port 587, and Authentication off. In addition to letting you use your own mail server, you can use this plugin with Google, mailgun, and other services.

In the From Email field I use [email protected]. When I try to send a test email, I get the following message:

Could not connect to the SMTP host.

This means your web server was unable to connect to

Typically this error is returned for one of the following reasons:

-SMTP settings are incorrect (wrong port, security setting, incorrect host).

-Your web server is blocking the connection.

-Your SMTP host is rejecting the connection.

In order to troubleshoot this problem, I need to understand the underlying mechanism, which I do not.

Do I have to open mail ports on and use it as a relay? Or does the plugin automagically verify directly with

The latter makes more sense to me, as I can also use Google and other third-party services. That also explains why I need to set up SMTP authentication (SASL). But before I do anything, I would like a wiser person to confirm this suspicion or point me in the right direction, as I know it will be a lot of hassle (or should I say sassle?).

Do I have to set up SASSL on

Tags : email

Related Questions

Email Verification Bypass for Social Login

Updated May 23, 2018 19:08 PM

Woocommerce HTML email option unavailable

Updated July 28, 2017 20:08 PM