Page 1 of 1

CSF Blocking SMTP to Sendgrid

Posted: 29 Jul 2015, 04:34
by mrdigital
Hello,

I'm hoping someone can help me, I currently have a dedicated server running CLOUDLINUX 6.6 x86_64 standard – server WHM 11.50.0 (build 29) and I use CSF Firewall.

I've decided to use "SendGrid" (www.sendgrid.net) as an SMTP service to send invoices through my WHMCS system. Everything works for a couple of days and then the SMTP no longer works. Each time this happens, I have to disable CSF and re-enable, and then SMTP with sendgrid works again.

Does anyone have any suggestions how I can stop CSF from blocking SMTP to sendgrid servers?

Any assistance would be much appreciated.

Kind Regards,
Sean

Re: CSF Blocking SMTP to Sendgrid

Posted: 10 May 2016, 22:59
by CmdrSharp
I realize that this is a year old thread - but it's also the only one I could find on the issue, and I'm experiencing the exact same issue. Works fine for a day or two, then eventually WHMCS stops sending out e-mails and says that they're not able to. Restarting CSF works every time.

I've tried whitelisting SendGrid IP's, but that does not appear to help.

Any clue what could be causing this? SMTP_BLOCK is currently disabled.

Re: CSF Blocking SMTP to Sendgrid

Posted: 06 Aug 2016, 01:37
by Rabijit
@CmdrSharp Did you find any solution ?

Re: CSF Blocking SMTP to Sendgrid

Posted: 10 Aug 2016, 17:33
by FDGWeb
This is still occurring for us.

CSF is blocking the TCP request after a short while... dropping the connection to Sendgrid. We're working with our techs on this .. but it is definitely CSF. When we restar the firewall (CSF) it work again for hours to days before being blocked again. It is blocking internally in CSF.

Re: CSF Blocking SMTP to Sendgrid

Posted: 16 Nov 2016, 19:46
by padlavoine
Hi all,

I added line in css.allow with ip of smtp.sendgrid.net and restart css

tcp|in|dpt=587|d=159.122.224.196
tcp|out|dpt=587|s=159.122.224.196
tcp|in|dpt=587|d=159.122.224.197
tcp|out|dpt=587|s=159.122.224.197

but it does not change anything.
Any idea ?

Re: CSF Blocking SMTP to Sendgrid

Posted: 16 May 2018, 09:41
by Nirjonadda
FDGWeb wrote: 10 Aug 2016, 17:33 This is still occurring for us.

CSF is blocking the TCP request after a short while... dropping the connection to Sendgrid. We're working with our techs on this .. but it is definitely CSF. When we restar the firewall (CSF) it work again for hours to days before being blocked again. It is blocking internally in CSF.
I am have same issue. @ForumAdmin do you have any fix for this issue?

Re: CSF Blocking SMTP to Sendgrid

Posted: 01 Mar 2019, 12:49
by leocapurro
Hi! I have the same situation here. Any fix @ForumAdmin ?

Stop the firewall and start it again solved the issue, but my customer experience is not good.

Thanks in advance!

Re: CSF Blocking SMTP to Sendgrid

Posted: 01 Mar 2019, 13:05
by ForumAdmin