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:

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 (IP:

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

Webmin LDAP error

To resolve this error in the LDAP Users and Groups session:
Can't locate Net/ in @INC (you may need to install the Net::LDAP module) (@INC contains: /usr/local/lib/webmin /usr/local/lib/perl5/site_perl/mach/5.26 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.26/mach /usr/local/lib/perl5/5.26 /usr/local/lib/webmin/ . ..) at (eval 147) line 1.
BEGIN failed--compilation aborted at (eval 147) line 1.

Install ldap perl module:
pkg install p5-perl-ldap