Requirement
- A gmail account
- A domain added to cloudflare
- No mail server self-hosting
What you will get
- Send and reply email using “[email protected]”
- No worries about all spam, blocking
notice this should also work with other email providers, with little tweaks.
cloudflare side
- Login to cloudflare dashboard, go to
Websites
-> chose your site ->Email Routing
- Add rules in
Routing rules
section, the alias will be[email protected]
-ish - An email will be sent to your gmail for verification
gmail side
Google Account Setting
->Security
-> enable2-Step Verification
- Goto https://myaccount.google.com/apppasswords, create an app password(will be used later), copy the password (remove the space in between!)
- Goto mail settings ->
Accounts and Import
, in theSend mail as
section, choose add, - A window pops up, and
- The first page is about the mail alias we talked in last section. Normally you would also uncheck “Treat as an alias.”
- The second window is not the cloudflare SMTP settings! SMTP Server:
smtp.gmail.com
, Username: the gmail name(without @gmail.com), Password: the SMTP app password you generated before - Check you inbox for a verification mail and youre good to go!
ps: You can also “make default” your alias in the Send mail as
section if you like:)