meillo@166: This document covers dial-up internet connections with PPP
meillo@166: ----------------------------------------------------------
meillo@166: 
meillo@166: Now you have to set up the online configuration. The trick is to tell
meillo@166: your ip-up script the connection name. You could use the IP number of
meillo@166: the far side of the ppp link, but this is a pain and may change each
meillo@166: time. But you can give it an additional argument via pppd with ipparam.
meillo@166: Somewhere in your dial up script you have a line similar to:
meillo@166: 
meillo@166: 	/usr/sbin/pppd /dev/ttyS1 connect "/usr/sbin/chat -t 90 -f $CHATFILE" \
meillo@166: 	-d -d -d user user@somewhere file "$OPTIONS"
meillo@166: 
meillo@166: Just add 'ipparam FastNet' in the command line for pppd if your ISP has
meillo@166: the name FastNet. The ip-up script will then get 'FastNet' as a sixth
meillo@166: parameter. In your ip-up script you can then call masqmail with
meillo@166: 
meillo@166: 	/usr/local/sbin/masqmail -qo "$6"
meillo@166: 
meillo@166: instead of 'sendmail -q', if you had that in the script before.
meillo@166: Masqmail will then read the route configuration specified for the
meillo@166: connection name 'FastNet' and deliver the mail destined to the internet.
meillo@166: See the configuration manual on how to write a route configuration or
meillo@166: use one of the examples as a template.
meillo@166: 
meillo@166: I do not know how do configure that for an ISDN adapter, but I am sure
meillo@166: you will find something similar in the man pages.
meillo@166: 
meillo@166: If you want mail that is received by masqmail from your local net to be
meillo@166: delivered immediately using the route configuration, you have two
meillo@166: possibilities:
meillo@166: 
meillo@166: * if you are using the masqdialer system, you just have to set the
meillo@166:   variables online_detect to pipe and online_pipe to something like
meillo@166: 	/usr/bin/mservdetect localhost 224
meillo@166:   if mserver is running on localhost and listens on port 224. See the
meillo@166:   man page to mservdetect(1).
meillo@166: 
meillo@166: * otherwise you have to add two commands in your ip-up script:
meillo@166: 	echo "$6" >/var/run/masqmail/masqmail-route
meillo@166: 	chmod 644 /var/run/masqmail/masqmail-route
meillo@166:   and you have to remove the file /var/run/masqmail/masqmail-route in
meillo@166:   your ip-down script:
meillo@166: 	rm /var/run/masqmail/masqmail-route
meillo@166:   Then you have to set online_detect to file and online_file to
meillo@166:   /var/run/masqmail/masqmail-route
meillo@166: 
meillo@166: See the route documentation for more.
meillo@166: 
meillo@166: 
meillo@166: written by oku
meillo@166: (it was once located inside of INSTALL)