~ubuntu-branches/ubuntu/hoary/postfix/hoary-security

« back to all changes in this revision

Viewing changes to README_FILES/PACKAGE_README

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2004-10-06 11:50:33 UTC
  • Revision ID: james.westby@ubuntu.com-20041006115033-ooo6yfg6kmoteu04
Tags: upstream-2.1.3
ImportĀ upstreamĀ versionĀ 2.1.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
GGuuiiddeelliinneess ffoorr PPaacckkaaggee BBuuiillddeerrss
 
2
 
 
3
-------------------------------------------------------------------------------
 
4
 
 
5
PPuurrppoossee ooff tthhiiss ddooccuummeenntt
 
6
 
 
7
This document has hints and tips for those who manage their own Postfix
 
8
distribution for internal use, and for those who maintain Postfix distributions
 
9
for general use.
 
10
 
 
11
GGeenneerraall ddiissttrriibbuuttiioonnss:: pplleeaassee pprroovviiddee aa ssmmaallll ddeeffaauulltt mmaaiinn..ccff ffiillee
 
12
 
 
13
The installed main.cf file must be small. PLEASE resist the temptation to list
 
14
all 300+ parameters in the main.cf file. Postfix is supposed to be easy to
 
15
configure. Listing all 300+ in main.cf defeats the purpose. It is an invitation
 
16
for hobbyists to make random changes without understanding what they do, and
 
17
gets them into endless trouble.
 
18
 
 
19
GGeenneerraall ddiissttrriibbuuttiioonnss:: pplleeaassee iinncclluuddee RREEAADDMMEE oorr HHTTMMLL ffiilleess
 
20
 
 
21
Please provide the applicable README or HTML files. They are referenced by the
 
22
Postfix manual pages and by other files. Without README or HTML files, Postfix
 
23
will be difficult if not impossible to configure.
 
24
 
 
25
PPoossttffiixx IInnssttaallllaattiioonn ppaarraammeetteerrss
 
26
 
 
27
Postfix installation is controlled by a dozen installation parameters. See the
 
28
postfix-install and post-install files for details. Most parameters have
 
29
system-dependent default settings that are configurable at compile time, as
 
30
described in the INSTALL file.
 
31
 
 
32
PPrreeppaarriinngg aa pprree--bbuuiilltt ppaacckkaaggee ffoorr ddiissttrriibbuuttiioonn ttoo ootthheerr ssyysstteemmss
 
33
 
 
34
You can build a Postfix package on a machine that does not have Postfix
 
35
installed on it. All you need is Postfix source code and a compilation
 
36
environment that is compatible with the target system.
 
37
 
 
38
You can build a pre-built Postfix package as an unprivileged user.
 
39
 
 
40
First compile Postfix. After successful compilation, execute:
 
41
 
 
42
     % sh postfix-install
 
43
 
 
44
You will be prompted for installation parameters. Specify an install_root
 
45
directory other than /. The mail_owner and setgid_group installation parameter
 
46
settings will be recorded in the main.cf file, but they won't take effect until
 
47
the package is unpacked and installed on the destination machine.
 
48
 
 
49
If you want to fully automate this process, specify all the non-default
 
50
installation parameters on the command line:
 
51
 
 
52
     % sh postfix-install -non-interactive
 
53
    install_root=/some/where ...
 
54
 
 
55
BBeeggiinn SSeeccuurriittyy AAlleerrtt
 
56
 
 
57
WWhheenn bbuuiillddiinngg aann aarrcchhiivvee ffoorr ddiissttrriibbuuttiioonn,, bbee ssuurree ttoo aarrcchhiivvee oonnllyy ffiilleess aanndd
 
58
ssyymmbboolliicc lliinnkkss,, nnoott tthheeiirr ppaarreenntt ddiirreeccttoorriieess.. OOtthheerrwwiissee,, uunnppaacckkiinngg aa pprree--bbuuiilltt
 
59
PPoossttffiixx ppaacckkaaggee mmaayy mmeessss uupp ppeerrmmiissssiioonn aanndd//oorr oowwnneerrsshhiipp ooff ssyysstteemm ddiirreeccttoorriieess
 
60
ssuucchh aass // //eettcc //uussrr //uussrr//bbiinn //vvaarr //vvaarr//ssppooooll aanndd ssoo oonn.. TThhiiss iiss eessppeecciiaallllyy aann
 
61
iissssuuee iiff yyoouu eexxeeccuutteedd ppoossttffiixx--iinnssttaallll ((sseeee aabboovvee)) aass aann uunnpprriivviilleeggeedd uusseerr..
 
62
 
 
63
EEnndd SSeeccuurriittyy AAlleerrtt
 
64
 
 
65
Thus, to tar up the pre-built package, take the following steps:
 
66
 
 
67
    % cd INSTALL_ROOT
 
68
    % rm -f SOMEWHERE/outputfile
 
69
    % find . \! -type d -print | xargs tar cf SOMEWHERE/outputfile
 
70
    % gzip SOMEWHERE/outputfile
 
71
 
 
72
This way you will not include any directories that might cause trouble upon
 
73
extraction.
 
74
 
 
75
IInnssttaalllliinngg aa pprree--bbuuiilltt PPoossttffiixx ppaacckkaaggee
 
76
 
 
77
  * To unpack a pre-built Postfix package, execute the equivalent of:
 
78
 
 
79
    # umask 022
 
80
    # gzip -d <outputfile.tar.gz | (cd / ; tar xvpf -)
 
81
 
 
82
    The umask command is necessary for getting the correct permissions on non-
 
83
    Postfix directories that need to be created in the process.
 
84
 
 
85
  * Create the necessary mail_owner account and setgid_group group for
 
86
    exclusive use by Postfix.
 
87
 
 
88
  * Execute the postfix command to set ownership and permission of Postfix
 
89
    files and directories, and to update Postfix configuration files. If
 
90
    necessary, specify any non-default settings for mail_owner or setgid_group
 
91
    on the postfix command line:
 
92
 
 
93
    # postfix set-permissions upgrade-configuration \
 
94
           setgid_group=xxx mail_owner=yyy
 
95
 
 
96
    With Postfix versions before 2.1 you achieve the same result by invoking
 
97
    the post-install script directly.
 
98