Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have setup a new email server and now I need to test that Clam Antivirus is scanning messages correctly.

How should I do this in a safe and controlled way?

share|improve this question
up vote 11 down vote accepted

The easiest way would be to us an EICAR test file. Create a text file and add in the following code:


More information here

share|improve this answer

download the EICAR test file and scan it. it was made exactly for this purpose

share|improve this answer

You could try to mail the test virus file see

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.