• 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.

Question SendGrid Automation

sercan

New Pleskian
Hello there,
Since I installed Plesk on Google Cloud, I needed to set up a 3rd party mail service. I also installed SendGrid and started using it.

But I have a problem; When I add a new domain to my Plesk server, I have to go to sendgird and perform "Sender Authentication". Can I have Plesk do this automatically?
 
That's going to be quite a challenge and a fair bit of work. Does SendGrid have an API trough which you can add domains for authentication?

If they do have an API, this is might be a solution: you could setup an event in the Plesk Event Manager for when a new domain is created. Which runs a script that connects to the SendGrid API and adds the domain to SendGrid and retrieves the value for the DNS record. Then use the Plesk CLI to create a DNS record for the domain with the authentication value.

This is just from the top of my head. I am not familiar with SendGrid. I don't know if the have API if they do, what is supports.
 
That's going to be quite a challenge and a fair bit of work. Does SendGrid have an API trough which you can add domains for authentication?

If they do have an API, this is might be a solution: you could setup an event in the Plesk Event Manager for when a new domain is created. Which runs a script that connects to the SendGrid API and adds the domain to SendGrid and retrieves the value for the DNS record. Then use the Plesk CLI to create a DNS record for the domain with the authentication value.

This is just from the top of my head. I am not familiar with SendGrid. I don't know if the have API if they do, what is supports.
Yes it has API. I'm new to Plesk. I just learned how to use Events.

Since this was challenging I ended up using a service provider where port 25 was not blocked. But people who have this problem can do it using API and Plesk Events.

Thanks.
 
Back
Top