Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parserutils.php on line 202

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parserutils.php on line 205

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parserutils.php on line 314

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parserutils.php on line 454

Deprecated: Function split() is deprecated in /home/www/web535/html/dokuwiki/inc/auth.php on line 146

Warning: Cannot modify header information - headers already sent by (output started at /home/www/web535/html/dokuwiki/inc/parserutils.php:202) in /home/www/web535/html/dokuwiki/inc/auth.php on line 236

Warning: Cannot modify header information - headers already sent by (output started at /home/www/web535/html/dokuwiki/inc/parserutils.php:202) in /home/www/web535/html/dokuwiki/inc/actions.php on line 128
linux_scripts:mailserver.sh [wiki.BerndLux.de]
 

MTA verwaltung script

Mühseam drei oder 4 Deamons die im gesamtgefüge als MTA arbeiten von hand neu zu starten, also schnell ein script das dies tut.

#!/bin/bash

# script um bei debian den mail server komplett runter oder hoch zu fahren.
# mit allen dazu gehöen deamons und programmen.

MAIL="/etc/init.d/postfix"
#SMTP="/etc/init.d/dovecot"
POP3="/etc/init.d/dovecot"
P4S="/etc/init.d/pop-before-smtp"
 
 
case $1 in
 
 restart)
ARG="restart"
$MAIL $ARG
#$SMTP $ARG
$POP3 $ARG
$P4S $ARG
exit 0;
 ;;
 
 
 stop)
ARG="stop"
$MAIL $ARG
#$SMTP $ARG
$POP3 $ARG
$P4S $ARG
exit 0;
 ;;
 
 
 start)
ARG="stop"
$MAIL $ARG
#$SMTP $ARG
$POP3 $ARG
$P4S $ARG
exit 0;
 
 ;;
 
*)
echo "Schnelles script von blux (http://berndlux.de ) ";
echo "um bei debian servern den gesammten MTA zu starten oder zu stoppen";
 
;;
 
esac
exit 0;

Bernd 2006/10/31 19:49

 
linux_scripts/mailserver.sh.txt · Zuletzt geändert: 2006/10/31 19:51 von bernd
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki