Testing anti-virus and anti-spam

Translation of the original in Catalan. Read it in: CatalàCastellano

A couple of notes for testing antivirus and antispam in the mail. Specifically I use them to test amavis with spamassassin and clamav.

To test an antivirus in the mail it's as simple as sending an EICAR file attached to an email.

To test the anti-spam, for example spamassassin, we can send a text string inside an email like the following:

XJS\*C4JDBQADN1\.NSBN3\*2IDNEN\*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL\*C\.34X

NOTE: the text string to test the anti-spam is, in fact, the same text string that the EICAR file contains inside it, although EICAR files are often put inside .zip files and other similar ones, to test the anti-virus thoroughly. So, if anyone knows a better way to test the anti-spam, let me know.