Release quarantined banned mail from zimbra one-liner!

There are a few methods floating about for getting hold of banned or otherwise quarantined email from zimbra, but none of them that I could find offered a way to just release the file into someone's mailbox (a lot for uudecoding the files attachments and getting them to the user by some other means). If you find yourself having to do this regularly, you this may help. *

Edit amavisd.conf.in

Add or edit the following line, adding auth_required_release=>0 to theAM.PDP-SOCK policy bank

unlock zimbra accounts from command line

Zimbra will lock out an account that continues to fail authentication, it stops brute force attacks, and makes sure that your less clueful users get more support time with you because of caps lock etc. Its pretty easy to unlock a zimbra account from the admin gui, just right click, edit and set account status to active instead of lockout, but what about lockout of the admin account?

Enter zmprov: a nifty commandline tool that really cares (TM). 

To unlock an account, just (as the zimbra user of course):

archiving labels or folders from gmail

I was recently asked by someone who uses google mail for their domain if it was somehow possible to download all the emails from a just certain label or folder. Of course the web interface doesnt offer any help with this, and I dont know if any of the common free IMAP clients support archiving only a part of a mailbox in an open format.

openvpn and resolv.conf

openvpn is an amazingly easy to use, free vpn that uses ssl to secure communications, there are clients for Linux and Windows and the source is available. Ive been using it to connect to a few different places, and DNS is the one thing that keeps messing me around.

source nat on ipcop

Source nat allows you to masquerade a different external ip address based on the internal ip address. For example, you may have a few IP addresses on your ipcop and you want to use a different ip for a certain internal machine (eg a mail server), so you decide you need to use source nat (snat). Its pretty simple to set up once you know what chain to put it in on the ipcop!

To get it working without any mucking about, just log in with ssh and chuck something like this at it:

working intel wireless in ubuntu 8.10 (intrepid ibex)

There seems to be a lot of moaning that network manager in the latest alpha of ubuntu doesnt pick up wireless networks, with the blame given to nm, kde, gnome, ubuntu and linux in general. In the case of intel wireless at least, its a simple fix - because linux-ubuntu-modules has not yet been released for 2.6.26-3, the needed iwl firmware is not there (a quick look in /var/log/syslog confirms this). There are a few ways to fix this:

ipcop, openvpn and dd-wrt

This is a pretty specific recipe: Setting up an ipcop as an openvpn server, and using dd-wrt as a client in a branch office or other remote location.

Find your xbox cromwell bios version

If you are running linux on your xbox, you may well have the cromwell bios on your modchip, a nice quick way to determine the version of your cromwell bios is to use raincoat to read it, then grep the bios image for version strings:

(On Xebian:)

su -
apt-get install xbox-raincoat
raincoat -r /tmp/biosimage
strings /tmp/biosimage | grep -icromwell

This should give you something like:

Cromwell 2.40  

razor and dcc for zimbra on ubuntu

There are a couple of howtos around for getting Zimbra's antivirus tuned up a bit, but here is an Ubuntu-specific one!

installing dimdim on ubuntu linux

Dimdim is a cool new open source meeting service that lets you share your desktop, presentations, audio and video. Its also web based, and needs no installing. On top of all this, it works on Mac, Linux and even Windows! Its still alpha at the moment, but definately useable. Heres how to install it on Ubuntu server 6.06 or {insert your distro here}. The readme that comes with the tarball is very good, so have a look at that as well, but here are the basics:

expanding a raid 1 array in ubuntu

Ive been using RAID1 with mdadm for imaging servers for a while and it has been very reliable, but recently ran out of space. The 2 disks are 160Gb and I wanted to replace them with 400Gb disks, without having to muck about with copying files etc. Heres how to do it:

This is done on ubuntu dapper server, but I doubt it wil change between distros, so it will also work on {insert your distro here} with no (or very little) modification.

Swap disks

Remove one disk, replace with a bigger one.

Changing the hostname or computer name in ubuntu

This is a really simple one, but can cause a lot of weeping and gnashing of teeth. You were given the default "ubuntu" hostname when you installed, and now you want something cooler that enhances your street cred. Heres how to change it:

Edit /etc/hostname and change to the new value, you can use nano instead of vi, but remember that real men prefer vi.

Update zimbra graphs

Zimbra has some cool graphs to show to suits, but they are only updated once per day, so you can see the previous day's stats, but they are not current right now. To update the statistics graphs manually, just log in to the zimbra server with ssh and su to the zimbra user

sudo su
su - zimbra
/opt/zimbra/libexec/zmgengraphs

This will kick off the graph generation process. When its done, refresh the admin console and show off your new, up-to-date graphs.

Postfix as a simple backup mail server

Its really useful to have a backup mail server if you receive smtp connections directly. Postfix can do this very easily, and takes minutes to set up. You could get a vps cheaply somewhere and set it up with just postfix and save yourself a lot of trouble if your main mail server goes down.

Zimbra search folders

The Zimbra web interface has a cool search folder feature, just like Thunderbird or Outlook, it allows you to specify search criteria, and then save them as a virtual email folder. Every time you go to this folder, the search you specified is performed, and the results are shown in this folder. For people with huge mailboxes, this is a really good thing!

A simple but really useful one is "unread":

Syndicate content