Email smarthost

Hi, I am using AWS to host my files and another server to manage email.

I can use proxy for AWS without any issue but I cannot use proxy for type A record or else email cannot be sent.

My question is, can I use proxy for smarthost? How do I configure that?


So we’re talking email sending here, yeah? Not receiving?

In that case the most likely problem is that after enabling Cloudflare proxying the DNS lookup of your domain, now returns the IP addresses of Cloudflare’s servers which are sat in front of your AWS setup. This means if you are using an SPF record which says ‘allows email from this specific host’ then when recipients look up that host to see if its allowed to send email, it isn’t the right IP.

Normally that’s the case if you’ve got SPF records like this: TXT “v=spf1 -all”

Fix is to say that you’re sending from the AWS IP address instead, and remove the DNS lookup: TXT “v=spf1 ip4: -all”

where is your AWS public IP.

[ If you’re talking receiving, check out this: Email Troubleshooting ]

Hi Saul,

Due to t the restriction on the forum, I cannot manage to post the reply, I hope you do not mind if I post the reply in the image format as attached.


I bumped up your permissions, lmk if that helps and sorry for the wait.

The Cloudflare proxy only supports HTTP and HTTPs, and those protocols are only supported on specific ports.

If you have a host that needs to use other protocols, such as IMAP, POP, SMTP, SSH, etc, you need to set it to :grey: DNS Only or the connections will drop at the Cloudflare proxy since they are not HTTP or HTTPS.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.