masqmail

view docs/ppp-setup @ 418:4cbaf6d6793f

Changed the location of the route query file in the docs. /var/run is for pid files only.
author markus schnalke <meillo@marmaro.de>
date Tue, 29 May 2012 21:33:49 +0200
parents f10a56dc7481
children
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
33 online_query 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/tmp/masqmail-route
40 chmod 644 /var/tmp/masqmail-route
41 and you have to remove the file /var/tmp/masqmail-route in
42 your ip-down script:
43 rm /var/tmp/masqmail-route
44 Then you have to set online_query to
45 /bin/cat /var/tmp/masqmail-route
47 See the route documentation for more.
50 written by oku
51 (it was once located inside of INSTALL)