The bmannconsulting.com website
1---
2link: https://gist.github.com/irazasyed/a5ca450f1b1b8a01e092b74866e9b2f1
3tags:
4 - email
5 - Cloudflare
6 - Gmail
7 - SPF
8 - DMARC
9---
10The key part of this is that you need to add your routed email address as a new account in gmail, uncheck "treat as an alias", and then use a Gmail app password in the "send as" details for SMTP.
11
12[Create a new app password here](https://security.google.com/settings/security/apppasswords)
13
14Finally, you need to modify the SPF record to include Google:
15
16```
17v=spf1 include:_spf.mx.cloudflare.net include:_spf.google.com ~all
18```
19
20And set a DMARC record:
21
22```
23v=DMARC1; p=none; rua=mailto:<your-email-to-report>
24```
25