Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 166872 - mail-mta/postfix - /etc/init.d/postfix does not support multiple instances
Summary: mail-mta/postfix - /etc/init.d/postfix does not support multiple instances
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-14 18:11 UTC by edoceo
Modified: 2008-03-17 18:51 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Modifies /etc/init.d/postfix to support multiple instances like openvn script does (postfix.patch,1.28 KB, patch)
2007-02-14 18:16 UTC, edoceo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description edoceo 2007-02-14 18:11:58 UTC
It'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 "-c /etc/postfix.alt/" 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
Comment 1 edoceo 2007-02-14 18:16:18 UTC
Created attachment 110185 [details, diff]
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
Comment 2 Raphael Marichez (Falco) (RETIRED) gentoo-dev 2008-03-17 18:51:20 UTC
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.