comparison INSTALL @ 159:949ccc02eecf

adjusted masqmail's path to /usr/local/... and added the /usr/lib/sendmail link
author meillo@marmaro.de
date Fri, 16 Jul 2010 09:41:25 +0200
parents dbe3dadd1afe
children
comparison
equal deleted inserted replaced
158:014b9e01ce25 159:949ccc02eecf
101 You can also use these instructions to omit 'make install' if you do 101 You can also use these instructions to omit 'make install' if you do
102 not want to use it. 102 not want to use it.
103 103
104 Check that 'make install' worked correctly. The following command: 104 Check that 'make install' worked correctly. The following command:
105 105
106 ls -ld /usr/sbin/masqmail /etc/masqmail /var/log/masqmail/ \ 106 ls -ld /usr/local/sbin/masqmail /etc/masqmail /var/log/masqmail/ \
107 /var/run/masqmail /var/spool/masqmail/ /var/spool/masqmail/* 107 /var/run/masqmail /var/spool/masqmail/ /var/spool/masqmail/*
108 108
109 should give output similar to 109 should give output similar to
110 110
111 -rwsr-xr-x 1 root root 399356 May 10 12:34 /usr/sbin/masqmail 111 -rwsr-xr-x 1 root root 399356 May 10 12:34 /usr/local/sbin/masqmail
112 drwxr-xr-x 2 root root 4096 May 10 12:34 /etc/masqmail 112 drwxr-xr-x 2 root root 4096 May 10 12:34 /etc/masqmail
113 drwxr-xr-x 2 mail trusted 4096 May 10 12:34 /var/log/masqmail 113 drwxr-xr-x 2 mail trusted 4096 May 10 12:34 /var/log/masqmail
114 drwxr-xr-x 2 mail trusted 4096 May 10 12:34 /var/run/masqmail 114 drwxr-xr-x 2 mail trusted 4096 May 10 12:34 /var/run/masqmail
115 drwxr-xr-x 5 mail trusted 4096 May 10 12:34 /var/spool/masqmail 115 drwxr-xr-x 5 mail trusted 4096 May 10 12:34 /var/spool/masqmail
116 drwxr-xr-x 2 mail trusted 4096 May 10 12:34 /var/spool/masqmail/input 116 drwxr-xr-x 2 mail trusted 4096 May 10 12:34 /var/spool/masqmail/input
117 drwxr-xr-x 2 mail trusted 4096 May 10 12:34 /var/spool/masqmail/lock 117 drwxr-xr-x 2 mail trusted 4096 May 10 12:34 /var/spool/masqmail/lock
118 drwxr-xr-x 2 mail trusted 4096 May 10 12:34 /var/spool/masqmail/popuidl 118 drwxr-xr-x 2 mail trusted 4096 May 10 12:34 /var/spool/masqmail/popuidl
119 119
120 (important is the set-user-id bit for /usr/sbin/masqmail and the 120 (important is the set-user-id bit for /usr/local/sbin/masqmail and the
121 ownership of all items). 121 ownership of all items).
122 122
123 Use the example configuration files in examples/ to edit your own. The 123 Use the example configuration files in examples/ to edit your own. The
124 main configuration file `masqmail.conf' and the *.route and *.get files 124 main configuration file `masqmail.conf' and the *.route and *.get files
125 should go into /etc/masqmail. 125 should go into /etc/masqmail.
126 126
127 The default destination for the executable `masqmail' is /usr/sbin. 127 The default destination for the executable `masqmail' is /usr/local/sbin.
128 Check that it has the set-uid bit set. You can set it with: 128 Check that it has the set-uid bit set. You can set it with:
129 129
130 chmod u+s /usr/sbin/masqmail 130 chmod u+s /usr/local/sbin/masqmail
131 131
132 If you want to replace sendmail, move your old sendmail binary to 132 If you want to replace sendmail, move your old sendmail binary to
133 another name and make a symbolic link: 133 another name and make a symbolic link:
134 134
135 ln -s /usr/sbin/masqmail /usr/sbin/sendmail 135 ln -s /usr/local/sbin/masqmail /usr/sbin/sendmail
136
137 You might also need this link:
138
139 ln -s /usr/local/sbin/masqmail /usr/lib/sendmail
136 140
137 Now every mailer that used to call sendmail will now call masqmail. You 141 Now every mailer that used to call sendmail will now call masqmail. You
138 can now kill your old sendmail if it is running and start masqmail. 142 can now kill your old sendmail if it is running and start masqmail.
139 143
140 /sbin/init.d/sendmail restart 144 /sbin/init.d/sendmail restart
141 145
142 should do that. You can also start masqmail with: 146 should do that. You can also start masqmail with:
143 147
144 /usr/sbin/masqmail -bd -q30m 148 /usr/local/sbin/masqmail -bd -q30m
145 149
146 150
147 151
148 Configuring for online delivery 152 Configuring for online delivery
149 ------------------------------- 153 -------------------------------
161 165
162 Just add 'ipparam FastNet' in the command line for pppd if your ISP has 166 Just add 'ipparam FastNet' in the command line for pppd if your ISP has
163 the name FastNet. The ip-up script will then get 'FastNet' as a sixth 167 the name FastNet. The ip-up script will then get 'FastNet' as a sixth
164 parameter. In your ip-up script you can then call masqmail with 168 parameter. In your ip-up script you can then call masqmail with
165 169
166 /usr/sbin/masqmail -qo "$6" 170 /usr/local/sbin/masqmail -qo "$6"
167 171
168 instead of 'sendmail -q', if you had that in the script before. 172 instead of 'sendmail -q', if you had that in the script before.
169 Masqmail will then read the route configuration specified for the 173 Masqmail will then read the route configuration specified for the
170 connection name 'FastNet' and deliver the mail destined to the internet. 174 connection name 'FastNet' and deliver the mail destined to the internet.
171 See the configuration manual on how to write a route configuration or 175 See the configuration manual on how to write a route configuration or