Email Alias – How to Set Up a Professional Email for Free
Tags: email, alias, gmail
Published: 2023-02-08 14:27:08

---
title: Email Alias – How to Set Up a Professional Email for Free
published: true
date: 2022-10-12 19:37:42 UTC
tags: email, alias, gmail
cover_image: https://cdn.hashnode.com/res/hashnode/image/upload/v1670009776586/0f468b24-4423-4c26-953f-c43e1e219e6c.png?w=1600&h=840&fit=crop&crop=entropy&auto=compress,format&format=webp
canonical_url: https://www.freecodecamp.org/news/email-alias-set-up-a-professional-email-for-free/
---

> Originally published for [freeCodeCamp](https://www.freecodecamp.org/news/email-alias-set-up-a-professional-email-for-free/)

I needed to log in to AWS. But my main email address was rejected. I'd done this in the past and the account had been irreversibly deleted.

No reset option just a message saying the account was permanently deleted:

![Screen-Shot-2022-10-12-at-2.17.29-PM](https://www.freecodecamp.org/news/content/images/2022/10/Screen-Shot-2022-10-12-at-2.17.29-PM.png)

There are about a million ways to get a new email address, but I wanted to set up one of the domains I own with email.

And I figured there would probably be a way to have that forwarded to my Gmail.

I was right!

In this quick guide, I'll walk you through:

- How to create an email alias

- Forwarding mail from the alias to a Gmail account

- Sending mail as the Email Alias

## **How to Create an Email Alias**

I'm using Google products: [Google Domains](https://domains.google.com/registrar/) and [Gmail](https://gmail.com/). All these steps should apply generally to other Domain and Email services.

First, login to your domain provider and select the **Email** menu. You will be able to select " **Add email alias**" from the menu options.

![Screen-Shot-2022-10-12-at-2.37.40-PM](https://www.freecodecamp.org/news/content/images/2022/10/Screen-Shot-2022-10-12-at-2.37.40-PM.png)

## **How to Forward Email to Another Address**

Note: if you add the asterisk (\*) symbol, this will create a wildcard alias that forwards any email to the specified address. We'll be adding a specific alias in this tutorial.

Add whatever email you choose and enter where you'd like it to be forwarded to. I'll have [**hi@sieis.com**](mailto:hi@sieis.com) forwarded to my main Gmail address.

![Screen-Shot-2022-10-12-at-2.41.16-PM](https://www.freecodecamp.org/news/content/images/2022/10/Screen-Shot-2022-10-12-at-2.41.16-PM.png)

If you are using Google Name servers, then Google Domains will automatically set up the correct mail records (MX).

Otherwise, you'll need to set up these MX records. The process is exactly like setting up name servers if you've ever done that to host your website somewhere different than where you purchased the domain.

| **NAME/HOST/ALIAS** | **TYPE** | **TIME-TO-LIVE (TTL)** | **PRIORITY** | **VALUE/ANSWER/DESTINATION** |
| Blank or @ | MX | 1H | 5 | [gmr-smtp-in.l.google.com](http://gmr-smtp-in.l.google.com) |
| Blank or @ | MX | 1H | 10 | [alt1.gmr-smtp-in.l.google.com](http://alt1.gmr-smtp-in.l.google.com) |
| Blank or @ | MX | 1H | 20 | [alt2.gmr-smtp-in.l.google.com](http://alt2.gmr-smtp-in.l.google.com) |
| Blank or @ | MX | 1H | 30 | [alt3.gmr-smtp-in.l.google.com](http://alt3.gmr-smtp-in.l.google.com) |
| Blank or @ | MX | 1H | 40 | [alt4.gmr-smtp-in.l.google.com](http://alt4.gmr-smtp-in.l.google.com) |

Bonus: I've done this for a site hosted on Netlify, and it is very straightforward. From the Netlify dashboard, select **Options** , **Go to DNS panel** , and then enter the MX records:

![Screen-Shot-2022-10-12-at-3.42.25-PM](https://www.freecodecamp.org/news/content/images/2022/10/Screen-Shot-2022-10-12-at-3.42.25-PM.png)

👇

![Screen-Shot-2022-10-12-at-3.42.53-PM-2](https://www.freecodecamp.org/news/content/images/2022/10/Screen-Shot-2022-10-12-at-3.42.53-PM-2.png)

Google will send a one-time verification email here, but if you've previously done this verification it may not send another one.

Send yourself an email from a different address and check it out!

![Screen-Shot-2022-10-12-at-3.02.53-PM-1](https://www.freecodecamp.org/news/content/images/2022/10/Screen-Shot-2022-10-12-at-3.02.53-PM-1.png)

Email sent to Alias and forwarded to main Gmail

Note: sending from your main Gmail address doesn't show up as an unread message like it normally would when you email yourself. Send it from a different address at this point. After the rest of the steps, it will behave as normal when we complete the "send email as alias" part.

![Screen-Shot-2022-10-12-at-3.04.35-PM](https://www.freecodecamp.org/news/content/images/2022/10/Screen-Shot-2022-10-12-at-3.04.35-PM.png)

## **How to Send Email as the Alias**

If you reply from your main Gmail currently, the recipient will see that address when you reply instead of the alias. That may not be a big deal depending on the use case, but we can certainly set it up so that sent mail acts like it's coming from the custom domain as well.

![Screen-Shot-2022-10-12-at-3.08.37-PM](https://www.freecodecamp.org/news/content/images/2022/10/Screen-Shot-2022-10-12-at-3.08.37-PM.png)

You'll need to go to your [**Google Account Security**](https://myaccount.google.com/security) and click **App passwords**.

![Screen-Shot-2022-10-12-at-3.12.46-PM](https://www.freecodecamp.org/news/content/images/2022/10/Screen-Shot-2022-10-12-at-3.12.46-PM.png)

Select **Mail** for the app dropdown and **Other** for the device dropdown.

![Screen-Shot-2022-10-12-at-3.14.18-PM](https://www.freecodecamp.org/news/content/images/2022/10/Screen-Shot-2022-10-12-at-3.14.18-PM.png)

Enter the name of your domain and click **Generate**. It will give you a 16 digit password. Save this for use over in Gmail...

![Screen-Shot-2022-10-12-at-3.15.34-PM](https://www.freecodecamp.org/news/content/images/2022/10/Screen-Shot-2022-10-12-at-3.15.34-PM.png)

In Gmail, go to settings -> **Accounts and Import** and click **Add another email address**.

![Screen-Shot-2022-10-12-at-3.17.49-PM](https://www.freecodecamp.org/news/content/images/2022/10/Screen-Shot-2022-10-12-at-3.17.49-PM.png)

This will pop up a new small window where you will enter in the details of the alias. Enter the **name** you want recipients to view and the **address** of the alias. Make sure the " **Treat as an alias**" box is checked.

![Screen-Shot-2022-10-12-at-3.21.46-PM](https://www.freecodecamp.org/news/content/images/2022/10/Screen-Shot-2022-10-12-at-3.21.46-PM.png)

On the next screen, you'll need to change the **SMTP server** to [smtp.gmail.com](http://smtp.gmail.com), the **username** to your Gmail username, and then paste in the **16-digit password** you generated from Google Security in the steps above.

The **port** should be 587, and the **TLS** radial button should be checked.

Click **Add Account**.

![Screen-Shot-2022-10-12-at-3.23.33-PM](https://www.freecodecamp.org/news/content/images/2022/10/Screen-Shot-2022-10-12-at-3.23.33-PM.png)

This will prompt a verification code being sent to the email alias...which should in turn go to the Gmail account. Enter that in, and you'll now be good to go!

![Screen-Shot-2022-10-12-at-3.27.09-PM-1](https://www.freecodecamp.org/news/content/images/2022/10/Screen-Shot-2022-10-12-at-3.27.09-PM-1.png)

Back in our email thread in Gmail, you'll have the dropdown option when composing new messages to select which account you would like it to send from.

![Screen-Shot-2022-10-12-at-3.29.10-PM](https://www.freecodecamp.org/news/content/images/2022/10/Screen-Shot-2022-10-12-at-3.29.10-PM.png)

Now we can see from our full thread that our email forwards to and sends from our Gmail account using the email alias and display name we selected.

![Screen-Shot-2022-10-12-at-3.35.15-PM](https://www.freecodecamp.org/news/content/images/2022/10/Screen-Shot-2022-10-12-at-3.35.15-PM.png)

## **Thanks for reading!**

This was enlightening for me, and I hope it's helpful for you too.

Come say hey on Twitter: [https://twitter.com/EamonnCottrell](https://twitter.com/EamonnCottrell)

![goodtogo](https://www.freecodecamp.org/news/content/images/2022/10/goodtogo.gif)