Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why maldet is not sending report as a mail? #220

Closed
fehmi opened this issue Mar 26, 2017 · 3 comments
Closed

Why maldet is not sending report as a mail? #220

fehmi opened this issue Mar 26, 2017 · 3 comments

Comments

@fehmi
Copy link

fehmi commented Mar 26, 2017

Centos 7. This is the error.

[root@do ~]#  maldet --report 170321-0115.21534 [email protected]
Linux Malware Detect v1.6
            (C) 2002-2017, R-fx Networks <[email protected]>
            (C) 2017, Ryan MacDonald <[email protected]>
This program may be freely redistributed under the terms of the GNU GPL v2

/usr/local/maldetect/internals/functions: line 608: -s: command not found
maldet(18718): {report} report ID 170321-0115.21534 sent to [email protected]

And this is the line 608.

if [ -f "$sessdir/session.$rid" ] && [ ! -z "$(echo $2 | grep '\@')" ]; th$
            cat $sessdir/session.$rid | $mail -s "$email_subj" "$2"
            eout "{report} report ID $rid sent to $2" 1
            exit

I think it is not find $mail variable. What is it?

@thebetterjort
Copy link

+1

@fehmi
Copy link
Author

fehmi commented May 9, 2017 via email

rfxn added a commit that referenced this issue May 26, 2017
@rfxn
Copy link
Owner

rfxn commented May 26, 2017

This issue has been addressed in latest commit by disabling email alerts when -z $mail and issuing a verbose warning on cli.

@rfxn rfxn closed this as completed May 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants