PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > Adding additional postfix server to init daemon
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

Adding additional postfix server to init daemon

Réponse
 
LinkBack Outils de la discussion
Vieux 01/12/2006, 08h41   #1
Adam D
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Adding additional postfix server to init daemon

I just have created additional postfix servers on the mail server and would like to add the additional configs into the init daemon but looking at the scrip from LaMont Jones I am not able to decipher where to put the additional servers. I have an old script which is shorter and does not have a lot of the extra codes as the newest one.

Does anyone have an idea as to add additional postfix servers? I am a bit perplexed.

Thanks,

-Adam


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 01/12/2006, 17h10   #2
Hans du Plooy
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Adding additional postfix server to init daemon

On Thu, 2006-11-30 at 18:23 -0800, Adam D wrote:
> I just have created additional postfix servers on the mail server and
> would like to add the additional configs into the init daemon but
> looking at the scrip from LaMont Jones I am not able to decipher where
> to put the additional servers. I have an old script which is shorter
> and does not have a lot of the extra codes as the newest one.
>
> Does anyone have an idea as to add additional postfix servers? I am a
> bit perplexed.
>
> Thanks,
>
> -Adam
>


Do I understand you correctly that you're running two (or more)
instances of postfix?

This is what I use on Sarge for two instances. It's easily expandable
to handle more. You'll see the config dir for the second instance
is /etc/postfix-out:

#!/bin/sh
#
# Start or stop TWO Postfix Instances
# Assumes first instance config files are in /etc/postfix
# and second instance files are in /etc/postfix-out
#
# For Debian Linux 3.0.
#

PATH=/bin:/usr/bin:/sbin:/usr/sbin
DAEMON=/usr/sbin/postfix
NAME=Postfix

case "$1" in
start)
echo -n "Starting mail transport agent: Postfix"

$DAEMON start 2>&1 |
(grep -v 'starting the Postfix' 1>&2 || /bin/true)
echo "."
echo -n "Starting mail transport agent: Postfix-out"

$DAEMON -c /etc/postfix-out start 2>&1 |
(grep -v 'starting the Postfix' 1>&2 || /bin/true)
echo "."
;;

stop)
echo -n "Stopping mail transport agent: Postfix"
$DAEMON stop 2>&1 |
(grep -v 'stopping the Postfix' 1>&2 || /bin/true)
echo "."
echo -n "Stopping mail transport agent: Postfix-out"
$DAEMON -c /etc/postfix-out stop 2>&1 |
(grep -v 'stopping the Postfix' 1>&2 || /bin/true)
echo "."
;;

restart)
$0 stop
$0 start
;;
*)
echo "Usage: /etc/init.d/postfix {start|stop|restart}"
exit 1
;;
esac

exit 0


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 02/12/2006, 03h10   #3
Done Studios System Admin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Adding additional postfix server to init daemon

Hans du Plooy wrote:
> On Thu, 2006-11-30 at 18:23 -0800, Adam D wrote:
>> I just have created additional postfix servers on the mail server and
>> would like to add the additional configs into the init daemon but
>> looking at the scrip from LaMont Jones I am not able to decipher where
>> to put the additional servers. I have an old script which is shorter
>> and does not have a lot of the extra codes as the newest one.
>>
>> Does anyone have an idea as to add additional postfix servers? I am a
>> bit perplexed.
>>
>> Thanks,
>>
>> -Adam
>>

>
> Do I understand you correctly that you're running two (or more)
> instances of postfix?
>
> This is what I use on Sarge for two instances. It's easily expandable
> to handle more. You'll see the config dir for the second instance
> is /etc/postfix-out:
>


Thank you. That was a script I had used in the passed and worked very well. Sadly I don't know much about programing or the like but what is the difference with this one and the standard postfix init script maintained by the Debian package maintainer?

-Adam

> #!/bin/sh
> #
> # Start or stop TWO Postfix Instances
> # Assumes first instance config files are in /etc/postfix
> # and second instance files are in /etc/postfix-out
> #
> # For Debian Linux 3.0.
> #
>
> PATH=/bin:/usr/bin:/sbin:/usr/sbin
> DAEMON=/usr/sbin/postfix
> NAME=Postfix
>
> case "$1" in
> start)
> echo -n "Starting mail transport agent: Postfix"
>
> $DAEMON start 2>&1 |
> (grep -v 'starting the Postfix' 1>&2 || /bin/true)
> echo "."
> echo -n "Starting mail transport agent: Postfix-out"
>
> $DAEMON -c /etc/postfix-out start 2>&1 |
> (grep -v 'starting the Postfix' 1>&2 || /bin/true)
> echo "."
> ;;
>
> stop)
> echo -n "Stopping mail transport agent: Postfix"
> $DAEMON stop 2>&1 |
> (grep -v 'stopping the Postfix' 1>&2 || /bin/true)
> echo "."
> echo -n "Stopping mail transport agent: Postfix-out"
> $DAEMON -c /etc/postfix-out stop 2>&1 |
> (grep -v 'stopping the Postfix' 1>&2 || /bin/true)
> echo "."
> ;;
>
> restart)
> $0 stop
> $0 start
> ;;
> *)
> echo "Usage: /etc/init.d/postfix {start|stop|restart}"
> exit 1
> ;;
> esac
>
> exit 0
>
>



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 12h08.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,12913 seconds with 11 queries