Technical Goulash

clamscan

Updated script to scan linux servers for viruses. !/bin/bash Test log with Infected files LOGFILE=”/var/log/clamav/malware_detected.log”; LOGFILE=”/var/log/clamav/clamav-$(/bin/date +’%Y-%m-%d’).log”; EMAIL_TO=”you@yourdomain.com”; Need to build an email header to know which system is scanned. …

Using Postfix to Forward to GMail

apt-get install libsasl2-modules postfix bsd-mailx Internet site and FQDN vi /etc/postfix/sasl_passwd postmap /etc/postfix/sasl_passwd vi /etc/postfix/main.cf relayhost = [smtp.gmail.com]:587 smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = noanonymous smtp_tls_CAfile = /etc/postfix/cacert.pem …