Archive for the ‘Mail’ Category

Zimbra OSE backup script

Tuesday, June 10th, 2008
zimbra-ose-backup-script

2010-06-13
From now on this backup script is part of oSource Development and thus will not be updated here. See oSource Development for further details. Visit oSource Development here…

This script will do various backups of Zimbra depending on which you choose, most of them are cold backups except the message backup which hot copies the store folder for possible individual mail retrieval later on.

Due to the size of the script it is attached as a file to this post.

There are some options in the script that should be changed before running it, below are these rows with a short explanation on what they are for. The ZimInstPath should point to the installation directory of Zimbra excluding the Zimbra folder. The ZimHome should say Zimbra unless you changed default home folder of Zimbra. Finally the two last variables ZimBackupPath & ZimTempPath should point to where you want this script to put the backup files, these can be separated from each other if it is needed but i recommend not to do it.

Important: As being pointed out on some systems the rsync isn’t installed by default and rsync is highly used in the script and thus needs to be installed.

Download here: ZimBackup.sh

2008-06-10:
Help inside the script for configuration options.
Logging capability, now you can log your backup either with minimal information or in a verbose mode that throws pretty much anything into the log useful for when trying to find backup problems.

(more…)

Mail server relay test

Thursday, March 20th, 2008
mail-server-relay-test

Sometime it is necessary to test if a mail server allows relaying, especially when you are in charge of it and want to make sure it is safe and will not be blocked by various spamlist.

1. Start by connection to your mail server via telnet.
$ telnet smtp.host.se 25

2. When your mail server has finished its hello phrase type the below in the order they stand pressing return efter each row, be sure to spell correct or you might end up redoing it from scratch.
EHLO
MAIL FROM: <email@notyourdomain.com>
RCPT TO: <email@notyourdomain.com>
DATA
Hello, this is the content of the mail.
.
QUIT

If you don’t get something stating, 550 5.7.1 Unable to relay for xxx after you enter the RCP TO line your server is open for relay and should be reconfigured immediately. The dot indicates the end of your message body and your mail will be added to the mail queue and sent to wherever you pointed it so use an address you or a friend/colleague has outside off your domain.

Install Zimbra 5.0.x on Ubuntu server 7.10

Thursday, March 20th, 2008
install-zimbra-5-0-x-on-ubuntu-server-7-10

Zimbra is a great mail system that is runnable out of the box after a relatively easy installation, featuring web-gui, pop3, smtp access and even a mobile interface for use when surfing from a mobile phone. The installation on Ubuntu 7.10 is starting to be obsolete as of the release of v8.04. Since the v8.04 is an LTS(Long Term Support) Zimbra will probably support it soon as a host OS, otherwise v6.06 is their official supported version of Ubuntu but as this how-to shows it can be installed and be runnable on v7.10.

(more…)