How to setup Custom Email Address for Domain using Mailgun for Free ?

Custom email address for domains are being offered by many mail services like Gmail, Outlook, etc. but they will charge amount for using their service. By using Mailgun there is a free way to create custom email address for your domain.

First, Sign Up with Mailgun using your email address. Once you have clicked the confirm link, log in to the Mailgun website. You should be presented with a dashboard. Now on the right under “Custom Domains”, click “Add Domain”.

Follow the instructions given and set your DNS records with whoever manages your DNS of your domain. Once you’ve done this, click on the ‘Routes’ link on the top to set up email forwarding.


On this page, you click on ‘Create New Route’.

Then, on this page, enter the following information:

Replace the your-email-id@gmail.com with your desired Gmail address.

Sending with SMTP
Next, we will set up our SMTP (Simple Mail Transfer Protocol) configuration so we can send emails from an actual server. Underneath the “Domains” tab, click on your domain name.

On this page, click ‘Manage your SMTP credentials’ then “New SMTP Credential” on the next page.

Type in your desired SMTP credentials.
After setting SMTP credentials go to the Accounts tab in Gmail Settings and then click on ‘Add another email address you own’. Once you open this window, enter your desired name and email address you wish to send from.

Then, set the SMTP settings as follows.

SMTP Server: smtp.mailgun.org
Port: 587
Username: ‘Email address’ whatever you chosen on SMTP credentials.
Password: Whatever you have chosen to create SMTP credentials on Mailgun.

After clicking “Add Account”, now you are done. You can Enjoy creating free email service up to 10,000 emails a month!

Related Articles & Comments

  • Thanks for the tutorial. I have been trying this out, but I found one issue. I’m not sure if I have something configured wrong, but if an email bounces, you don’t get a reply back from the server you sent it to, as the return-path is set to reply back to mailgun’s system.

    Zachary Grimshaw March 8, 2016 11:18 pm Reply
  • Tks for the tutorial. Very useful!!

    Andre Ferraro May 27, 2016 9:02 am Reply
  • I automated this setup on AWS Route53: https://github.com/samstav/tf_mailgun_aws

    If any of you out there use this and need help, let me know.

    Samuel Stavinoha February 14, 2017 4:50 am Reply
  • Nice Tutorial,
    Very Useful post it’s help me to create an email .

    Banshidharinfo May 31, 2017 3:49 pm Reply

Leave a Reply