ctserver.org Foren-Übersicht
Home |  Forum |  FAQ |  Suchen |  Haftungsausschluß |  Impressum
Downloads |  Chat |  RSS Feed |  Links |  Shop |  Partner
Einloggen, um private Nachrichten zu lesen |  Registrieren |  Login

Scalix 11.4.5 Released

 
Neues Thema eröffnen   Neue Antwort erstellen    ctserver.org Foren-Übersicht -> Mail & Newsserver
Vorheriges Thema anzeigen :: Nächstes Thema anzeigen  
Autor Nachricht
Carsten
Golden User
Golden User


Anmeldungsdatum: 20.08.2005
Beiträge: 778

BeitragVerfasst am: 13 Aug 2009 13:41    Titel: Scalix 11.4.5 Released Antworten mit Zitat Nach oben Nach unten

Hier die Releasenotes. Habe ich noch nicht installiert.

GrC.

_________________
Hardware: Gigbyte GA-M56S-S3, AMD Athlon II X4 640 (Xen ondemand govenor), 4GB, 3 NICs (1 x forcedeth, 2 x r8168),
Systemplatte: HD502HI, Datenplatten: 2xHD153UI, 1xST31000520AS, 1xST3500830A, 1 x DVD-ROM JLMS XJ-HD165H
3 x DVB-C (Technisat Cablestar2, Technotrent C-1500, Satelco Easywatch), FritzCard USB, Switch GS716T
Software: Xen 4.0.1-rc4 / Kernel 2.6.18.8 (Dom0&DomUs), Endian 2.4, scalix 11.4.5, spamassassin 3.2.3, hylafax 4.3.1,
e-Tobi vdr-1.6.0 & 1.7.15 (HD), mt-daapd 0.2.4+r1376
Clients: 2xHauppauge MVP with vomp, Rokulabs Soundbridge, div. PCs, streaming with Vomp on Windows & iTunes,
Streaming Client POV ION/Atom auf Ubuntu Lucid mit XBMC und VNSI Streaming.
Nach oben
Benutzer-Profile anzeigen Private Nachricht senden E-Mail senden
neobiker
Moderator
Moderator


Anmeldungsdatum: 11.08.2005
Beiträge: 1147
Wohnort: Nürnberg / Umgebung

BeitragVerfasst am: 13 Aug 2009 22:11    Titel: Antworten mit Zitat Nach oben Nach unten

Misst - Carsten war schneller Wink

Aber mein geniales Scalix-Lenny install Script lief auf Anhieb durch, indem man einfach 11.4.4 auf 11.4.5 aendert Laughing
Schneller ist da auf Lenny wohl keiner Cool

_________________
Gruss neobiker
Der Computer macht genau das, was Du ihm sagst - nicht das, was Du von ihm willst!

<- Wiki; Celsius M450 C2Duo/2.13GHz, 6GB, 3xSATA, RAID1 + Snapshot Backups, Samba, Fritzcard ISDN + mtG-Capri = LAN-Fax (PDF-Email), Anrufbeantworter (Wav-Email), Scalix / Webmail + Outlook, VDR 7, DSL-WLAN-Router (NAT / Firewall !) vor XEN-Endian Firewall (RED, ORANGE, GREEN), WLAN inkl. VPN (IPSEC, SSL), DMZ (Webmail Reverse Proxy)
Nach oben
Benutzer-Profile anzeigen Private Nachricht senden Website dieses Benutzers besuchen
neobiker
Moderator
Moderator


Anmeldungsdatum: 11.08.2005
Beiträge: 1147
Wohnort: Nürnberg / Umgebung

BeitragVerfasst am: 15 Aug 2009 09:14    Titel: Antworten mit Zitat Nach oben Nach unten

So, habe gestern auf den 11.4.5 auf LENNY produktiv umgestellt Wink
Nachdem es ein Maintenance Release ist, hat das erwartungsgemäß ohne Probleme geklappt.

Habe aber eine neue DomU aufgesetzt und die Usermailboxen mit sxmboxexp exportiert und anschliessend mit sxmboximp importiert.

Ich verwende zum Backup übrigens folgendes Script das ich per cronjob starte (ACHTUNG: es mountet $backuproot read-only! also ist dafür eine eigene Partition einzubinden!):
Code:
#!/bin/sh
###############################################################################
# sxbackup:
#   a backup script for scalix mail servers
#
#   This script is used to backup Scalix mail servers; it exports each
#   user to a bzip2 compressed file using the 'sxmboxexp' command, then
#   duplicates the scalix data directory using rsync.
#
#   Before using this program you should set the values of the variables
#   below to match your server/preferences.
#
#   For detailed descriptions of the available command line switches,
#   execute the program with the -h flag.
#
#
#   Copyright (C) 2006 Jon Allie <jon@jonallie.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
#
#
#
# ------------------------------ Modifications ----------------------------
#
# Neobiker last modified on Aug 2009 to use rsync with hardlinks and sxmboxexp instead of omcpuout
#
# Ianar? S?vi <ianare@gmail.com> last modified on 2006-10-13:
#
#   Combined various incarnations and patches of the original script
#   found here:  http://www.scalix.com/community/viewtopic.php?t=1922
#   into a fully working script. Huge thanks to all the original
#   contributors - I am but a shadow in their footsteps.
#
#   Added -r option and associated programming to allow rotation of backups
#   based on the day of the week (7 working backups)
#
#   Added -c option and associated programming to allow backing up of system
#   configuration files in case of complete hardware failure for example.
#
#   Added various error checking.
#
###############################################################################



### Main variables:
#   You MUST modify these for the script to work!
#
MAILNODE=$(omshowmn | grep '**' | tr -d \t | cut -f 3)
backuproot=/var/opt/scalix/backup
ROOT_BACKUP_DIR=/var/opt/scalix/backup
SCALIX_DIR=/var/opt/scalix/${MAILNODE:0:1}${MAILNODE: -1:1}
SCALIX_BIN=/opt/scalix/bin
LOGFILE=/var/log/sxbackup.log
USERFILE=/tmp/userfile.$$
DATE=`date +"%Y-%m-%d"`
PROCESS_BLOCK_SIZE=5
ROTATE_BACKUP=Y
BACKUP_CONFIGURATION=Y

### Configuration file locations:
#   Modify these if backing up configuration files.
#   The entire directory contents will be recursively tar'ed.
#   Use a blank value to skip.
#
CONF_MAIL=/etc/mail
CONF_SYSCONFIG=
CONF_HTTPD=/etc/apache2
CONF_AV=/etc/clamav
CONF_STUNNEL=
CONF_RULESET=
CONF_OTHER=


### function declarations

function usage
{
printf $"
Usage: sxbackup [-h] [-b backup dir] [-d scalix data dir] [-s scalix bin dir]
                [-l logfile] [-u user file] [-m mailnode] [-r rotate backups (Y|N)]
                [-c backup configuration files (Y|N)]

  sxbackup comes with ABSOLUTELY NO WARRANTY.  This is free software, and you
  are welcome to redistribute it under certain conditions.  See the GNU
  General Public Licence for details.

sxbackup is a shell script to perform both user level and system level backups
of a Scalix mail server. User mailboxes are backed up via the 'sxmboxexp' utility
and are stored in a configurable backup directory in a subdirectory named the
same as the mailnode being backed up. Systems level backups are performed by
copying the whole Scalix data dir (usually /var/opt/scalix) to a backup directory
using rysnc.

Most options can be configured by setting the values of the variables in the script
or can be passed to the script at runtime

Options:
    -h                  : print this message and exit

    -m <mailnode>       : mailnode to dump users from

    -b <backup dir>     : backup directory. This directory will store both the user and
                        system level backups. User backups are stored in a subdirectory
                        under this directory users/<mailnode>/<userfile>.

    -d <scalix dir>     : scalix data dir. Defaults to /var/opt/scalix

    -s <bin dir>        : scalix bin dir. Contains scalix utility binaries. Defaults to
                        /opt/scalix/bin

    -l <logfile>        : path to a logfile for logging backup actions.

    -u <userfile>       : userfile. This file is created during the user mailbox
                        backup. Defaults to /tmp/userfile.[pid]

    -r <Y|N>            : whether or not to rotate backups on 7 day schedule.

    -c <Y|N>            : whether or not to backup configuration files.


Copyright (C) 2006 by Jon Allie <jon@jonallie.com>

With contributions from Scalix.com forum members.\n\n"

exit ${1:-0}
}

function badInput
{
    echo "Use -h for more information."
    echo
    exit 1
}

function log_it
{
    echo "[ `date` ]: $*" >>$LOGFILE
}

function echo_and_log
{
    echo $*
    log_it $*
}

function clean_up
{
    echo_and_log "Cleaning up temporary files"
    [ -f $USERFILE ] && rm -f $USERFILE
}

function restart_on_error
{
    echo_and_log "Error: $*"
    start_scalix
    clean_up
    exit 1
}

function exit_with_error
{
    echo_and_log "Error: $*"
    clean_up
    exit 1
}

function start_scalix
{
    log_it "Starting Scalix services"
    /etc/init.d/scalix start
    [ "$?" != "0" ] && exit_with_error "Error restarting scalix services"
}

function pre_check
{
    # look for scalix directories
    for dir in $SCALIX_BIN $SCALIX_DIR
    do
        [ -d $dir ] || exit_with_error "A required Scalix directory $dir doesn't exist."
    done

    # make sure that the $BACKUP_DIR structure exists, try to create it if not.
    for dir in $BACKUP_DIR $CONFIG_DIR $BACKUP_DIR/users $BACKUP_DIR/users/$MAILNODE
    do
        if [ ! -d $dir ]
        then
            log_it "$dir doesn't exist: creating it"
            mkdir -p $dir || exit_with_error "Unable to create required directory $dir"
        fi
    done

    # clear out user backup files
    rm -rf $BACKUP_DIR/users/$MAILNODE/*

    # clear out timestamp
    rm -f $BACKUP_DIR/created:*

    # make new timestamp
    touch $BACKUP_DIR/created:\ $DATE
}

function dump_users
{
    # index for processing block
    let i=1
    let index=1

    # Build userfile
    $SCALIX_BIN/omshowu -m $MAILNODE|cut -f1 -d'/' >$USERFILE
    [ "$?" != "0" ] && exit_with_error "Unable to build userfile $USERFILE from mailnode $MAILNODE"

    # Loop over userfile and create backups. Use 'while read' instead of 'for' because of spaces in names
    while read sc_username
    do
        # Create a version of the username without spaces and other crappy characters
        nospaces=`echo $sc_username|sed -e "s/[ \.;=*'?_!]//g"`

        BACKUP_FILE="$BACKUP_DIR/users/$MAILNODE/${nospaces}-mbox.bz2"
        BACKUP_LIST="$BACKUP_DIR/users/$MAILNODE/${nospaces}-list"

        if [ $i -le $PROCESS_BLOCK_SIZE ]
        then
            echo "Adding Process: Number $index of $PROCESS_BLOCK_SIZE -- User: $sc_username"
            ## BACKGROUND PROCESS
            #$SCALIX_BIN/omcpoutu -n "$sc_username/$MAILNODE" -f - -F | bzip2 | cat > $BACKUP_FILE || echo_and_log "Error: Unable to complete backup operation for $sc_username" &
            $SCALIX_BIN/sxmboxexp --force -u "$sc_username" -l $BACKUP_LIST -a - | bzip2 | cat > $BACKUP_FILE || echo_and_log "Error: Unable to complete backup operation for $sc_username" &
            PIDs[$index]=$!
            let i+=1
            let index=$i
        else
            echo "Process block is full."
            echo "Waiting for first complete process..."
            while [ $i -gt $PROCESS_BLOCK_SIZE ]
            do
                for p in `seq 1 $PROCESS_BLOCK_SIZE`
                do
                        ps ${PIDs[$p]} > /dev/null
                        if [ "$?" != "0" ]
                        then
                                echo_and_log "Process number $p of $PROCESS_BLOCK_SIZE has completed. -- User: $sc_username"
                                unset PIDs[$p]
                                let index=$p
                                #echo "Adding Process: Number $index of $PROCESS_BLOCK_SIZE -- User: $sc_username"
                                ## BACKGROUND PROCESS
                                #$SCALIX_BIN/omcpoutu -n "$sc_username/$MAILNODE" -f - -F | bzip2 | cat > $BACKUP_FILE || echo_and_log "Error: Unable to complete backup operation for $sc_username" &
                                $SCALIX_BIN/sxmboxexp -u "$sc_username" -l $BACKUP_LIST -a - | bzip2 | cat > $BACKUP_FILE || echo_and_log "Error: Unable to complete backup operation for $sc_username" &
                                PIDs[$index]=$!
                                break 2
                        fi
                done
            done
        fi
    done < $USERFILE
    echo "All processes have been added."
    echo "Waiting for those still running..."
    wait
    echo_and_log "All users done!"
}

function sync_files
{
    echo_and_log "Beginning rsync of $SCALIX_DIR to $BACKUP_DIR"
    rsync -aq --delete --link-dest=${LINK_DIR}/ $SCALIX_DIR $BACKUP_DIR/ >>$LOGFILE

    if [ "$?" != "0" ]
    then
        restart_on_error "Rsync operation of $SCALIX_DIR to $BACKUP_DIR did not complete successfully"
    else
        echo_and_log "Completed rsync of $SCALIX_DIR to $BACKUP_DIR"
    fi
}

# Mount and Dismount commands for all reasons are in the following functions
# you can also mount windows-shares via smbclient e.g.
# here: mount for writing during backup, and mount readonly afterwards

mounting ()
{
    precom=0
    mount -o remount,rw ${backuproot} || mountfail
}

umounting ()
{
    postcom=0
    mount -o remount,ro ${backuproot} || umountfail
}

mountfail ()
{
  echo >&2 "I can't mount filesystem ${backuproot}"
  exit 1
}

umountfail ()
{
  echo >&2 "I can't unmount filesystem ${backuproot}"
  exit 1
}

# process command line arguments
# -h            : show help
# -b <dir>      : backup directory
# -l <file>     : log file
# -u <userfile> : userfile
# -m <mailnode> : main mailnode
# -d <dir>      : location of the scalix data dir
# -s <dir>      : location of the scalix bin dir
# -r <Y|N>      : rotate backups or not
# -c <Y|N>      : backup config files or not

while getopts hb:l:u:m:s:r:c: opt
do
    case "$opt" in
        h) usage ;;
        b) BACKUP_DIR=$OPTARG ;;
        l) LOGFILE=$OPTARG ;;
        u) USERFILE=$OPTARG ;;
        m) MAILNODE=$OPTARG ;;
        d) SCALIX_DIR=$OPTARG ;;
        s) SCALIX_BIN=$OPTARG ;;
        r) ROTATE_BACKUP=$OPTARG ;;
        c) BACKUP_CONFIGURATION=$OPTARG ;;
        \?) badInput ;;
    esac
done

# validate that all required options are set
for x in "$LOGFILE" "$ROOT_BACKUP_DIR" "$MAILNODE" "$SCALIX_DIR" "$SCALIX_BIN" "$USERFILE" "$ROTATE_BACKUP" "$BACKUP_CONFIGURATION"
do
    if [ -z "$x" ]
    then
        echo "A required parameter is missing, please check your command arguments."
        badInput
    fi
done

# mounting $backuproot write enable
mounting

# rotate backups or not
if [ "$ROTATE_BACKUP" = "Y" ]
    then
        DAYWEEK=`date +%A`
        DAYLINK=`date +%A -d '1 day ago'`
        BACKUP_DIR=$ROOT_BACKUP_DIR/$DAYWEEK
        LINK_DIR=$ROOT_BACKUP_DIR/$DAYLINK
    else
        BACKUP_DIR=$ROOT_BACKUP_DIR
fi

if [ "$BACKUP_CONFIGURATION" = "Y" ]
    then
        CONFIG_DIR=$BACKUP_DIR/configs
    else
        CONFIG_DIR=$BACKUP_DIR
fi

# initialize the logfile
>$LOGFILE

# call pre_check function to verify backup directory structure
pre_check

# backup configuration directories or not
if [ "$BACKUP_CONFIGURATION" = "Y" ]
    then
        # clear out old file first
        rm -f $CONFIG_DIR/* || echo "No backup config file to delete."

        for dir in $CONF_MAIL $CONF_SYSCONFIG $CONF_HTTPD $CONF_AV $CONF_STUNNEL $CONF_RULESET $CONF_OTHER
        do
            # don't process if no value given
            if [ ! -z "$dir" ]
            then
                # directory must exist
                if [ ! -d $dir ]
                then
                    echo_and_log "Config dir $dir doesn't exist: aborting!"
                else
                    # tar 'em up!
                    end=`expr match "$dir" '/.*/'`
                    tar -cf $CONFIG_DIR/${dir:$end}.tar $dir 2>&1| grep -v "^tar: Removing leading "

                    echo_and_log "tared $dir to $CONFIG_DIR/${dir:$end}.tar"
                fi
            fi
        done
fi

# call dump_users function to make backups of user mailboxes
dump_users

# stop scalix before doing the rsync
echo_and_log "Stopping scalix services"
/etc/init.d/scalix stop
[ "$?" != "0" ] && exit_with_error "Unable to halt scalix services"

# call sync_files function to make a backup of the $SCALIX_DIR
sync_files

# restart scalix services
start_scalix

# explicily call the clean_up function to erase leftover files
clean_up

# mounting $backuproot readonly
umounting

# exit successfully
echo_and_log "All operations complete"
exit 0

_________________
Gruss neobiker
Der Computer macht genau das, was Du ihm sagst - nicht das, was Du von ihm willst!

<- Wiki; Celsius M450 C2Duo/2.13GHz, 6GB, 3xSATA, RAID1 + Snapshot Backups, Samba, Fritzcard ISDN + mtG-Capri = LAN-Fax (PDF-Email), Anrufbeantworter (Wav-Email), Scalix / Webmail + Outlook, VDR 7, DSL-WLAN-Router (NAT / Firewall !) vor XEN-Endian Firewall (RED, ORANGE, GREEN), WLAN inkl. VPN (IPSEC, SSL), DMZ (Webmail Reverse Proxy)
Nach oben
Benutzer-Profile anzeigen Private Nachricht senden Website dieses Benutzers besuchen
KlausHeinisch
Golden User
Golden User


Anmeldungsdatum: 04.02.2006
Beiträge: 609
Wohnort: Hannover

BeitragVerfasst am: 30 Aug 2009 11:56    Titel: Sorry, Thread-Hijacking ;-) Antworten mit Zitat Nach oben Nach unten

Hi zusammen, hi neobiker.

Hat irgenjemand schon mal Erfahrungen damit gemacht, die Standard-
Konfiguration von Scalix auf Postfix umzustellen?

Ich bin nämlich ausgewiesener Sendmail-Verweigerer Crying or Very sad Embarassed Rolling Eyes Cool

_________________
Gruß, Klaus Wink
__________________________________________________________

Mein "RechenZentrum":
  • 1 Debian-Lenny mit ct-Server-3-Implantaten,
  • 1 MythTV-0.20-Backend und
  • 1 FritzBox, div. Clients
Die Systeme:
Server-3: Debian-LENNY als Dom-0, AMD-Athlon 64 X2 4850e, noch ohne CnQ,
Webserver, Virtual-Desktops und Infrastruktur-DomUs in Produktion (stabil),
4 * Endian-2.2 als BackEnd-Firewall (stabil) für Web, RAS, DMZ-FE & DMZ-BE
FritzBox: FrontEnd-Firewall und TCP-Port-Verteiler mit VoIP-Telefonie
Nach oben
Benutzer-Profile anzeigen Private Nachricht senden Website dieses Benutzers besuchen
Beiträge der letzten Zeit anzeigen:   
Neues Thema eröffnen   Neue Antwort erstellen    ctserver.org Foren-Übersicht -> Mail & Newsserver Alle Zeiten sind GMT + 1 Stunde
Seite 1 von 1

 
Gehe zu:  
Du kannst keine Beiträge in dieses Forum schreiben.
Du kannst auf Beiträge in diesem Forum nicht antworten.
Du kannst deine Beiträge in diesem Forum nicht bearbeiten.
Du kannst deine Beiträge in diesem Forum nicht löschen.
Du kannst an Umfragen in diesem Forum nicht mitmachen.
Du kannst Dateien in diesem Forum posten
Du kannst Dateien in diesem Forum herunterladen

Ähnliche Beiträge
Thema Autor Forum Antworten Verfasst am
Keine neuen Beiträge scalix Mailgrösse strayer Mail & Newsserver 2 26 Mai 2010 10:32 Letzten Beitrag anzeigen
Keine neuen Beiträge Scalix 11.4.6 Installation schlägt fehl Meta Mail & Newsserver 17 02 Apr 2010 21:46 Letzten Beitrag anzeigen
Keine neuen Beiträge Scalix: Thunderbird/Lightning-Anbindu... Petrie Mail & Newsserver 0 20 Feb 2010 00:57 Letzten Beitrag anzeigen
Keine neuen Beiträge Scalix: scalix-tomcat-connector für S... Petrie Mail & Newsserver 2 19 Feb 2010 16:57 Letzten Beitrag anzeigen
Keine neuen Beiträge Scalix und Mail Versand (mal wieder) zaks Mail & Newsserver 7 12 Feb 2010 22:11 Letzten Beitrag anzeigen


Powered by phpBB © 2001, 2005 phpBB Group.