I have a centosOS server with WHM 11.42.0 installed on it. I also have csf 6.47. My MTA is Exim.
When I click on "Check Server Security" in csf, everything is OK, I have done every hint to make my server secure. Especially for the mail section (SMTP_BLOCK set to 1 and everything).
It was good for a couple months, no spammers were connecting successfully. I always received some emails notifications for too many login attempt to SMTP server, but always blocked.
Recently, some spammers somehow successfully breach my server's security and is sending emails from it. Every emails he sends come from mail accounts that doesn't exists, but with one of my domains (i.e: [email protected]).
So what I want is blocking every outgoing emails, except those from some trusted ip and from my php scripts (php mail function and PEAR mail_queue). I also want to block every outgoing email with the from header set to a non-existing mail account.
How can I perform these things with csf, cpanel or via SSH access?
When I click on "Check Server Security" in csf, everything is OK, I have done every hint to make my server secure. Especially for the mail section (SMTP_BLOCK set to 1 and everything).
It was good for a couple months, no spammers were connecting successfully. I always received some emails notifications for too many login attempt to SMTP server, but always blocked.
Recently, some spammers somehow successfully breach my server's security and is sending emails from it. Every emails he sends come from mail accounts that doesn't exists, but with one of my domains (i.e: [email protected]).
So what I want is blocking every outgoing emails, except those from some trusted ip and from my php scripts (php mail function and PEAR mail_queue). I also want to block every outgoing email with the from header set to a non-existing mail account.
How can I perform these things with csf, cpanel or via SSH access?