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!
Tuesday, February 14. 2006boot kernel over network with initrd ramdisk
if you want to boot kernel and initrd over the network, please recompile the kernel and change the
CONFIG_BLK_DEV_RAM_SIZE= to your new size of the initrd. Per default it is 4MB that is not very much, if you use initrd for / 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! Wednesday, February 8. 2006lilo and automatically loading one kernel
If you can't switch the kernel and you can't type anything to the lilo console.
You can try the CTRL or CTRL+c key.... It was very crazy to have that problem. :-/ Tuesday, February 7. 2006Create SSL key with CSR file for https
If you want to create an OpenSSL for https you can use this openssl.cnf file.
Than use that command to create the key: openssl req -new -nodes -days 365 -keyout domain.tld.key -out domain.tld.csr Now openssl asks for the Information for the SSL Key:
Now you have an key and a csr file. Monday, February 6. 2006first work day over...
Now my first day at the new company is over.
Much to learn and many new people, but very nice work. Let's see what the next days will bring me.
(Page 1 of 1, totaling 6 entries)
|