How to Configure maldet to scan daily and get reports on mail

You can configure maldet to scan the whole server daily and get the report via mail. For that you need to follow the below steps,

If you have maldet installed in your server see the next step. If not, for installing maldet click here.

Go to the maldet configuration file,

vi /usr/local/maldetect/conf.maldet

Here you can see the fields,

email_alert

You need to turn on this field.

email_addr

Here you need to give the mail id to receive the alerts

For eg: email_addr="admin@cpanelplesk.com"

You can check the default cron for daily maldet scan as:

/etc/cron.daily/maldet

If you need to add any other locations for scan other than default locations, you can do that by adding them to this file.

This will scan the server and will provide the result to the mention email.