comparison INSTALL @ 421:f37384470855

Changed lockdir to /var/lock/masqmail; Create lockdir and piddir on startup. Moved the lockdir out of the spool dir. (When /var/lock is a ramdisk we do well to have the lock files there.) Added the new configure option --with-lockdir to change that location. Nontheless, if we run_as_user, then lock files are always stored in the spool dir directly. Instead of installing the lockdir and piddir at installation time, we create them on startup time now if they are missing. This is necessary if lockdir or piddir are a tmpfs.
author markus schnalke <meillo@marmaro.de>
date Wed, 30 May 2012 09:38:38 +0200
parents 09da6e72cd30
children bdbedce60247
comparison
equal deleted inserted replaced
420:09da6e72cd30 421:f37384470855
64 --with-confdir=CONFDIR 64 --with-confdir=CONFDIR
65 sets the default configuration directory to CONFDIR, in case you 65 sets the default configuration directory to CONFDIR, in case you
66 prefer another location than /etc/masqmail/. 66 prefer another location than /etc/masqmail/.
67 67
68 --with-piddir=PIDDIR 68 --with-piddir=PIDDIR
69 sets the default directory for the pid file of the daemon. The usual 69 sets the directory for the pid file of the daemon. The default and usual
70 location is /var/run, but some GNU/Linux distributions have converted 70 location is /var/run, but some GNU/Linux distributions have converted
71 to /run. 71 to /run. It gets created on program startup if missing.
72
73 --with-lockdir=LOCKDIR
74 sets the default directory for lock file for spooled messages. Default
75 is /var/lock/masqmail. It gets created on program startup if missing.
72 76
73 77
74 --disable-resolver 78 --disable-resolver
75 disables resolver support. Without the resolver functions, masqmail 79 disables resolver support. Without the resolver functions, masqmail
76 uses only gethostbyname() to resolve DNS names, and you cannot send 80 uses only gethostbyname() to resolve DNS names, and you cannot send
100 -rwsr-xr-x 1 root root 399356 May 10 12:34 /usr/local/sbin/masqmail 104 -rwsr-xr-x 1 root root 399356 May 10 12:34 /usr/local/sbin/masqmail
101 drwxr-xr-x 2 root root 4096 May 10 12:34 /etc/masqmail 105 drwxr-xr-x 2 root root 4096 May 10 12:34 /etc/masqmail
102 drwxr-xr-x 2 mail mail 4096 May 10 12:34 /var/log/masqmail 106 drwxr-xr-x 2 mail mail 4096 May 10 12:34 /var/log/masqmail
103 drwxr-xr-x 5 mail mail 4096 May 10 12:34 /var/spool/masqmail 107 drwxr-xr-x 5 mail mail 4096 May 10 12:34 /var/spool/masqmail
104 drwxr-xr-x 2 mail mail 4096 May 10 12:34 /var/spool/masqmail/input 108 drwxr-xr-x 2 mail mail 4096 May 10 12:34 /var/spool/masqmail/input
105 drwxr-xr-x 2 mail mail 4096 May 10 12:34 /var/spool/masqmail/lock
106 109
107 Important are the set-user-id bit for /usr/local/sbin/masqmail and 110 Important are the set-user-id bit for /usr/local/sbin/masqmail and
108 the permissions of all files. 111 the ownership of the directories.
109 112
110 113
111 114
112 Making masqmail the default 115 Making masqmail the default
113 --------------------------- 116 ---------------------------