postfix, msmtp and domainfactory - reloaded

Sven Bachmann
Hi, because it didn’t work like it should, today I sat down and tried to fix it - with success :-) My config now sends all mail which is sent on my server to my external account at domainfactory. So I don’t need to check if there are any errors occured, because the errror mail will be forwarded. How does my config look? I’ll only post the relevant parts. /etc/postfix/main.cf

Unzip/unrar multiple files with file-specific folders

Sven Bachmann
Hi, if you want to unzip/unrar multiple files in a directory, but want to create a special folder for each content, you can use the following bash-code. #!/bin/bash IFS=' ' # ZIP files for i in `ls *zip`; do DIRNAME=${i%.zip} mkdir $DIRNAME cd $DIRNAME unzip ../$i cd .. done # RAR files for i in `ls *rar`; do DIRNAME=${i%.rar} mkdir $DIRNAME cd $DIRNAME rar x ../$i cd .. done Bye Sven

SystemRescueCd 1.0.0 via Netboot

Sven Bachmann
Hi, first of all, your client PC should have a netboot capable network card and about 512MB RAM, because the SystemRescueCd image will be loaded completely to RAM. Server: setup a TFTP server which delivers the following files: pxelinux.0, rescuecd, initram.igz add a pxelinux.cfg file with the following content DEFAULT SysResCD TIMEOUT 10 PROMPT 1 LABEL SysResCD KERNEL rescuecd APPEND initrd=initram.igz rootpass=1234 dodhcp setkmap=us video=ofonly vga=0 cdrom scandelay=5 netboot=http://192.

Trying to port OpenWrt to the Siemens SE515

Sven Bachmann
Hi, currently, the following things are done, but I’m not sure if they all are necessary: changed kernel load-address to 0x80010000 enabled CFE and EARLY_PRINTK in Kconfig (EARLY_PRINTK was added from the opensourced old prom-Routines) disabled the mpi_init - does this device have a pci bus? So for now, the kernel spits out the following (the MPI-line is a fake ;-)): Linux version 2.6.24.2 (sven@lenni) (gcc version 4.1.2) #27 Thu Feb 21 03:36:16 CET 2008 Broadcom BCM963xx prom init Boot loader is : CFEv2 console [early0] enabled CPU revision is: 00028000 (Broadcom BCM6345) Broadcom BCM963xx MPI Determined physical RAM map: memory: 00fa0000 @ 00000000 (usable) Zone PFN ranges: Normal 0 -> 4000 Movable zone start PFN for each node early_node_map[1] active PFN ranges 0: 0 -> 4000 Built 1 zonelists in Zone order, mobility grouping off.

Bootable USB-Stick

Sven Bachmann
Hi, if your USB stick doesn’t boot (eg. with syslinux), you can try ms-sys. Its from a hint I found in the sysresccd.org forum posted by user “joelfranco” (Thanks). Don’t forget to use the fat filesystem ;-) ms-sys -s /dev/sdX Bye Sven

msmtprc for DomainFactory

Sven Bachmann
Hi there, for the last 3 days, my server stopped to send me any status mails. The problem was (without chaning anything on the system) that there was a missing domain entry in the msmtprc. So here is the full msmpt config file (for tls without certificate check): account df host smtprelaypool.ispgateway.de from foo@yourdomain.com domain yourdomain.com auth on user 012345 password EnterHere tls on tls_certcheck off Edit: Don’t forget to set the auto-from option.

Samsung SCX-4200 - there is sth going on...

Sven Bachmann
Hi there, maybe it’s interesting for you: Vladimir Koutny is developing a GPL scanner driver for this multifunction printer. The URL is: http://people.ksp.sk/~vlado/scx-xx/ Bye Sven

mdadm: remove RAID member

Sven Bachmann
Hi, to remove a harddisk from a software raid created with mdadm, which seems to be in use, you’ll first have to fail it and than remove it. mdadm --manage /dev/mdX --fail /dev/mapper/hdaX mdadm --manage /dev/mdX --remove /dev/mapper/hdaX Bye Sven

HP PSC 1210 all-in-one

Sven Bachmann
Hi, if you plan to buy a printer, I can tell you that the HP PSC 1210 all-in-one works like a charm in Gutsy. It also tells you that it is low on ink and you can easily switch between the black and color cartridge (the color cartridge can also print black, if the black one is empty). Also the scanner worked out of the box with xsane :-) Note: To get the exact ink level you can use the nifty “ink” tool.

mISDN compile error with kernel 2.6.22

Sven Bachmann
Hi, if you get an compilation error on kernel 2.6.22 with mISDN from git, try the following, which worked for me. Open with your favorite editor the file: mISDN/include/linux/isdn_compat.h Than change the following line: #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22) #define MISDN_COMPAT_KMEMCACHE #endif To: #if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,22) #define MISDN_COMPAT_KMEMCACHE #endif Note: Its just a replacement from < to <=, the other 2 lines stay as they are. Bye Sven