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

clamav #65

Open
oconshaw opened this issue Oct 12, 2017 · 8 comments
Open

clamav #65

oconshaw opened this issue Oct 12, 2017 · 8 comments

Comments

@oconshaw
Copy link

Using modoboa 1.8.2

I don't think clamav is working quite right. When I check the maillog I see nothing about infected messages even though I have sent test EICAR test files to my email account. The files reach my email account without being flagged at all.
I can see that clamav is running, but it doesn't seem to be working:
amavis 883 1 0 07:34 ? 00:00:23 /usr/sbin/clamd -c /etc/clamd.d/amavisd.conf --foreground=yes

In /etc/amavisd/amavisd.conf I can see that clamav seems to be called correctly by amavis; at least I think this is where avamis calls clamav:
['ClamAV-clamd',
&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamd.amavisd/clamd.sock"],
qr/\bOK$/m, qr/\bFOUND$/m,
qr/^.?: (?!Infected Archive)(.) FOUND$/m ],

How do I troubleshoot this?

@tonioo
Copy link
Member

tonioo commented Oct 19, 2017

@oconshaw How did you install modoboa?

@tonioo
Copy link
Member

tonioo commented Nov 10, 2017

@oconshaw ping

@oconshaw
Copy link
Author

I installed it per your instructions using the installer.

@tonioo
Copy link
Member

tonioo commented Nov 10, 2017

@oconshaw Can you check the /etc/amavis/conf.d/15-content_filter_mode file please?

@oconshaw
Copy link
Author

oconshaw commented Nov 10, 2017 via email

@tonioo
Copy link
Member

tonioo commented Nov 10, 2017

My bad, the configuration file is /etc/amavisd.conf. At the begining of this file, you should see something like @bypass_virus_checks_maps = (1);. Is it commented or not?

@oconshaw
Copy link
Author

oconshaw commented Nov 10, 2017 via email

@tonioo
Copy link
Member

tonioo commented Nov 10, 2017

So clamd should be used... Can you check amavis startup logs to see if it finds clamav?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants