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!
Before 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:
- First, we have to create a new SendGrid API key.
- After that, create an Auth file as seen below:
mkdir /etc/mail/authinfo
chmod 700 /etc/mail/authinfo - 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"
- 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
- 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
- Then, we have to re-build Sendmail’s configuration with this command:
make -C /etc/mail
- Now, it is time to verify the setup as seen here:
service sendmail reload
How to connect SendGrid and Sendy
- 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.
- 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.
- 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.
- 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.
0 Comments