By default when you rebuild the mail server in CWP with antispam then it comes with enabled ClamAV & SpamAssassin protection.
You can enable it from CWP.admin by going to MailServer Manager.

Test ClamAV

Send an email with content


If ClamAV works you will see the following in the log: /var/log/maillog

Dec 27 07:22:42 cwp1 clamd[17958]: /var/spool/amavisd/tmp/amavis-20211227T071305-18132-Ocyoo8yY/parts/p001: {HEX}EICAR.TEST.3.UNOFFICIAL FOUND

Dec 27 07:22:42 cwp1 amavis[18132]: (18132-02) Blocked INFECTED ({HEX}EICAR.TEST.3.UNOFFICIAL) {DiscardedOpenRelay,Quarantined}, []:46925 []  -> , Queue-ID: 9762E703FD2, Message-ID: , mail_id: TKHZnGx2Bs7T, Hits: -, size: 3868,, 111 ms

Dec 27 07:22:42 cwp1 postfix/smtp[12663]: 9762E703FD2: to=, relay=[]:10024, delay=0.34, delays=0.21/0.02/0/0.11, dsn=2.7.0, status=sent (250 2.7.0 Ok, discarded, id=18132-02 - INFECTED: {HEX}EICAR.TEST.3.UNOFFICIAL)

Test SpamAssassin

Send an email with content:


If SpamAssassin works you will see the following in the log: /var/log/maillog

Dec 27 07:25:37 cwp1 amavis[18133]: (18133-02) Blocked SPAM {DiscardedOpenRelay,Quarantined}, []:37637 []  -> , Queue-ID: 59C16703FD2, Message-ID: , mail_id: vES-jRB7LKPt, Hits: 999.904, size: 3903,, 579 ms