masqmail

view docs/ppp-setup @ 183:6ff77c63e714

improved and simplified the example config removed the copyright notice, because I think this file is trivial enough to not need it
author meillo@marmaro.de
date Wed, 14 Jul 2010 22:21:08 +0200
parents
children f10a56dc7481
line source
1 This document covers dial-up internet connections with PPP
2 ----------------------------------------------------------
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:
10 /usr/sbin/pppd /dev/ttyS1 connect "/usr/sbin/chat -t 90 -f $CHATFILE" \
11 -d -d -d user user@somewhere file "$OPTIONS"
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
17 /usr/local/sbin/masqmail -qo "$6"
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.
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.
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:
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).
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
47 See the route documentation for more.
50 written by oku
51 (it was once located inside of INSTALL)