annotate INSTALL @ 168:8630e37ae445

merge
author meillo@marmaro.de
date Tue, 13 Jul 2010 22:54:25 +0200
parents f72de1e00fa5
children 25b769efafe6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
59
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
1 Additional information may be available in docs/ or on the website.
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
2 For installing on GNU/Linux distributions read docs/linux-distris.
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
3
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
4
59
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
5 Installation instructions
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
6 -------------------------
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
7
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
8 To compile masqmail you need glib (>= 1.2) (http://www.gtk.org). Your
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
9 distribution probably provides it.
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
10
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
11 You need a user and a group for masqmail to run. If
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
12
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
13 grep '^mail:' /etc/passwd
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
14 grep '^trusted:' /etc/group
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
15
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
16 shows that the user `mail' and the group `trusted' exist, it's
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
17 probably best to use these. If they don't exist, create them:
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
18
59
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
19 groupadd -g 42 trusted
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
20 useradd -u 23 -g 42 -d / -s /bin/sh -c "Mail Transfer Agent" mail
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
21
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
22 If you use other names than `mail' and `trusted' use the options
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
23 described below for configure. The 23 and 42 are just a suggestion,
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
24 you can use any (not yet used) number you like, but preferably one
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
25 lower than 100. It does not have to be the same for the user `mail'
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
26 and the group `trusted'.
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
27
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
28
59
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
29 Compliling is a matter of the usual procedure. In the source directory,
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
30 after unpacking do:
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
31
59
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
32 ./configure
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
33 make
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
34 make install
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
35
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
36
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
37
59
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
38 Additional options for configure
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
39 --------------------------------
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
40
59
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
41 See the output of
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
42
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
43 ./configure -h
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
44
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
45 Here is a selection of the options with additional explanations:
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
46
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
47 --with-user=USER
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
48 sets the user as which masqmail will run. Default is 'mail'. USER has
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
49 to exist before you 'make install'.
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
50
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
51 --with-group=GROUP
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
52 sets the group as which masqmail will run. Default is 'trusted'. GROUP
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
53 has to exist before you 'make install'.
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
54
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
55
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
56 --with-logdir=LOGDIR
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
57 sets the directory where masqmail stores its log files. It will be
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
58 created if it does not exist. Default is /var/log/masqmail/.
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
59
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
60 --with-spooldir=SPOOLDIR
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
61 sets the directory where masqmail stores its spool files. It will be
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
62 created if it does not exist. Default is /var/spool/masqmail/.
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
63
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
64 --with-confdir=CONFDIR
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
65 sets the default configuration directory to CONFDIR, in case you
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
66 prefer another location than /etc/masqmail/.
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
67
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
68
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
69 --enable-auth
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
70 enables ESMTP AUTH support (disabled by default)
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
71
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
72 --enable-maildir
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
73 enables qmail style Maildir support (disabled by default)
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
74
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
75 --enable-ident
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
76 enable RFC 1413 support. If you have the libident dynamic library
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
77 installed, this will be linked, otherwise it will be statically linked
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
78 using the sources included in the package.
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
79
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
80 --enable-pop3
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
81 enables pop3 support (disabled by default)
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
82
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
83 --disable-resolver
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
84 disable resolver support. Without the resolver functions, masqmail
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
85 uses only gethostbyname() to resolve DNS names, and you cannot send
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
86 mail without a smart host. Not recommended.
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
87
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
88 --disable-smtp-server
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
89 disable SMTP server support. You may want this if you do not need
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
90 masqmail to listen. In this case, you cannot use masqmail as a smart
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
91 host for other hosts on your LAN, you cannot use mail clients that
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
92 send SMTP, you cannot even use pine. In short, use of this option is
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
93 discouraged unless your resources are extremely limited.
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
94
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
95
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
96 --with-libcryto
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
97 instead of using the md5 and hmac functions within the package, link
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
98 dynamically with libcrypto. This applies only if you have pop3 or SMTP
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
99 AUTH enabled. Makes only sense if your resources are limited and you
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
100 have libcrypto installed. Untested.
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
101
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
102 --with-glib-static
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
103 link with glib statically. This makes the binary larger by around 30K
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
104 (i386 architecture), but if masqmail is the only binary using glib,
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
105 you save some space in total, because you do not need the shared glib
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
106 library installed.
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
107
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
108
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
109 --disable-debug
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
110 disable debugging, setting it on by command line or configuration has
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
111 no effect. Strongly discouraged, since you miss valuable information
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
112 if something goes wrong.
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
113
59
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
114
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
115
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
116 Checking the installation
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
117 -------------------------
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
118
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
119 Check that 'make install' worked correctly. The following command:
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
120
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
121 ls -ld /usr/local/sbin/masqmail /etc/masqmail /var/log/masqmail/ \
59
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
122 /var/run/masqmail /var/spool/masqmail/ /var/spool/masqmail/*
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
123
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
124 should give output similar to
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
125
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
126 -rwsr-xr-x 1 root root 399356 May 10 12:34 /usr/local/sbin/masqmail
59
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
127 drwxr-xr-x 2 root root 4096 May 10 12:34 /etc/masqmail
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
128 drwxr-xr-x 2 mail trusted 4096 May 10 12:34 /var/log/masqmail
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
129 drwxr-xr-x 2 mail trusted 4096 May 10 12:34 /var/run/masqmail
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
130 drwxr-xr-x 5 mail trusted 4096 May 10 12:34 /var/spool/masqmail
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
131 drwxr-xr-x 2 mail trusted 4096 May 10 12:34 /var/spool/masqmail/input
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
132 drwxr-xr-x 2 mail trusted 4096 May 10 12:34 /var/spool/masqmail/lock
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
133 drwxr-xr-x 2 mail trusted 4096 May 10 12:34 /var/spool/masqmail/popuidl
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
134
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
135 Important are the set-user-id bit for /usr/local/sbin/masqmail and
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
136 the permissions of all files.
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
137
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
138
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
139
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
140 Making masqmail the default
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
141 ---------------------------
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
142
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
143 `sendmail' is the de-facto standard name of the system's MTA, no
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
144 matter which MTA actually runs. If you want to make masqmail the
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
145 system's MTA (i.e. replace sendmail, postfix, etc), make a symbolic
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
146 link:
59
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
147
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
148 ln -s /usr/local/sbin/masqmail /usr/lib/sendmail
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
149
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
150 Now every mailer that used to call sendmail will now call masqmail.
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
151 If you already had an MTA installed and running, you can kill it and
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
152 start masqmail. Probably with:
59
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
153
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
154 /etc/init.d/sendmail restart
59
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
155
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
156 If this doesn't work as expected, you might need to add a special init
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
157 script for masqmail. Currently none is distributed with masqmail.
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
158 (Hopefully this will change soon.) Please ask on the mailing list for
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
159 help.
59
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
160
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
161 You can also directly start masqmail as daemon with:
59
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
162
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
163 /usr/local/sbin/masqmail -bd -q30m
59
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
164
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
165
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
166
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
167 Basic Configuration
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
168 -------------------
59
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
169
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
170 The only thing you must configure in order to use masqmail is the
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
171 hostname. It's the name under which masqmail operates. In most cases
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
172 it is the same as the machine's name, but it can be different.
59
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
173
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
174 The script `contrib/guess-hostname' tries to print the hostname of
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
175 your machine. The first output line is probably the best choice.
59
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
176
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
177 Create a minimal config with:
59
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
178
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
179 echo "host_name = HOSTNAME" >/etc/masqmail/masqmail.conf
59
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
180
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
181 (Substitute `HOSTNAME' with the real value, of course.)
59
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
182
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
183 Such a setup (i.e. the default one) does:
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
184 - deliver mail locally
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
185 - accept mail from local (via stdin)
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
186 - accept mail on localhost:25 (via SMTP)
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
187 It does not
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
188 - transfer any mail to other machines
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
189 - accept mail from outside your machine
59
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
190
92
10d00e3235f2 updated docs (online_file, mserver_iface)
meillo@marmaro.de
parents: 59
diff changeset
191
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
192 For more elaborate setups, have a look at docs/*setup and
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
193 docs/INSTALL*. You can also take the example configuration files in
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
194 examples/ as basis for your own. Take the man pages masqmail.conf(5)
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
195 and masqmail.route(5) for reference.
59
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
196
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
197 All configuration files should go into /etc/masqmail.
59
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
198
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
199
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
200
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
201 Written by oku.
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
202 Improved by meillo.