How to Mailgun smtp relay
Explore how mailgun smtp relay can improve your email deliverability and marketing efficiency.
Mailgun is a high-performance email service designed to send, receive, and track emails. Some things you might want to do with Mailgun include sending through it using Mailgun as an SMTP relay, which makes it relatively easy to send emails from any application or server in your infrastructure. In the following steps, you will learn how to set up Mailgun as an SMTP relay.
An SMTP relay is a way for your email server or application to get its email through another email server, in this case, Mailgun. By using Mailgun’s SMTP relay you get to utilize the power behind Mailgun’s robust infrastructure on top of sending emails that come directly from your own mail server but with a great degree of tracking and managing your emails.
How to Configure Mailgun as an SMTP Relay Step-by-Step
Sign Up: if you haven’t signed up for an account using the Mailgun website.
Verify your e-mail address to activate your account following sign-up.
Domains Management: In the Mailgun dashboard go to the “Domains” section.
Add Domain: Click “Add Domain” and enter your domain name, for example, yourdomain.com.
Verify Domain Ownership: Mailgun will provide you with DNS records (TXT, MX, and CNAME) that you have to add to your domain’s DNS settings to prove ownership. Then, following their guidance, you can verify the ownership.
Access API Keys: Once verified, access the “API Keys” section in the Mailgun dashboard.
Get SMTP Credentials: Write down your SMTP username and password. The SMTP username will be something like [email protected] .
Step 4: Configure Your Application or Server
Now, you’ll need to configure your application or server to use Mailgun as its SMTP relay. You’ll usually need the following SMTP settings:
Username: Your Mailgun SMTP username (e.g. [email protected] )
Step 5: Testing Your SMTP Relay Configuration