Mercurial > masqmail-0.2
comparison debian/README.online @ 0:08114f7dcc23 0.2.21
this is masqmail-0.2.21 from oliver kurth
author | meillo@marmaro.de |
---|---|
date | Fri, 26 Sep 2008 17:05:23 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:08114f7dcc23 |
---|---|
1 Different methods for online detection | |
2 -------------------------------------- | |
3 | |
4 /etc/ppp/peers/<provider> | |
5 ------------------------- | |
6 | |
7 The scripts /etc/ppp/ip-{up,down}.d/{1,99}masqmail make use of the variable | |
8 $IPPARAM, which you can defibe in your /etc/ppp/peers/<provider> | |
9 configuration with the ippparam option, eg: | |
10 | |
11 ippparam arcor | |
12 | |
13 If this is set, $IPPARAM will be written to a 'route' file. Using some | |
14 awk magic, the scripts finds out which file you have defined for | |
15 online detection (if online_detect=file) and writes the value of | |
16 $IPPARAM to this file. masqmail then uses this file to determine its | |
17 online status. | |
18 | |
19 | |
20 /etc/network/interfaces | |
21 ----------------------- | |
22 | |
23 You can use the /etc/network/interfaces script to tell masqmail | |
24 when a link goes up, and masqmail shall flush its queue and/or fetch mail. | |
25 | |
26 This is an example for a static interface: | |
27 | |
28 iface eth0 inet static | |
29 # mroute/name used by ip-up.d/masqmail BDL May02 | |
30 name SNRC | |
31 address 130.130.10.233 | |
32 netmask 255.255.255.0 | |
33 gateway 130.130.10.254 | |
34 | |
35 (This example is from Ben Low. Thanks, Ben :-)) | |
36 | |
37 If you use masqmail on a notebook, you can define several interfaces, | |
38 depending on the network you are in. Read | |
39 /usr/share/doc/ifupdown/examples/interfaces.gz | |
40 for examples. | |
41 | |
42 The scripts /etc/network/if-{up,down}.d/1masqmail make use of the NAME | |
43 in the same way as the /etc/ppp/ip-{up,down}.d/ scripts. See above. | |
44 | |
45 | |
46 guessnet and /etc/network/interfaces | |
47 ------------------------------------ | |
48 | |
49 Another nice tool is guessnet. See /usr/share/doc/guessnet/README.gz, | |
50 if you have guessnet installed. You can use it in combination with the | |
51 method described above for /etc/network/interfaces. | |
52 | |
53 | |
54 guessnet and the 'online_pipe' option | |
55 ------------------------------------- | |
56 | |
57 Alternatively you can also use guessnet directly to check the online | |
58 status. To do this, set in | |
59 /etc/masqmail/masqmail.conf | |
60 | |
61 # | |
62 online_detect=pipe | |
63 online_pipe="/usr/bin/guessnet < /etc/masqmail/guessnet.conf" | |
64 # | |
65 | |
66 and create a file | |
67 /etc/masqmail/guessnet.conf | |
68 | |
69 Example: | |
70 192.168.0.35 00:10:5A:24:C5:B6 192.168.0.1 default | |
71 192.168.2.1 00:80:AD:97:D5:2D 192.168.0.1 home | |
72 | |
73 | |
74 masqdialer and the 'online_pipe' option | |
75 --------------------------------------- | |
76 | |
77 Yet another possibility for ppp dialups is masqdialer: | |
78 | |
79 Example: | |
80 # | |
81 online_detect=pipe | |
82 online_pipe="/usr/bin/mservdetect 192.168.1.2 224" | |
83 # | |
84 | |
85 This is useful if you have a gateway with masqdialer running | |
86 and masqmail on another host behind ('behind' as seen from the internet) | |
87 | |
88 Note: | |
89 The online detect method 'mserver' is deprecated, and this debian | |
90 package comes with that option disabled. You can still recompile the | |
91 package with the ./configure option --enable-mserver, but this may be | |
92 removed in future version of masqmail. |