Mercurial > masqmail
comparison docs/ppp-setup @ 310:f10a56dc7481
reworked online_detect to the simpler online_query
Only pipe is supported now. Use
online_query="/bin/cat /path/to/file"
instead of
online_detect=file
online_file=/path/to/file
and
online_query="/path/to/some/script foo"
instead of
online_detect=pipe
online_pipe="/path/to/some/script foo"
See man page masqmail.conf(5) and admin/config-transition.
author | meillo@marmaro.de |
---|---|
date | Sun, 24 Apr 2011 19:14:38 +0200 |
parents | 0ef0f756280b |
children | 4cbaf6d6793f |
comparison
equal
deleted
inserted
replaced
309:273f6c9eb6a2 | 310:f10a56dc7481 |
---|---|
27 | 27 |
28 If you want mail that is received by masqmail from your local net to be | 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 | 29 delivered immediately using the route configuration, you have two |
30 possibilities: | 30 possibilities: |
31 | 31 |
32 * if you are using the masqdialer system, you just have to set the | 32 * if you are using the masqdialer system, you just have to set |
33 variables online_detect to pipe and online_pipe to something like | 33 online_query to something like |
34 /usr/bin/mservdetect localhost 224 | 34 /usr/bin/mservdetect localhost 224 |
35 if mserver is running on localhost and listens on port 224. See the | 35 if mserver is running on localhost and listens on port 224. See the |
36 man page to mservdetect(1). | 36 man page to mservdetect(1). |
37 | 37 |
38 * otherwise you have to add two commands in your ip-up script: | 38 * otherwise you have to add two commands in your ip-up script: |
39 echo "$6" >/var/run/masqmail/masqmail-route | 39 echo "$6" >/var/run/masqmail/masqmail-route |
40 chmod 644 /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 | 41 and you have to remove the file /var/run/masqmail/masqmail-route in |
42 your ip-down script: | 42 your ip-down script: |
43 rm /var/run/masqmail/masqmail-route | 43 rm /var/run/masqmail/masqmail-route |
44 Then you have to set online_detect to file and online_file to | 44 Then you have to set online_query to |
45 /var/run/masqmail/masqmail-route | 45 /bin/cat /var/run/masqmail/masqmail-route |
46 | 46 |
47 See the route documentation for more. | 47 See the route documentation for more. |
48 | 48 |
49 | 49 |
50 written by oku | 50 written by oku |