• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Plesk 18.0.27 Issue with PostFix and SendGrid on Google Cloud

LucasAvila

New Pleskian
Hey!

So I have followed this tutorial on how to integrate and use SendGrid with postfix to send external emails.
When I get to the step where I send a test email using the console, I get this :

[root@plsk-cent-hst-gcp-m-2-vm ~]# echo 'message' | mail -s teste1 [email protected] [root@plsk-cent-hst-gcp-m-2-vm ~]# plesk sendmail[5577]: Buffer size is not enough to hold hostname plesk sendmail[5577]: Unable to retrieve hostname. Use localhost.localdomain instead.

For the record I have edited main.cf and added

relayhost = [smtp.sendgrid.net]:2525 smtp_tls_security_level = encrypt smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd header_size_limit = 4096000 smtp_sasl_security_options = noanonymous smtp_sasl_tls_security_options = noanonymous
 
Use the Google Cloud Marketplace to sign up for the SendGrid email service. Make a note of your SendGrid SMTP account credentials, which include username, password, and hostname. Your SMTP username and password are the same as what you used to sign up for the service. The SendGrid hostname is smtp.sendgrid.net.


Have you tried port 587 first?
you need to open that port in Plesk via server Mail Settings Page.
If port 587 is not working for you, please try 2525 in your postfix config.
You may also need to edit /etc/postfix/master.cf to remove # from tlsmgr unix - - n 1000? 1 tlsmgr.
 
Back
Top