![]() Currently I only do two 'mail-related' things on my server: etc/postfix/sasl_passwd.I have a plesk Obsidian Linux Server. # echo :587 apikey: > /etc/postfix/sasl_passwd Generate the SASL password map using the API key from the SendGrid panel. # cat /etc/postfix/main.cf | grep "relayhost|smtp_sasl_auth_enable|smtp_sasl_password_maps|smtp_sasl_security_options|smtp_sasl_tls_security_options|smtp_tls_security_level|header_size_limit"Ĭomment out/remove duplicate directives in the /etc/postfix/main.cf file if there are some. Smtp_sasl_tls_security_options = noanonymousĪfter the parameters are set, make sure that there are no duplicate directives that can break the configuration: Remove the file containing SendGrid API Key as it is no longer needed:Īdjust it in accordance with the SendGrid documentation instructions:Īdd the SendGrid SMTP service as relayhost to the /etc/postfix/main.cf file:ĬONFIG_TEXT: relayhost = :587Īlso, add the following lines at the end of the /etc/postfix/main.cf file: # echo :2525 apikey: > /etc/postfix/sasl_passwd Note: Replace in the command below with the real API Key value: Generate the SASL password map using the API key from the SendGrid panel: # cat /etc/postfix/main.cf | grep "relayhost\|smtp_tls_security_level\|smtp_sasl_auth_enable\|smtp_sasl_password_maps\|header_size_limit\|smtp_sasl_security_options"Ĭomment out/remove duplicate directives if there are some. Smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwdĪfter the parameters are set make sure that there are no duplicate directives that can break the configuration: Note: That port 2525 is used because the outbound connections on ports 25, 587 are not allowed on Compute Engine.Īdd the following lines at the end of the file:ĬONFIG_TEXT: smtp_tls_security_level = encrypt Define which MTA is installed on the server and switch to Postfix if necessary.Ĭreate a backup of the original /etc/postfix/main.cf configuration file and open it with a text editor:Īdjust it in accordance with the Google documentation instructions:Ĭheck if the following parameters exist and comment them out by adding a hashtag sign in the beginning of the line:Īdd the SendGrid SMTP service as relayhost to the /etc/postfix/main.cf configuration file:ĬONFIG_TEXT: relayhost = :2525 ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |