How to forward emails to my custom domain to my Gmail account?

53,602

Solution 1

You will need to add an MX record to your domains DNS. If you're using your Registrar to do the email forwarding, you'll add their e-mail servers for the MX records. Without an MX record, mail servers have no idea which servers to send the mail to.

Solution 2

I built a free, open-source, encrypted, and private solution at https://github.com/niftylettuce/forward-email. This service does not store logs, it is completely private and simply acts as a proxy. No email is ever stored on the server, it's all proxied in memory to the recipient's mail server (view the source on GitHub if you'd like to learn more about how it works!).

The documentation is hosted at http://forwardemail.net/ and you can configure it with the instructions below.

Replace [email protected] with the email address you want to forward emails to below:

  1. Set the following DNS MX records on your domain name:
Name/Host/Alias     TTL     Record Type Priority    Value/Answer/Destination
@ or leave blank    3600    MX          10          mx1.forwardemail.net
@ or leave blank    3600    MX          20          mx2.forwardemail.net
  1. Set (and customize) the following DNS TXT records on your domain name:

If you are forwarding all emails from your domain to a specific address:

Name/Host/Alias     TTL     Record Type     Value/Answer/Destination
@ or leave blank    3600    TXT             [email protected]

If you just need to forward a single email address (e.g. [email protected] to [email protected]; this will also forward [email protected] to [email protected] automatically):

Name/Host/Alias     TTL     Record Type     Value/Answer/Destination
@ or leave blank    3600    TXT             forward-email=hello:[email protected]

If you are forwarding multiple emails, then you'll want to separate them with a comma:

Name/Host/Alias     TTL     Record Type     Value/Answer/Destination
@ or leave blank    3600    TXT             forward-email=hello:[email protected],support:[email protected]

Please note that if you have multiple TXT record lines for forward-email: the service will only read the FIRST listed - please ensure you only have one line.

  1. Set (and customize) the following TXT record for SPF verification for your domain name (this will allow SPF verification to pass):

If you're using a service like AWS Route 53, then edit your existing TXT record and add the following as a new line:

Name/Host/Alias     TTL     Record Type     Value/Answer/Destination
@ or leave blank    3600    TXT             v=spf1 a mx include:spf.forwardemail.net ~all

If you already have a similar line with v=spf1, then you'll need to append include:spf.forwardemail.net right before any existing include:host.com records and before the ~all in the same line (e.g. v=spf1 a mx include:spf.forwardemail.net include:host.com ~all).

  1. Send a test email to confirm it works. Note that it might take some time for your DNS records to propagate.

  2. If you have any issues please visit http://forwardemail.net/ and/or file an issue on GitHub at https://github.com/niftylettuce/forward-email.

Solution 3

Simple solution: Use http://improvmx.com/ and then set your MX records and you are done.

Solution 4

Email Forwarding works only if your First Email ID is working perfect. Then according to Setting, Email is Forwarded to Second Email ID.

To enable you Mail Service, you do not need Webspace or any hosting package. Just login to Domain Control Panel and then update some Name Records their.

Google, Microsoft and some other Mail Service Provider Free Email Services for Custom Domain. For Managing google does better task but it is paid. While Microsoft Handles Full Controls to User but is Free for 500 users and best service with All Microsoft Products without Limitations.

For Google Mail Service for your own Domain:

sign up here: https://www.google.com/a/signup/?enterprise_product=GOOGLE.EDU&hl=en&source=gafe-homepage-canvas-en This is education edition from Google which allow 10 users Free. You can choose other Paid also.

Then Login to your Domain Control Panel and update records as described in Support:http://support.google.com/a/bin/answer.py?hl=en&answer=140034

For Microsoft Mail or Windows Live Mail Service:

sign up here: https://domains.live.com/Signup/SignupDomain.aspx

And change Records as shown in Domain Control Panel. Then you will find your Mail Working within 6-12 hours of span.

Good Luck.

Share:
53,602

Related videos on Youtube

Zistoloen
Author by

Zistoloen

I like Stack Exchange's websites network because it's so well designed and SEO-optimized. Therefore, I spend time to the community to help people on webmastering issues, to improve formatting of many posts to keep this website clean, etc. I am the first Steward and Marshal of Pro Webmasters :-). Otherwise, I love making websites with WordPress, HTML5, CSS3, JavaScript, jQuery... SEO is also a good stuff. I support these two projects: GitStack (git server for Windows) and CamSwipe (credit card OCR for mobile). My profile on Stack Exchange's network:

Updated on September 18, 2022

Comments

  • Zistoloen
    Zistoloen over 1 year

    I bought a domain without webspace and want to forward emails to that domain to my Gmail account. But I don't receive any emails which are send there, not even a return-to-sender-email. I also tried with another email provider and my company's email address.

    My hoster supports email forwarding, thus I activated it with the "catch all" option and added my 3 email addresses as target. The domain is configured with www IN CNAME example.rhcloud.com. There is no other configuration yet.

    Do I need to add MX entries? Or what else do I need to do?

    P.S.: Don't migrate this question to serverfault. They said I'm not allowed to ask questions, because I'm not a sysadmin...

    • Admin
      Admin almost 11 years
      A "catch all" email account with forwarding should receive all incoming email and forward it to your target email addresses. If email service is included with your hosting package, the support team there should be able to view mailserver logs to see what's happening with your emails. If you comment or update the question with your domain, your DNS table records will provide some more info, and a test email can be sent to your mailserver to see what response code is received.
  • Tom Brossman
    Tom Brossman almost 11 years
    +1 This is the right answer. Checking OP's DNS records it is clear that there are problems with the current MX settings.
  • Vladimir Glinskikh
    Vladimir Glinskikh over 7 years
    I am a bit worried about privacy there. There are no explanation or guarantees given on the improvmx.com website, even no contact address. I would be worried about what they do with all the mail streaming through their servers.
  • beautiful.drifter
    beautiful.drifter over 6 years
    I've tested this option this week and it didn't work. Maybe the service is down?
  • niftylettuce
    niftylettuce over 6 years
    @Vacilando You might want to try forwardemail.net instead, it's completely open-source, encrypted, and privacy-focused.
  • balki
    balki over 5 years
    It is important to note that all DNS records are public and by this approach, anyone can view your personal gmail address by inspecting your domain's dns records
  • niftylettuce
    niftylettuce over 5 years
    I am adding in support for encrypted TXT records and self-hosted TXT records if you have a lengthy alias list. Follow this GitHub issue github.com/niftylettuce/forward-email/issues/3 or email me at [email protected] to get notified when it is available.
  • dsturbid
    dsturbid over 4 years
    Looks like they were bought and re-launched in 2019: indiehackers.com/product/improvmx
  • niftylettuce
    niftylettuce about 4 years
    Just an update - encrypted TXT support has been added a few months ago.
  • niftylettuce
    niftylettuce about 4 years
    Yes @dailysleaze and the new owners have a history of buying/selling services.
  • AlienWebguy
    AlienWebguy over 3 years
    Really great project - got up and running in about 5 minutes. This was a big time saver in my case where my domain is on Namecheap but I run my site through CloudFlare - Namecheap's email forwarding only works with their default DNS and CloudFlare doesn't offer email forwarding, so Namecheap now uses CF DNS which uses ForwardEmail.net MX/TXT records and it works great. Thanks for making this!
  • Wizou
    Wizou over 3 years
    With OVH closing their 'MX redirect' service, this was my solution. Thanks @niftylettuce