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