CSF setting required ///// urgent

I would like to block port 25/587/465/2525 ( SMTP ports ) from everywhere except my country ( India)?

NOTE - PORT 80 & 443 from everywhere.

I am looking for block access so that no one can access the server for spamming.


  • While it is possible to do this, your vps/server will crawl to a halt due to the sheer amount of cidr in each country, i will not be irresponsible and guide you further into this, try to a strike a deal with your upstream to make use of hardware firewall to do this since i assume you are a reseller.
  • Thanks @Numeriku.

    Any way/method which secure server 100% from spamming?

    1 ) PHP mail function disabled on the server
    2 ) SMTP_Block is enabled and only required users having SMTP access.

    What else required to protect mail server / postfix ?

  • make sure you have the postfix

    set to

    smtpd_sasl_auth_enable = yes
    smtpd_sasl_security_options = noanonymous


    As long as you are not using insecure scripts that people can access then you shouldnt have any issue with spammers sending mail through the server.

    Cyberpanel Managed & Unmanaged Shared & VPS Hosting by Cyberpanel Experts.
  • @hennaboy - Already having above setting on the server.
Sign In or Register to comment.
CyberPanel Discord

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!