FreeBSD 11.2 install Clamav with Postfix and Dovecot

Categories: BSD

Install clamav and clamsmtpd from ports cd /usr/ports/security/clamav/ make install clean cd /usr/ports/security/clamsmtp/ 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: […]

ZFS: replace a dead disk in a pool

Categories: BSD

[root@pr0nserv ~]# zpool status pool: pr0nserv state: DEGRADED status: One or more devices could not be opened. Sufficient replicas exist for the pool to continue functioning in a degraded state. action: Attach the missing device and online it using ‘zpool online’. see: http://www.sun.com/msg/ZFS-8000-D3 scrub: none requested config: NAME STATE READ WRITE CKSUM pr0nserv DEGRADED 0 […]

FreeBSD: add or remove an user to a group

Categories: BSD

If you need to add an user to an existing group, or more than one, do: pw usermod username -G group1,group2,group3 Remember that the user will be inserted ONLY in the groups that you have specified in the grouplist. If your user is in the wheel group and you do a -G ftp,games he’ll be […]