QuicksearchPersonalCategoriesSyndicate This Blog |
Monday, February 20. 2006Script: check for new security updates with cron and mail
This script checks for new updates and mails the output to the sysadmin!
Thursday, February 9. 2006Postfix with Amavis-new for virus scanning
Here is a short HowTo for configure Postfix to use Amavis with ClamAV for virus scanning!
First you should install ClamAV from backports.org, when you using the ClamAV from stable/sarge you have an old searching engine that maybe have some problems to recognize new viruses with the new files from ClamAV-freshclam. First add this line to your /etc/apt/sources.list: deb http://www.backports.org/debian sarge-backports main Now that is very important to create a /etc/apt/preferences file:
With this entry you deactivate all packages from backports.org this is important because we will only install ClamAV from backports. Save the file and run an apt-get update to receive the packagefiles from backports.org. Now install clamav with: apt-get install -t sarge-backports clamav clamav-freshclam The -t sarge-backports is necessary, because apt will now install the package from backports.org! Now install amavis-new: apt-get install amavis-new Edit your /etc/postfix/main.cf and add this for amavis:
Edit your /etc/postfix/master.cf and add this for amavis:
Now you have to add clamav user to the amavis system group and add the clamav user to the amavis system group in your /etc/group! Because clamav user must read files in the amavis directory and the amvis user must read files in the clamav directory. After the modification /etc/group should look like:
After this modification you have to restart all services! (postfix, clamav-daemon, clamav-freshclam, amvis) Than you have to edit the /etc/amavis/amavisd.conf: It's very big so I only list the changes:
->>change to your hostname
->> no mail to virussender. because often the from emailaddres is faked!
->> the recipient gets an email that he has received an virus email
->> postmaster gets no notification Safe the configuration file and restart your amavid! Now try to send an email and than try to send a virus from If the repicient gets an email about “VIRUS ( EICAR.Test) IN MAIL TO YOU” all works fine. If not, check the /var/log/mail.log and try to resolv the error!
(Page 1 of 1, totaling 2 entries)
|