FreeBSD 11.2 install Clamav with Postfix and Dovecot

Install clamav and clamsmtpd from ports
cd /usr/ports/security/clamav/
make install clean
cd /usr/ports/security/clamsmtpd/
make install clean

Add those lines to /etc/rc.conf:
clamav_clamd_enable="YES"
clamsmtpd_enable="YES"

Start the first sync of virus definitions:
root@hazard:/usr/ports/security/clamav # freshclam
ClamAV update process started at Sun Sep 2 15:58:02 2018
Downloading main.cvd [100%]
main.cvd updated (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
Downloading daily.cvd [100%]
daily.cvd updated (version: 24895, sigs: 2072257, f-level: 63, builder: neo)
Downloading bytecode.cvd [100%]
bytecode.cvd updated (version: 327, sigs: 91, f-level: 63, builder: neo)
Database updated (6638597 signatures) from database.clamav.net (IP: 104.16.189.138)

Continue reading “FreeBSD 11.2 install Clamav with Postfix and Dovecot”

Mailgraph on FreeBSD

Have you just installed mailgraph and are you asking yourself “and now???”
Let’s see how to get it running on FreeBSD.
After installation copy your /usr/local/www/cgi-bin/mailgraph.cgi to your cgi-bin directory, default is /usr/local/www/apache24/cgi-bin/ and change the owner to www:www :

cp /usr/local/www/cgi-bin/mailgraph.cgi /usr/local/www/apache24/cgi-bin/
chown www:www /usr/local/www/apache24/cgi-bin/mailgraph.cgi

Be sure to have this line: Continue reading “Mailgraph on FreeBSD”