CSF Blocking Gmail
Posted: 10 Sep 2010, 16:48
The mails sent out from my server to gmail accounts (mainly) are getting blocked, the mail fails after around a day or 2 saying connection refused.
Initially i thought this was gmail error, seeing the mail bounce. But on investigating on the issue, i found the mails in queue
When i click deliver now, it says Connection refused to the gmail server ip 74.125.155.27
This has been happening for quiet a month now, last week what i did was i went ahead and excluded all gmail ips(as far as i could gather) from lfd as well as csf allow ips. This is the code of advanced port filtering i used
Despite this, today again mails got blocked with same reason
I went to CSF interface, and searched for this ip, but all i got was
This means there is no block for that ip address.
The funniest part is when i restart CSF, the mail delivery resumes. This is not a coincidence, everytime i got this issue resolved but just restarting csf
And yes one more info, the gmail ips were "NOT" in temporary block too
Initially i thought this was gmail error, seeing the mail bounce. But on investigating on the issue, i found the mails in queue
When i click deliver now, it says Connection refused to the gmail server ip 74.125.155.27
This has been happening for quiet a month now, last week what i did was i went ahead and excluded all gmail ips(as far as i could gather) from lfd as well as csf allow ips. This is the code of advanced port filtering i used
Code: Select all
#-------------------------GOOGLE BOT ---------------##############
d=80:s=72.14.193.5 # GOOGLE
tcp:in:d=80:s=216.239.32.0/19
tcp:in:d=80:s=64.233.160.0/19
tcp:in:d=80:s=72.14.192.0/18
tcp:in:d=80:s=209.85.128.0/17
tcp:in:d=80:s=66.102.0.0/20
tcp:in:d=80:s=74.125.0.0/16
tcp:in:d=80:s=66.249.64.0/19
tcp:in:d=80:s=66.249.80.0/20
tcp:in:d=80:s=64.18.0.0/20
tcp:in:d=80:s=207.126.144.0/20
tcp:in:d=80:s=173.194.0.0/16
d=25:s=72.14.193.5 # GOOGLE inbound smtp
d=25:s=216.239.32.0/19
d=25:s=64.233.160.0/19
d=25:s=72.14.192.0/18
d=25:s=209.85.128.0/17
d=25:s=66.102.0.0/20
d=25:s=74.125.0.0/16
d=25:s=66.249.64.0/19
d=25:s=66.249.80.0/20
d=25:s=64.18.0.0/20
d=25:s=207.126.144.0/20
d=25:s=173.194.0.0/16
d=25:d=72.14.193.5 # GOOGLE outbound smtp
d=25:d=216.239.32.0/19
d=25:d=64.233.160.0/19
d=25:d=72.14.192.0/18
d=25:d=209.85.128.0/17
d=25:d=66.102.0.0/20
d=25:d=74.125.0.0/16
d=25:d=66.249.64.0/19
d=25:d=66.249.80.0/20
d=25:d=64.18.0.0/20
d=25:d=207.126.144.0/20
d=25:d=173.194.0.0/16
I went to CSF interface, and searched for this ip, but all i got was
Code: Select all
LOCALINPUT 6 0 0 ACCEPT tcp -- !lo * 0.0.0.0/0 74.125.0.0/16 tcp dpt:25
LOCALINPUT 18 0 0 ACCEPT tcp -- !lo * 74.125.0.0/16 0.0.0.0/0 tcp dpt:25
LOCALINPUT 30 0 0 ACCEPT tcp -- !lo * 74.125.0.0/16 0.0.0.0/0 tcp dpt:80
The funniest part is when i restart CSF, the mail delivery resumes. This is not a coincidence, everytime i got this issue resolved but just restarting csf
And yes one more info, the gmail ips were "NOT" in temporary block too