In my csf.deny, I have 0.0.0.0/0
blocked to prevent requests being sent to the raw server IP. This creates issues with sending e-mails. I utilize Google SMTP to send e-mail. I can't seem to figure out how to whitelist Gmail's SMTP while blocking 0.0.0.0/0
. My Gmail SMTP settings are correct, and send e-mail properly when I don't have 0.0.0.0/0
blocked.
I've tried a variety of things to try to allow Gmail's SMTP through, including:
- Only blocking incoming requests to all ports from
0.0.0.0/0
with no rules on outgoing requests - Performing
nslookup smtp.gmail.com
, and whitelisting those IPs - Whitelisting
smtp.gmail.com
incsf.dyndns
No matter what I try, if 0.0.0.0/0
is in csf.deny
, e-mail will not be sent. Any suggestions?