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

Mailto Email Attribute appears to not get used in clamav-scan.sh #47

Open
gyoza opened this issue Apr 22, 2015 · 2 comments
Open

Mailto Email Attribute appears to not get used in clamav-scan.sh #47

gyoza opened this issue Apr 22, 2015 · 2 comments

Comments

@gyoza
Copy link

gyoza commented Apr 22, 2015

Am I incorrect to assume that is where the specific attribute was intended to be used? Thanks!

@phendren
Copy link

After looking at the code to understand this better for myself - it seems that the mailto email attribute is setting the email "mailto" for the scan cron. However, there is also line 32 in the clamav-scan.sh script /usr/bin/mailx -s "Virus warning for $HOST at $NOW" root which will send email to the servers root user (configured email address). I will submit a PR to fix this.

@jblaine
Copy link

jblaine commented Nov 28, 2016

Ideally the script should not handle mailing at all.

It should spit its output to stdout and stderr. If it does that when run as a cron job, then the output will go to the mailto address via cron's handling. If it does that in any other context, one has control over where the output goes.

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