- Plesk 12.5 for Windows
How to configure MailEnable on Google Cloud Platform?
According to official Google CloudPlatform Documentation Google Compute Engine does not allow outbound connections on ports 25, 465, and 587.
As it is described in MailEnable KB #ME020014 there is a workaround how to configure sending mail through some SMTP relay server even if port 25 is closed:
Within the Administration Program, under the properties of the SMTP Connector, select the Smart Host tab and configure the properties of your ISPs SMTP Server. This will forward all outbound mail through their SMTP Server (which will in turn deliver it to the destination mail server).
The detailed instructions are provided below:
- Use one of Compute Engine’s third-party partners (SendGrid, Mailgun, and Mailjet) to set up and send emails through their servers.
All these services have a free tier for the Google Cloud customers - 12000 emails/month on SendGrid, 30000 emails/month on Mailgun and 25000 emails/month on Mailjet.
Firstly, create an account in one of the services as described in the corresponding articles:
- SendGrid - https://cloud.google.com/compute/docs/tutorials/sending-mail/using-sendgrid#before-you-begin (step 10).
- Mailgun - https://cloud.google.com/compute/docs/tutorials/sending-mail/using-mailgun#before_you_begin.
- Mailjet - https://cloud.google.com/compute/docs/tutorials/sending-mail/using-mailjet#before_you_begin.
Then, configure MailEnable to relay all outgoing emails to the selected service:
- Connect to the server using RDP and open the MailEnableAdmin in Start > Mail Enable.
- Go to Servers > localhost > Services and Connectors > right-click on SMTP > Properties > Smart Host.
- Select Smart Host Enabled and under IP/Domain type: smtp.sendgrid.net for SendGrid, smtp.mailgun.org for Mailgun or in.mailjet.com for Mailjet. In the Port field type 2525.
- Select The remote server requires authentication, enter the credentials you received when registered on one of the services and click Apply.
- Restart SMTP Connector: right-click on SMTP > Stop and then Start.
- Use G Suite account to set up a relay service to send emails through it.
Configure the SMTP relay service in Google Apps as described in the article: https://support.google.com/a/answer/2956491.
Configure MailEnable in the same way as described in the first solution, but in the IP/Domain type smtp-relay.gmail.com and in Port type either 465 or 587.