To enable antivirus scanning for all mailboxes on a Plesk server run the following command as root.

 plesk db -Ne"select concat(m.mail_name,'@',d.name) as email from mail as m left join domains as d on m.dom_id=d.id"| while read i; do plesk bin mail -u $i -antivirus inout; done