Bobcares

How to Setup SendGrid with Sendy

by | Jun 23, 2023

Learn how to set up SendGrid with Sendy from our experts. Our Server Management Support team is here to help you with your questions and concerns.

How to setup SendGrid with Sendy

If you are looking for a guide to help you set up Sendmail MTA on a server to use SendGrid SMTP, you are in luck!

Sendgrid with SendyBefore we begin, our experts recommend installing the required packages by running these commands:

wo stack install --sendmail
apt install libsasl2-modules

Once the installation is complete, it is time to follow these steps:

  1. First, we have to create a new SendGrid API key.
  2. After that, create an Auth file as seen below:

    mkdir /etc/mail/authinfo
    chmod 700 /etc/mail/authinfo

  3. Now, it is time to create /etc/mail/authinfo/smtp-auth file and add this content to it:

    AuthInfo: "U:root" "I:apikey" "P:API_KEY"

  4. At this point, create a hash map file of the auth file we created in the previous step.

    makemap hash /etc/mail/authinfo/smtp-auth < /etc/mail/authinfo/smtp-auth

  5. Next, we have to add the following configuration lines into /etc/mail/sendmail.mc below MAILER_DEFINITIONS and just before MAILER(`local’)dnl.


    define(`SMART_HOST',`[smtp.sendgrid.com]')dnl
    define(`RELAY_MAILER_ARGS', `TCP $h 587')dnl
    define(`ESMTP_MAILER_ARGS', `TCP $h 587')dnl
    define(`confAUTH_OPTIONS', `A p')dnl
    TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
    define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
    FEATURE(`authinfo',`hash -o /etc/mail/authinfo/smtp-auth.db')dnl

  6. Then, we have to re-build Sendmail’s configuration with this command:

    make -C /etc/mail

  7. Now, it is time to verify the setup as seen here:

    service sendmail reload

How to connect SendGrid and Sendy

  1. First, we have to add a trigger as to when the workflow has to run. The trigger can be an app event, on schedule, and so on.
  2. Then, we have to add SendGrid and Sendy nodes to our workflow canvas. This includes adding credentials for SendGrid and Sendy and configuring them as well.
  3. Now, a link is established between SendGrid and Sendy nodes to route data via the workflow. We can use core nodes to manipulate data fields, transform files, run custom JavaScript code, and so on. your flow.
  4. Finally, it is time to click the Execute Workflow button.

[Need assistance with a different issue? Our team is available 24/7.]

Conclusion

To conclude, our Support Techs demonstrated how to set up SendGrid with Sendy.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.