annotate INSTALL @ 189:dc89737b27aa

removed the pop-before-smtp (smtp-after-pop) function this kind of authentication is superseded by SMTP AUTH today removing it is a step towards removing the POP stuff completely If you still rely on pop-before-smtp, stay with 0.2.x or run an arbitrary pop client before
author meillo@marmaro.de
date Thu, 15 Jul 2010 10:33:53 +0200
parents b6fc62ea6058
children 89f951be358f
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.
174
dbe3dadd1afe Documentation improvements in the INSTALL file and some man pages
meillo@marmaro.de
parents: 92
diff changeset
2 For installing on GNU/Linux distributions read docs/INSTALL.linux.
59
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
181
8b17ea9fd17b added comments on how to compile with glib-1.2
meillo@marmaro.de
parents: 175
diff changeset
9 distribution probably provides it. Glib-2.0 works out of the box, for
8b17ea9fd17b added comments on how to compile with glib-1.2
meillo@marmaro.de
parents: 175
diff changeset
10 glib-1.2, you need to adjust configure.ac. See the comment in there.
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
11
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
12 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
13
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
14 grep '^mail:' /etc/passwd
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
15 grep '^trusted:' /etc/group
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
16
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
17 shows that the user `mail' and the group `trusted' exist, it's
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
18 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
19
59
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
20 groupadd -g 42 trusted
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
21 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
22
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
23 If you use other names than `mail' and `trusted' use the options
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
24 described below for configure. The 23 and 42 are just a suggestion,
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
25 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
26 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
27 and the group `trusted'.
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
28
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
29
174
dbe3dadd1afe Documentation improvements in the INSTALL file and some man pages
meillo@marmaro.de
parents: 92
diff changeset
30 Compiling is a matter of the usual procedure. In the source directory,
59
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
31 after unpacking do:
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
32
59
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
33 ./configure
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
34 make
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
35 make install
0
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
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
38
59
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
39 Additional options for configure
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
40 --------------------------------
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
41
59
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
42 See the output of
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
43
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
44 ./configure -h
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
45
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
46 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
47
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
48 --with-user=USER
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
49 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
50 to exist before you 'make install'.
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
51
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
52 --with-group=GROUP
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
53 sets the group as which masqmail will run. Default is 'trusted'. GROUP
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
54 has to exist before you 'make install'.
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
55
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
56
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
57 --with-logdir=LOGDIR
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
58 sets the directory where masqmail stores its log files. It will be
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
59 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
60
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
61 --with-spooldir=SPOOLDIR
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
62 sets the directory where masqmail stores its spool files. It will be
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
63 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
64
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
65 --with-confdir=CONFDIR
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
66 sets the default configuration directory to CONFDIR, in case you
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
67 prefer another location than /etc/masqmail/.
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
68
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
69
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
70 --enable-auth
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
71 enables ESMTP AUTH support (disabled by default)
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
72
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
73 --enable-maildir
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
74 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
75
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
76 --enable-ident
175
meillo@marmaro.de
parents: 165 174
diff changeset
77 enables RFC 1413 support. If you have the libident dynamic library
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
78 installed, this will be linked, otherwise it will be statically linked
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
79 using the sources included in the package.
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
80
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
81 --enable-pop3
175
meillo@marmaro.de
parents: 165 174
diff changeset
82 enables POP3 support (disabled by default)
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
83
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
84 --disable-resolver
175
meillo@marmaro.de
parents: 165 174
diff changeset
85 disables resolver support. Without the resolver functions, masqmail
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
86 uses only gethostbyname() to resolve DNS names, and you cannot send
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
87 mail without a smart host. Not recommended.
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
88
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
89 --disable-smtp-server
175
meillo@marmaro.de
parents: 165 174
diff changeset
90 disables SMTP server support. You may want this if you do not need
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
91 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
92 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
93 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
94 discouraged unless your resources are extremely limited.
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
95
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
96
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
97 --with-libcryto
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
98 instead of using the md5 and hmac functions within the package, link
175
meillo@marmaro.de
parents: 165 174
diff changeset
99 dynamically with libcrypto. This applies only if you have POP3 or SMTP
meillo@marmaro.de
parents: 165 174
diff changeset
100 AUTH enabled. Only makes sense if your resources are limited and you
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
101 have libcrypto installed. Untested.
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
102
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
103 --with-glib-static
175
meillo@marmaro.de
parents: 165 174
diff changeset
104 links with glib statically. This makes the binary larger by around 30K
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
105 (i386 architecture), but if masqmail is the only binary using glib,
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
106 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
107 library installed.
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
108
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
109
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
110 --disable-debug
175
meillo@marmaro.de
parents: 165 174
diff changeset
111 disables debugging; setting it on the command line or in the
meillo@marmaro.de
parents: 165 174
diff changeset
112 configuration has no effect. Strongly discouraged, since you miss
meillo@marmaro.de
parents: 165 174
diff changeset
113 valuable information if something goes wrong.
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
114
59
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
115
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
116
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
117 Checking the installation
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
118 -------------------------
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
119
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
120 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
121
59
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
122 ls -ld /usr/sbin/masqmail /etc/masqmail /var/log/masqmail/ \
174
dbe3dadd1afe Documentation improvements in the INSTALL file and some man pages
meillo@marmaro.de
parents: 92
diff changeset
123 /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
124
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
125 should give output similar to
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
126
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
127 -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
128 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
129 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
130 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
131 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
132 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
133 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
134 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
135
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
136 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
137 the permissions of all files.
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
138
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
139
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
140
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
141 Making masqmail the default
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
142 ---------------------------
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
143
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
144 `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
145 matter which MTA actually runs. If you want to make masqmail the
185
b6fc62ea6058 improved INSTALL (2nd sendmail link)
meillo@marmaro.de
parents: 181
diff changeset
146 system's MTA (i.e. replace sendmail, postfix, etc), make two symbolic
b6fc62ea6058 improved INSTALL (2nd sendmail link)
meillo@marmaro.de
parents: 181
diff changeset
147 links:
59
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
148
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
149 ln -s /usr/local/sbin/masqmail /usr/lib/sendmail
185
b6fc62ea6058 improved INSTALL (2nd sendmail link)
meillo@marmaro.de
parents: 181
diff changeset
150 ln -s /usr/local/sbin/masqmail /usr/sbin/sendmail
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
151
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
152 Now every mailer that used to call sendmail will now call masqmail.
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
153 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
154 start masqmail. Probably with:
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 /etc/init.d/sendmail restart
59
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
157
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
158 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
159 script for masqmail. Currently none is distributed with masqmail.
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
160 (Hopefully this will change soon.) Please ask on the mailing list for
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
161 help.
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 You can also directly start masqmail as daemon with:
59
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
164
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
165 /usr/local/sbin/masqmail -bd -q30m
59
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
166
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
167
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
168
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
169 Basic Configuration
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
170 -------------------
59
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
171
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
172 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
173 hostname. It's the name under which masqmail operates. In most cases
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
174 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
175
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
176 The script `contrib/guess-hostname' tries to print the hostname of
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
177 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
178
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
179 Create a minimal config with:
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 echo "host_name = HOSTNAME" >/etc/masqmail/masqmail.conf
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 (Substitute `HOSTNAME' with the real value, of course.)
59
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
184
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
185 Such a setup (i.e. the default one) does:
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
186 - deliver mail locally
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
187 - accept mail from local (via stdin)
185
b6fc62ea6058 improved INSTALL (2nd sendmail link)
meillo@marmaro.de
parents: 181
diff changeset
188 - accept mail on localhost:25 (via SMTP) (if started as daemon)
b6fc62ea6058 improved INSTALL (2nd sendmail link)
meillo@marmaro.de
parents: 181
diff changeset
189
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
190 It does not
185
b6fc62ea6058 improved INSTALL (2nd sendmail link)
meillo@marmaro.de
parents: 181
diff changeset
191 - transfer mail to other machines
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
192 - accept mail from outside your machine
59
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
193
92
10d00e3235f2 updated docs (online_file, mserver_iface)
meillo@marmaro.de
parents: 59
diff changeset
194
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
195 For more elaborate setups, have a look at docs/*setup and
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
196 docs/INSTALL*. You can also take the example configuration files in
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
197 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
198 and masqmail.route(5) for reference.
59
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
199
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
200 All configuration files should go into /etc/masqmail.
59
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
201
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
202
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
203
941413084f56 updated docs; moved files around
meillo@marmaro.de
parents: 0
diff changeset
204 Written by oku.
165
f72de1e00fa5 updated and improved INSTALL
meillo@marmaro.de
parents: 164
diff changeset
205 Improved by meillo.