Posts

Showing posts with the label ClamAV

Setup your own email server (MTA) on the cheap - part 4

We’ve already built our POSTFIX based MTA and its relaying mail to our target mailbox. We’ve already added SPAM Protection, but what about Viruses. ClamAV is a well-known, and well reputed, antivirus for Linux. They also have a daemon called clamsmtp which we can have look over our mail and make sure we’re not passing along any viruses. These are the steps I followed to add AV scanning.     1. First, let’s install ClamAV and ClamSMTP      sudo apt-get install clamsmtp     2. Now, let’s configure it. Open /etc/clamsmtpd.conf in your favourite editor. Most lines will be left but update these two configuration lines      This bug appears to be resolved in the latest version.     3. There is a small bug at the moment with permissions on some files, to correct these, run these commands:      sudo chown -R clamav:clamav /var/run/clamav/      sudo chown -R clamav:clamav /var/spool/...