db file using: # ls -l /etc/postfix/sasl_passwd* db file: # postmap /etc/postfix/sasl_passwd We use the postmap utility to generate a. Then we generate the SASL password map: # echo :2525 yourSendGridUsername:yourSendGridPassword > /etc/postfix/sasl_passwd In case we find any, we comment out/remove them. "relayhost\|smtp_tls_security_level\|smtp_sasl_auth_enable\|smtp_sasl_password_maps\|header_size_limit\|smtp_sasl_security_options" Once we set the parameters, we ensure that there are no duplicate directives that can break the configuration: # cat /etc/postfix/main.cf | grep Smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd Then we add the following lines at the end of the file: smtp_tls_security_level = encrypt Here, we use port 2525 because Compute Engine does not allow outbound connections on ports 25, 587. We add the SendGrid SMTP service as relayhost: relayhost = :2525 Then we check if the following parameters exist and comment them out by adding a hashtag sign to its beginning: default_transport = errorĬomment it out like this: #default_transport = error Adjust it in accordance with the Google documentation instructions. Later, we create a backup of the original /etc/postfix/main.cf configuration file and open it in a text editor: # cp -a /etc/postfix/main.cfĤ. Then we define the MTA on the server and switch to Postfix if necessary.ģ. Initially, we connect to the server via SSH.Ģ. How to configure Postfix on Plesk server on Google Cloud ?ġ. However, it does not allow sending emails from these ports. In such a case, Instances can receive emails. It does not allow outbound connections on them. Use a G Suite account to set up a relay service to send emails through it.īy default, Google Compute Engine blocks the SMTP ports, 25, 465, and 587.Use one of Compute Engine's third-party partners to set up and send emails through their servers.To configure sending emails, we need to use one of the following solutions: How to send email from a Plesk server on Google Cloud ? In this context, we shall look into how we can add Postfix on the Plesk server on Google Cloud. Here at Ibmi Media, as part of our Server Management Services, we regularly help our Customers to perform related Google Cloud queries. Need to configure Postfix on the Plesk server on Google Cloud? We can help you However, the outgoing messages get stuck in the queue. It is a normal practice to receive incoming mail.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |