Mercurial > masqmail
view docs/ppp-setup @ 340:60bb2dbe2866 0.3.3
In the tests: replaced logname(1) with $LOGNAME
Because logname(1) may not work if it has no controlling terminal.
See: http://aplawrence.com/cgi-bin/printer.pl?arg=/Forum/TonyLawrence8.html
Be it that reason or not, it didn't work on Crux, but $LOGNAME is set.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Wed, 31 Aug 2011 09:14:38 +0200 (2011-08-31) |
parents | f10a56dc7481 |
children | 4cbaf6d6793f |
line wrap: on
line source
This document covers dial-up internet connections with PPP ---------------------------------------------------------- Now you have to set up the online configuration. The trick is to tell your ip-up script the connection name. You could use the IP number of the far side of the ppp link, but this is a pain and may change each time. But you can give it an additional argument via pppd with ipparam. Somewhere in your dial up script you have a line similar to: /usr/sbin/pppd /dev/ttyS1 connect "/usr/sbin/chat -t 90 -f $CHATFILE" \ -d -d -d user user@somewhere file "$OPTIONS" Just add 'ipparam FastNet' in the command line for pppd if your ISP has the name FastNet. The ip-up script will then get 'FastNet' as a sixth parameter. In your ip-up script you can then call masqmail with /usr/local/sbin/masqmail -qo "$6" instead of 'sendmail -q', if you had that in the script before. Masqmail will then read the route configuration specified for the connection name 'FastNet' and deliver the mail destined to the internet. See the configuration manual on how to write a route configuration or use one of the examples as a template. I do not know how do configure that for an ISDN adapter, but I am sure you will find something similar in the man pages. If you want mail that is received by masqmail from your local net to be delivered immediately using the route configuration, you have two possibilities: * if you are using the masqdialer system, you just have to set online_query to something like /usr/bin/mservdetect localhost 224 if mserver is running on localhost and listens on port 224. See the man page to mservdetect(1). * otherwise you have to add two commands in your ip-up script: echo "$6" >/var/run/masqmail/masqmail-route chmod 644 /var/run/masqmail/masqmail-route and you have to remove the file /var/run/masqmail/masqmail-route in your ip-down script: rm /var/run/masqmail/masqmail-route Then you have to set online_query to /bin/cat /var/run/masqmail/masqmail-route See the route documentation for more. written by oku (it was once located inside of INSTALL)