Mercurial > masqmail
comparison INSTALL @ 358:92340177150d
Eventually switched the default group from `trusted' to `mail'
All systems I run have a group `mail' but no group `trusted'.
Also changed the uid/gid to the common values 8/12.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Sun, 04 Sep 2011 12:19:41 +0200 |
parents | cab46cefa4ce |
children | 7a8d706f0ff1 |
comparison
equal
deleted
inserted
replaced
357:04744e3e8b18 | 358:92340177150d |
---|---|
10 glib-1.2, you need to adjust configure.ac. See the comment in there. | 10 glib-1.2, you need to adjust configure.ac. See the comment in there. |
11 | 11 |
12 You need a user and a group for masqmail to run. If | 12 You need a user and a group for masqmail to run. If |
13 | 13 |
14 grep '^mail:' /etc/passwd | 14 grep '^mail:' /etc/passwd |
15 grep '^trusted:' /etc/group | 15 grep '^mail:' /etc/group |
16 | 16 |
17 shows that the user `mail' and the group `trusted' exist, it's | 17 shows that the user `mail' and the group `mail' exist, it's probably |
18 probably best to use these. If they don't exist, create them: | 18 best to use these. If they don't exist, create them: |
19 | 19 |
20 groupadd -g 42 trusted | 20 groupadd -g 12 mail |
21 useradd -u 23 -g trusted -d /nonexistent -s /bin/false -c "masqmail MTA" mail | 21 useradd -u 8 -g mail -d /nonexistent -s /bin/false -c "masqmail MTA" mail |
22 | 22 |
23 If you use other names than `mail' and `trusted' use the options | 23 The 8 and 12 are common uid/gid for the user and group `mail', but you can |
24 described below for configure. The 23 and 42 are just a suggestion, | 24 use any (not yet used) number you like, preferably one lower than 100. |
25 you can use any (not yet used) number you like, but preferably one | 25 If you use other names than `mail' and `mail', you need to use the |
26 lower than 100. It does not have to be the same for the user `mail' | 26 configure options described below. |
27 and the group `trusted'. | |
28 | 27 |
29 | 28 |
30 Compiling is a matter of the usual procedure. In the source directory, | 29 Compiling is a matter of the usual procedure. In the source directory, |
31 after unpacking do: | 30 after unpacking do: |
32 | 31 |
48 --with-user=USER | 47 --with-user=USER |
49 sets the user as which masqmail will run. Default is 'mail'. USER has | 48 sets the user as which masqmail will run. Default is 'mail'. USER has |
50 to exist before you 'make install'. | 49 to exist before you 'make install'. |
51 | 50 |
52 --with-group=GROUP | 51 --with-group=GROUP |
53 sets the group as which masqmail will run. Default is 'trusted'. GROUP | 52 sets the group as which masqmail will run. Default is 'mail'. GROUP |
54 has to exist before you 'make install'. | 53 has to exist before you 'make install'. |
55 | 54 |
56 | 55 |
57 --with-logdir=LOGDIR | 56 --with-logdir=LOGDIR |
58 sets the directory where masqmail stores its log files. It will be | 57 sets the directory where masqmail stores its log files. It will be |
105 | 104 |
106 should give output similar to | 105 should give output similar to |
107 | 106 |
108 -rwsr-xr-x 1 root root 399356 May 10 12:34 /usr/local/sbin/masqmail | 107 -rwsr-xr-x 1 root root 399356 May 10 12:34 /usr/local/sbin/masqmail |
109 drwxr-xr-x 2 root root 4096 May 10 12:34 /etc/masqmail | 108 drwxr-xr-x 2 root root 4096 May 10 12:34 /etc/masqmail |
110 drwxr-xr-x 2 mail trusted 4096 May 10 12:34 /var/log/masqmail | 109 drwxr-xr-x 2 mail mail 4096 May 10 12:34 /var/log/masqmail |
111 drwxr-xr-x 2 mail trusted 4096 May 10 12:34 /var/run/masqmail | 110 drwxr-xr-x 2 mail mail 4096 May 10 12:34 /var/run/masqmail |
112 drwxr-xr-x 5 mail trusted 4096 May 10 12:34 /var/spool/masqmail | 111 drwxr-xr-x 5 mail mail 4096 May 10 12:34 /var/spool/masqmail |
113 drwxr-xr-x 2 mail trusted 4096 May 10 12:34 /var/spool/masqmail/input | 112 drwxr-xr-x 2 mail mail 4096 May 10 12:34 /var/spool/masqmail/input |
114 drwxr-xr-x 2 mail trusted 4096 May 10 12:34 /var/spool/masqmail/lock | 113 drwxr-xr-x 2 mail mail 4096 May 10 12:34 /var/spool/masqmail/lock |
115 | 114 |
116 Important are the set-user-id bit for /usr/local/sbin/masqmail and | 115 Important are the set-user-id bit for /usr/local/sbin/masqmail and |
117 the permissions of all files. | 116 the permissions of all files. |
118 | 117 |
119 | 118 |