linux-malware-detect icon indicating copy to clipboard operation
linux-malware-detect copied to clipboard

Enter from: adress

Open tiskloteweer opened this issue 5 years ago • 1 comments

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!

tiskloteweer avatar Nov 14 '19 14:11 tiskloteweer

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 :)

ponasromas avatar Feb 16 '20 13:02 ponasromas