masqmail
annotate docs/ppp-setup @ 323:29de6a1c4538
Fixed an important bug with folded headers!
g_strconcat() returns a *copy* of the string, but hdr->value still
pointed to the old header (which probably was a memory leak, too).
If the folded part had been quite small it was likely that the new
string was at the same position as the old one, thus making everything
go well. But if pretty long headers were folded several times it was
likely that the new string was allocated somewhere else in memory,
thus breaking things. In result mails to lots of recipients (folded
header) were frequently only sent to the ones in the first line. Sorry
for the inconvenience.
author | meillo@marmaro.de |
---|---|
date | Fri, 03 Jun 2011 09:47:27 +0200 |
parents | 0ef0f756280b |
children | 4cbaf6d6793f |
rev | line source |
---|---|
meillo@166 | 1 This document covers dial-up internet connections with PPP |
meillo@166 | 2 ---------------------------------------------------------- |
meillo@166 | 3 |
meillo@166 | 4 Now you have to set up the online configuration. The trick is to tell |
meillo@166 | 5 your ip-up script the connection name. You could use the IP number of |
meillo@166 | 6 the far side of the ppp link, but this is a pain and may change each |
meillo@166 | 7 time. But you can give it an additional argument via pppd with ipparam. |
meillo@166 | 8 Somewhere in your dial up script you have a line similar to: |
meillo@166 | 9 |
meillo@166 | 10 /usr/sbin/pppd /dev/ttyS1 connect "/usr/sbin/chat -t 90 -f $CHATFILE" \ |
meillo@166 | 11 -d -d -d user user@somewhere file "$OPTIONS" |
meillo@166 | 12 |
meillo@166 | 13 Just add 'ipparam FastNet' in the command line for pppd if your ISP has |
meillo@166 | 14 the name FastNet. The ip-up script will then get 'FastNet' as a sixth |
meillo@166 | 15 parameter. In your ip-up script you can then call masqmail with |
meillo@166 | 16 |
meillo@166 | 17 /usr/local/sbin/masqmail -qo "$6" |
meillo@166 | 18 |
meillo@166 | 19 instead of 'sendmail -q', if you had that in the script before. |
meillo@166 | 20 Masqmail will then read the route configuration specified for the |
meillo@166 | 21 connection name 'FastNet' and deliver the mail destined to the internet. |
meillo@166 | 22 See the configuration manual on how to write a route configuration or |
meillo@166 | 23 use one of the examples as a template. |
meillo@166 | 24 |
meillo@166 | 25 I do not know how do configure that for an ISDN adapter, but I am sure |
meillo@166 | 26 you will find something similar in the man pages. |
meillo@166 | 27 |
meillo@166 | 28 If you want mail that is received by masqmail from your local net to be |
meillo@166 | 29 delivered immediately using the route configuration, you have two |
meillo@166 | 30 possibilities: |
meillo@166 | 31 |
meillo@310 | 32 * if you are using the masqdialer system, you just have to set |
meillo@310 | 33 online_query to something like |
meillo@166 | 34 /usr/bin/mservdetect localhost 224 |
meillo@166 | 35 if mserver is running on localhost and listens on port 224. See the |
meillo@166 | 36 man page to mservdetect(1). |
meillo@166 | 37 |
meillo@166 | 38 * otherwise you have to add two commands in your ip-up script: |
meillo@166 | 39 echo "$6" >/var/run/masqmail/masqmail-route |
meillo@166 | 40 chmod 644 /var/run/masqmail/masqmail-route |
meillo@166 | 41 and you have to remove the file /var/run/masqmail/masqmail-route in |
meillo@166 | 42 your ip-down script: |
meillo@166 | 43 rm /var/run/masqmail/masqmail-route |
meillo@310 | 44 Then you have to set online_query to |
meillo@310 | 45 /bin/cat /var/run/masqmail/masqmail-route |
meillo@166 | 46 |
meillo@166 | 47 See the route documentation for more. |
meillo@166 | 48 |
meillo@166 | 49 |
meillo@166 | 50 written by oku |
meillo@166 | 51 (it was once located inside of INSTALL) |