Linux

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
Linux

Zimbra upgraded from 5.0.1 to 5.0.2

Today, my Zimbra installation was upgraded from version 5.0.1 to 5.0.2 on my Debian Etch 4.0 server. It looks like everything is working properly after the upgrade. Short description of the upgrade prosess Stop Zimbra and make sure every process has stopped # su – zimbra # zmcontrol stop # lsof | grep opt | […]

Read More
Linux

ReIndexing a Zimbra mailbox

I had some problems with one of my mailaccounts periodically not receiving mail. A temporary way to fix it was to restart zimbra as zimbra user (zmcontrol stop; zmcontrol start; ) It worked for a while, but came back usually after a couple of hours. The solution to this problem was to reindex the mailaccount […]

Read More