linux-malware-detect
linux-malware-detect copied to clipboard
Enter from: adress
We're having problems getting the Maldet emails from the server delivered. This is because of the outgoing spamfilter (these are shared hosting servers) that does not accept email from root@servernaam. Is there some way to define a sender int the emails send?
Thank you in advance!
I'am searching answer for this question too. Edit: found dirty soution.
File: /usr/local/maldetect/internals/functions
Line 683 modified for mailx only:
cat $sessdir/session.$rid | $mail -r "[email protected]" -s "$email_subj" "$2"
Line 688 modified for sendmail/postfix only:
cat $sessdir/session.$rid | $sendmail -F "Sender Name" -f "[email protected]" -t "$2"
This is NOT recommended, because it will be overwritten once you update maldet version. But at least it will solve the problem :)