IMAP-Postfächer mit ClamAV scannen

Hier ist grob umrissen, was man anstellen muss, um das zu bewerkstelligen. Das Ganze basiert auf Spamassassin, ClamAV und ISBG

packet installation:
    spamassassin
    clamav
    clamav-database
    cpan
    cpanm
    pip

pip:
    pip install isbg
    
download:
    https://github.com/bigio/spamassassin-clamav
        (cf, pm, pre to /etc/mail/spamassassin) (use raw content!)
        
    https://www.cpan.org/authors/id/E/ES/ESAYM/File-Scan-ClamAV-1.95.tar.gz
        (to somewhere and unpack, then run
        cd to there
        perl Makefile.PL
        make
        make test
            (might fail due to match sig or the likes)
        make install
        perldoc perllocal
            (check if module is there. probably last entry.)
        )
        
config files:
    /etc/mail/spamassassin/local.cf
        uncomment
        report_safe 0
        to stop report with attachment
    
run stuff:
    spamassassin --lint
        and check for errors
    systemctl enable --now clamd.service
    systemctl enable --now spamd.service

showtime (no prisoners):
    isbg --imaphost HOST --imapuser USERNAME --spamc --delete --expunge --verbose --maxsize 1048576000 --partialrun 0