It’s been a long time that i didn’t write an article due to a lot of challenges in my career, and then i decided to add new resolution 2019 to my list and is to write continuously here and share my experience in email marketing with my peeps.
First of all, Let me introduce myself to the new readers of REKBLOG.COM, My name is Reda El Kasraoui and i’m the only guy here is in this humble emailing blog.
Today, I Will show you how to integrate Sendgrid SMTP with PowerMTA the easy way, while i am explaining this for you guys make sure you have an activated account with Sendgrid
Let me make things faster and easy for you guys:
First of all, you will need to activate your API KEY in your Sendgrid account
Preparing Sendgrid API to Implement it with PowerMTA:
Creating an API key
- Go to the API Keys page in the SendGrid UI, and click Create API Key.
- Give your API key a name.
- Select Full Access, Restricted Access, or Billing Access.
- If you’re selecting Restricted Access, or Billing Access, select the specific permissions to give each category. For more information, see API key permissions.
- Click Create and View.
- Copy your API Key somewhere safe. For security reasons, do not put it directly in your code, or commit it somewhere like GitHub.
NOTE: Be Careful, you need to save the API key somewhere safe
as you will not be able to retrieve or restore it.
Setup New PowerMTA Directives With Sendgrid:
Let’s say for example:
your Sendgrid Username is : “rekblog”, and your API Key is “YOUR_API_KEY_HERE”, Let’s say your VirtualMTA in your PowerMTA Config file is something goes like this:
We will add a new tag called <domain> that ends with </domain> which is similar to HTML, and it should look like the following:
Therefore we used Sendgrid With Powermta Directives starting with “SMTP Host” which is “smtp.sendgrid.net” and Port 25 (587, & 2525 are also allowed for unencrypted and TLS connections), Your Sendgrid Username is actually the SMTP Username and the API_Key is actually is the password
Also we started the <domain> Tag with a star (*) to apply this configuration to all email domains, but if you want to apply only on gmail.com, aol.com, yahoo.com …etc, All you have to do is to change the star (*) with the domain macro you desire.
Most noteworthy , Here’s another answer for a question many of you will ask : “is it possible that my ip address in the same Virtual MTA get burned or blacklisted?” the answer is: “Definitly No! The ip address is like an user that access that smtp for you
Let me know if you have any questions guys.
If you like what you see don’t forget to share this with your friends.
Happy new year everyone.
3tiw Cha7t 😉