Linux

Tuning ext3 filesystem with directory indexing

WARNING! Only do the following on a unmounted filesystem and make sure the filesystems you are going to alter are cleanly unmounted before tuning them with the tune2fs or e2fsck utilities. (Boot from a LiveCD such as Knoppix if you need to.) Altering or tuning a filesystem while it is mounted can cause severe corruption!…

Read More
Scripting

Send e-mail with attachment from command line

mpack is a command line tool that can send e-mail with MIME formatted attachment. mpack -a -s “My subject From: Sender<from@example.com>” -d messagebody.txt attachment.file recipient@example.com Since mpack accepts linebreaks in the -s option (which is actually ment to set the subject line) we can include other headers right after it. Just like I did in…

Read More
Scripting

Problem sending e-mail from console

After installing Zimbra 5.0.x on my Debian Etch 4.0 server some of my shell scripts couldnæt send mail anymore. The reason to this behaviour was that I hadn’t removed the Exim mail server package, and I wouldnt do it either. The solution to this problem was to remove exim or locate the sendmail binaries and remove…

Read More
Linux

Kill zmlogger in Zimbra 5.0.x

The zmlogger prosess does never stop even though I run the zmcontrol stop command as zimbra user on my Zimbra 5.0.x installation. A temporary solution to stop the zmlogger process is to do the following in a console # su -zimbra # zmcontrol stop # exit # kill -9 `ps -u zimbra -o “pid=”`

Read More