<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>166872</bug_id>
          
          <creation_ts>2007-02-14 18:11 0000</creation_ts>
          <short_desc>mail-mta/postfix - /etc/init.d/postfix does not support multiple instances</short_desc>
          <delta_ts>2008-03-17 18:51:20 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Server</component>
          <version>2006.1</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>code@edoceo.com</reporter>
          <assigned_to>net-mail@gentoo.org</assigned_to>
          <cc>philip@philipnet.com</cc>

      

      
          <long_desc isprivate="0">
            <who>code@edoceo.com</who>
            <bug_when>2007-02-14 18:11:58 0000</bug_when>
            <thetext>It&apos;s possible to run seperate instances of postfix on a single host (provided postfix is configured properly)  To make it work the init scripts need to pass the &quot;-c /etc/postfix.alt/&quot; parameter.  So what I did was to modify the init scripts to work like the openvpn scripts for multiple instances.

/etc/init.d/postfix will start postfix from the normal dir (/etc/postfix)
then make a symlnk
/etc/init.d/postfix.gate will start postfix from /etc/postfix.gate
and so forth

There are no changes in /etc/conf.d</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>code@edoceo.com</who>
            <bug_when>2007-02-14 18:16:18 0000</bug_when>
            <thetext>Created an attachment (id=110185)
Modifies /etc/init.d/postfix to support multiple instances like openvn script does

This is closely related to the /etc/init.d/openvpn script.
It was a copy, paste, tweak job</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>falco@gentoo.org</who>
            <bug_when>2008-03-17 18:51:20 0000</bug_when>
            <thetext>Hi David,

i implemented it in postfix-2.5.0 and 2.5.1. Please try and report if there is some trouble. Thanks for the idea and the patch.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>110185</attachid>
            <date>2007-02-14 18:16 0000</date>
            <desc>Modifies /etc/init.d/postfix to support multiple instances like openvn script does</desc>
            <filename>postfix.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHBvc3RmaXguZGlzdAkyMDA3LTAyLTExIDE1OjI1OjAxLjAwMDAwMDAwMCAtMDgwMAorKysg
cG9zdGZpeAkyMDA3LTAyLTExIDIzOjE3OjMzLjAwMDAwMDAwMCAtMDgwMApAQCAtMywyNyArMywz
OSBAQAogIyBEaXN0cmlidXRlZCB1bmRlciB0aGUgdGVybXMgb2YgdGhlIEdOVSBHZW5lcmFsIFB1
YmxpYyBMaWNlbnNlIHYyCiAjICRIZWFkZXI6IC92YXIvY3Zzcm9vdC9nZW50b28teDg2L21haWwt
bXRhL3Bvc3RmaXgvZmlsZXMvcG9zdGZpeC5yYzYuMi4yLjksdiAxLjEgMjAwNi8wMy8wNyAyMTow
NzoyMCBmZXJkeSBFeHAgJAogCitDT05GX0RJUj0iL2V0Yy9wb3N0Zml4IgorQ09ORl9PUFQ9IiR7
U1ZDTkFNRSMjKi59IgoraWYgW1sgLW4gJHtDT05GX09QVH0gJiYgJHtTVkNOQU1FfSAhPSAicG9z
dGZpeCIgXV07IHRoZW4KKwlDT05GX0RJUj0iJHtDT05GX0RJUn0uJHtDT05GX09QVH0iCitmaQor
CiBvcHRzPSIke29wdHN9IHJlbG9hZCIKIAogZGVwZW5kKCkgewogCXVzZSBsb2dnZXIgZG5zIHlw
YmluZCBhbWF2aXNkIG15c3FsIHBvc3RncmVzcWwgYW50aXZpcnVzIHBvc3RmaXhfZ3JleWxpc3Qg
bmV0IHNhc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