Mercurial > masqmail
annotate docs/ppp-setup @ 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 | 4cbaf6d6793f |
children |
rev | line source |
---|---|
166
0ef0f756280b
moved the PPP setup documentation from INSTALL to an own file
meillo@marmaro.de
parents:
diff
changeset
|
1 This document covers dial-up internet connections with PPP |
0ef0f756280b
moved the PPP setup documentation from INSTALL to an own file
meillo@marmaro.de
parents:
diff
changeset
|
2 ---------------------------------------------------------- |
0ef0f756280b
moved the PPP setup documentation from INSTALL to an own file
meillo@marmaro.de
parents:
diff
changeset
|
3 |
0ef0f756280b
moved the PPP setup documentation from INSTALL to an own file
meillo@marmaro.de
parents:
diff
changeset
|
4 Now you have to set up the online configuration. The trick is to tell |
0ef0f756280b
moved the PPP setup documentation from INSTALL to an own file
meillo@marmaro.de
parents:
diff
changeset
|
5 your ip-up script the connection name. You could use the IP number of |
0ef0f756280b
moved the PPP setup documentation from INSTALL to an own file
meillo@marmaro.de
parents:
diff
changeset
|
6 the far side of the ppp link, but this is a pain and may change each |
0ef0f756280b
moved the PPP setup documentation from INSTALL to an own file
meillo@marmaro.de
parents:
diff
changeset
|
7 time. But you can give it an additional argument via pppd with ipparam. |
0ef0f756280b
moved the PPP setup documentation from INSTALL to an own file
meillo@marmaro.de
parents:
diff
changeset
|
8 Somewhere in your dial up script you have a line similar to: |
0ef0f756280b
moved the PPP setup documentation from INSTALL to an own file
meillo@marmaro.de
parents:
diff
changeset
|
9 |
0ef0f756280b
moved the PPP setup documentation from INSTALL to an own file
meillo@marmaro.de
parents:
diff
changeset
|
10 /usr/sbin/pppd /dev/ttyS1 connect "/usr/sbin/chat -t 90 -f $CHATFILE" \ |
0ef0f756280b
moved the PPP setup documentation from INSTALL to an own file
meillo@marmaro.de
parents:
diff
changeset
|
11 -d -d -d user user@somewhere file "$OPTIONS" |
0ef0f756280b
moved the PPP setup documentation from INSTALL to an own file
meillo@marmaro.de
parents:
diff
changeset
|
12 |
0ef0f756280b
moved the PPP setup documentation from INSTALL to an own file
meillo@marmaro.de
parents:
diff
changeset
|
13 Just add 'ipparam FastNet' in the command line for pppd if your ISP has |
0ef0f756280b
moved the PPP setup documentation from INSTALL to an own file
meillo@marmaro.de
parents:
diff
changeset
|
14 the name FastNet. The ip-up script will then get 'FastNet' as a sixth |
0ef0f756280b
moved the PPP setup documentation from INSTALL to an own file
meillo@marmaro.de
parents:
diff
changeset
|
15 parameter. In your ip-up script you can then call masqmail with |
0ef0f756280b
moved the PPP setup documentation from INSTALL to an own file
meillo@marmaro.de
parents:
diff
changeset
|
16 |
0ef0f756280b
moved the PPP setup documentation from INSTALL to an own file
meillo@marmaro.de
parents:
diff
changeset
|
17 /usr/local/sbin/masqmail -qo "$6" |
0ef0f756280b
moved the PPP setup documentation from INSTALL to an own file
meillo@marmaro.de
parents:
diff
changeset
|
18 |
0ef0f756280b
moved the PPP setup documentation from INSTALL to an own file
meillo@marmaro.de
parents:
diff
changeset
|
19 instead of 'sendmail -q', if you had that in the script before. |
0ef0f756280b
moved the PPP setup documentation from INSTALL to an own file
meillo@marmaro.de
parents:
diff
changeset
|
20 Masqmail will then read the route configuration specified for the |
0ef0f756280b
moved the PPP setup documentation from INSTALL to an own file
meillo@marmaro.de
parents:
diff
changeset
|
21 connection name 'FastNet' and deliver the mail destined to the internet. |
0ef0f756280b
moved the PPP setup documentation from INSTALL to an own file
meillo@marmaro.de
parents:
diff
changeset
|
22 See the configuration manual on how to write a route configuration or |
0ef0f756280b
moved the PPP setup documentation from INSTALL to an own file
meillo@marmaro.de
parents:
diff
changeset
|
23 use one of the examples as a template. |
0ef0f756280b
moved the PPP setup documentation from INSTALL to an own file
meillo@marmaro.de
parents:
diff
changeset
|
24 |
0ef0f756280b
moved the PPP setup documentation from INSTALL to an own file
meillo@marmaro.de
parents:
diff
changeset
|
25 I do not know how do configure that for an ISDN adapter, but I am sure |
0ef0f756280b
moved the PPP setup documentation from INSTALL to an own file
meillo@marmaro.de
parents:
diff
changeset
|
26 you will find something similar in the man pages. |
0ef0f756280b
moved the PPP setup documentation from INSTALL to an own file
meillo@marmaro.de
parents:
diff
changeset
|
27 |
0ef0f756280b
moved the PPP setup documentation from INSTALL to an own file
meillo@marmaro.de
parents:
diff
changeset
|
28 If you want mail that is received by masqmail from your local net to be |
0ef0f756280b
moved the PPP setup documentation from INSTALL to an own file
meillo@marmaro.de
parents:
diff
changeset
|
29 delivered immediately using the route configuration, you have two |
0ef0f756280b
moved the PPP setup documentation from INSTALL to an own file
meillo@marmaro.de
parents:
diff
changeset
|
30 possibilities: |
0ef0f756280b
moved the PPP setup documentation from INSTALL to an own file
meillo@marmaro.de
parents:
diff
changeset
|
31 |
310
f10a56dc7481
reworked online_detect to the simpler online_query
meillo@marmaro.de
parents:
166
diff
changeset
|
32 * if you are using the masqdialer system, you just have to set |
f10a56dc7481
reworked online_detect to the simpler online_query
meillo@marmaro.de
parents:
166
diff
changeset
|
33 online_query to something like |
166
0ef0f756280b
moved the PPP setup documentation from INSTALL to an own file
meillo@marmaro.de
parents:
diff
changeset
|
34 /usr/bin/mservdetect localhost 224 |
0ef0f756280b
moved the PPP setup documentation from INSTALL to an own file
meillo@marmaro.de
parents:
diff
changeset
|
35 if mserver is running on localhost and listens on port 224. See the |
0ef0f756280b
moved the PPP setup documentation from INSTALL to an own file
meillo@marmaro.de
parents:
diff
changeset
|
36 man page to mservdetect(1). |
0ef0f756280b
moved the PPP setup documentation from INSTALL to an own file
meillo@marmaro.de
parents:
diff
changeset
|
37 |
0ef0f756280b
moved the PPP setup documentation from INSTALL to an own file
meillo@marmaro.de
parents:
diff
changeset
|
38 * otherwise you have to add two commands in your ip-up script: |
418
4cbaf6d6793f
Changed the location of the route query file in the docs.
markus schnalke <meillo@marmaro.de>
parents:
310
diff
changeset
|
39 echo "$6" >/var/tmp/masqmail-route |
4cbaf6d6793f
Changed the location of the route query file in the docs.
markus schnalke <meillo@marmaro.de>
parents:
310
diff
changeset
|
40 chmod 644 /var/tmp/masqmail-route |
4cbaf6d6793f
Changed the location of the route query file in the docs.
markus schnalke <meillo@marmaro.de>
parents:
310
diff
changeset
|
41 and you have to remove the file /var/tmp/masqmail-route in |
166
0ef0f756280b
moved the PPP setup documentation from INSTALL to an own file
meillo@marmaro.de
parents:
diff
changeset
|
42 your ip-down script: |
418
4cbaf6d6793f
Changed the location of the route query file in the docs.
markus schnalke <meillo@marmaro.de>
parents:
310
diff
changeset
|
43 rm /var/tmp/masqmail-route |
310
f10a56dc7481
reworked online_detect to the simpler online_query
meillo@marmaro.de
parents:
166
diff
changeset
|
44 Then you have to set online_query to |
418
4cbaf6d6793f
Changed the location of the route query file in the docs.
markus schnalke <meillo@marmaro.de>
parents:
310
diff
changeset
|
45 /bin/cat /var/tmp/masqmail-route |
166
0ef0f756280b
moved the PPP setup documentation from INSTALL to an own file
meillo@marmaro.de
parents:
diff
changeset
|
46 |
0ef0f756280b
moved the PPP setup documentation from INSTALL to an own file
meillo@marmaro.de
parents:
diff
changeset
|
47 See the route documentation for more. |
0ef0f756280b
moved the PPP setup documentation from INSTALL to an own file
meillo@marmaro.de
parents:
diff
changeset
|
48 |
0ef0f756280b
moved the PPP setup documentation from INSTALL to an own file
meillo@marmaro.de
parents:
diff
changeset
|
49 |
0ef0f756280b
moved the PPP setup documentation from INSTALL to an own file
meillo@marmaro.de
parents:
diff
changeset
|
50 written by oku |
0ef0f756280b
moved the PPP setup documentation from INSTALL to an own file
meillo@marmaro.de
parents:
diff
changeset
|
51 (it was once located inside of INSTALL) |