If you are having a website (https://www.wix.com/) hosted on a VPS server services that is under attack and starts sending tons of emails, is sometimes difficult to understand from where the attack is started. Moreover with this little PHP script you can understand from which folder the attack is coming.
If you are using any CMS, due to some plugins there is a possibility of automatic mail deliver continuously which will fail to deliver the mails under inbox. Your IP address may get blocked because of such auto-generated spam mails.
So it is better to check the php mail logs on a daily basis to avoid such instances. It is also possible to detect the blocked php files,unblocked php files, whitelist php files using our PHP (https://php.net/) Mail log module.
Steps needs to be carried out for php mail log check:
First you need to Login to our WHM Panel.
You can see Search box on the right hand side, kindly search for php mail log module and click on it.
Under the module you can see the list of blocked and unblocked php files. Logs related to mails created by particular php files.
By seeing this log it is very easy to visit the appropriate path mentioned on the logs and monitor the mails. Stop the php files if it is not created by yourself.
Note: If you are planning for hosting a website then Wordpress Hosting is Better option.In India there are a number of best and most affordable WordPress hosting (https://www.hostingraja.in/wordpress-hosting/) providers, you just need to choose the best one among them. For choosing the best and affordable you should consider some aspects like, maximum uptime, reliability, security and 24/7 available support.
Get a behind-the-pages look at my writing process, see what has inspired me to write my stories, read deleted scenes, and get exclusive special sneak peeks at what's to come!