- Added escaping of shell characters in parameters to sendmail command
- Cleanup documentation (colour schemes)
This commit is contained in:
parent
cc00c947ec
commit
7644c1d064
|
@ -663,23 +663,20 @@ max-send-threads
|
|||
= 5<br>
|
||||
|
||||
send-mail-prog
|
||||
= /usr/sbin/sendmail -f '%f' '%t'<br>
|
||||
= /usr/sbin/sendmail -f %f %t<br>
|
||||
|
||||
...<br>
|
||||
</tt>
|
||||
</p>
|
||||
<p >The table below
|
||||
lists all the configuration directives. Items in black are used by
|
||||
both modes of operation, while those in <b><span style="color: #001177;
|
||||
background:
|
||||
white">blue</span></b>
|
||||
are used only when
|
||||
operating in VAS Gateway mode, and those in <b><span style="color:
|
||||
#500000;
|
||||
background:
|
||||
white">red</span></b> when
|
||||
lists all the configuration directives. The column <b>Mode</b>
|
||||
indicates operation mode in which the parameter is applicable:
|
||||
Config params marked <i>VAS GW</i>
|
||||
are only applicable when
|
||||
operating in VAS Gateway mode, while those marked <i>MMSC</i>
|
||||
are only applicable when
|
||||
operating in
|
||||
MMSC mode.</p>
|
||||
MMSC mode. The rest are used in both modes.</p>
|
||||
|
||||
<table border=0 cellspacing=2 cellpadding=1 >
|
||||
<tr>
|
||||
|
@ -687,6 +684,11 @@ lists all the configuration directives. Items in black are used by
|
|||
<b>Variable
|
||||
Name</b>
|
||||
</td>
|
||||
|
||||
<td valign=top>
|
||||
<b>Mode</b>
|
||||
</td>
|
||||
|
||||
<td valign=top>
|
||||
<b>Type</b>
|
||||
</td>
|
||||
|
@ -697,6 +699,11 @@ lists all the configuration directives. Items in black are used by
|
|||
<tr >
|
||||
<td valign=top><tt>group </tt>
|
||||
</td>
|
||||
<td valign=top >
|
||||
<i>ALL</i>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top>
|
||||
mbuni
|
||||
</td>
|
||||
|
@ -706,20 +713,35 @@ lists all the configuration directives. Items in black are used by
|
|||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<td valign=top ><tt>name </tt>
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
<i>ALL</i>
|
||||
|
||||
</td>
|
||||
|
||||
|
||||
<td valign=top >
|
||||
string
|
||||
</td>
|
||||
|
||||
<td valign=top>
|
||||
User-friendly
|
||||
name for the Gateway, used in notices, etc
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="color: #500000; background: white">
|
||||
|
||||
<tr >
|
||||
<td valign=top ><tt>hostname
|
||||
</tt>
|
||||
</td>
|
||||
<td valign=top >
|
||||
<i>MMSC</i>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
string
|
||||
</td>
|
||||
|
@ -729,10 +751,16 @@ lists all the configuration directives. Items in black are used by
|
|||
Email or to a foreign MMSC via SMTP. Defaults to <tt>localhost</tt>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="color: #500000; background: white">
|
||||
<tr >
|
||||
<td valign=top ><tt>host-alias
|
||||
</tt>
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
<i>MMSC</i>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top>
|
||||
string
|
||||
</td>
|
||||
|
@ -747,11 +775,17 @@ lists all the configuration directives. Items in black are used by
|
|||
notifications. If you do not supply a host alias, the gateway will create a long form URL (http://<i>hostname:port/msgtoken</i>) when it sends notifications
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="color: #500000; background: white">
|
||||
<tr >
|
||||
<td valign=top >
|
||||
<tt>local-mmsc-domains</tt>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
<i>MMSC</i>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
List of
|
||||
Internet domains (comma separated)
|
||||
|
@ -762,9 +796,16 @@ lists all the configuration directives. Items in black are used by
|
|||
or MMS messages received destined to these domains should be treated as local
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="color: #500000; background: white">
|
||||
<tr >
|
||||
<td valign=top ><tt>local-prefixes</tt>
|
||||
</td>
|
||||
|
||||
|
||||
<td valign=top >
|
||||
<i>MMSC</i>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
Number
|
||||
prefix list
|
||||
|
@ -780,6 +821,12 @@ lists all the configuration directives. Items in black are used by
|
|||
<tt>storage-directory
|
||||
</tt>
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
<i>ALL</i>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
Directory name
|
||||
(string)
|
||||
|
@ -794,6 +841,12 @@ lists all the configuration directives. Items in black are used by
|
|||
<td valign=top >
|
||||
<tt>max-send-threads</tt>
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
<i>ALL</i>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
Number
|
||||
</td>
|
||||
|
@ -803,10 +856,16 @@ lists all the configuration directives. Items in black are used by
|
|||
faster.
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="color: #500000; background: white">
|
||||
<tr >
|
||||
<td valign=top >
|
||||
<tt>send-mail-prog</tt>
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
<i>MMSC</i>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
String
|
||||
</td>
|
||||
|
@ -815,7 +874,9 @@ lists all the configuration directives. Items in black are used by
|
|||
(MMS-to-email or to foreign MMS gateways via SMTP). This command can include variables: %f
|
||||
– replaced with the message from address, %t – replaced with the
|
||||
recipient address (RFC 822 compliant), %s – the message subject, %m
|
||||
– the message ID
|
||||
– the message ID. (NOTE: Special shell characters —
|
||||
&, |, $, (, ), and so on &mdash are escaped
|
||||
after variable substitution, hence parameter quoting is not necessary.)
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -823,6 +884,12 @@ lists all the configuration directives. Items in black are used by
|
|||
<tt>unified-prefix
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
<i>ALL</i>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
Number list
|
||||
</td>
|
||||
|
@ -841,6 +908,12 @@ lists all the configuration directives. Items in black are used by
|
|||
<tt>maximum-send-attempts
|
||||
</tt>
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
<i>ALL</i>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
integer
|
||||
</td>
|
||||
|
@ -855,6 +928,12 @@ lists all the configuration directives. Items in black are used by
|
|||
<tt>default-message-expiry</tt>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
<i>ALL</i>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
Integer
|
||||
</td>
|
||||
|
@ -869,6 +948,12 @@ lists all the configuration directives. Items in black are used by
|
|||
<tt>queue-run-interval</tt>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
<i>ALL</i>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
Real
|
||||
</td>
|
||||
|
@ -882,6 +967,12 @@ lists all the configuration directives. Items in black are used by
|
|||
<tt>send-attempt-back-off</tt>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
<i>ALL</i>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
Integer
|
||||
</td>
|
||||
|
@ -890,10 +981,16 @@ lists all the configuration directives. Items in black are used by
|
|||
delivery attempts, when a delivery attempt fails.
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="color: #500000; background: white">
|
||||
<tr >
|
||||
<td valign=top >
|
||||
<tt>sendsms-url</tt>
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
<i>MMSC</i>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
String
|
||||
</td>
|
||||
|
@ -904,11 +1001,16 @@ lists all the configuration directives. Items in black are used by
|
|||
parameters (udh, from, to, text, etc.)
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="color: #500000; background: white">
|
||||
<tr >
|
||||
<td valign=top >
|
||||
<tt>sendsms-username</tt>
|
||||
|
||||
</td>
|
||||
<td valign=top >
|
||||
<i>MMSC</i>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
String
|
||||
</td>
|
||||
|
@ -917,10 +1019,15 @@ lists all the configuration directives. Items in black are used by
|
|||
pass (for authentication) to send-sms URL
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="color: #500000; background: white">
|
||||
<tr >
|
||||
<td valign=top >
|
||||
<tt>sendsms-password</tt>
|
||||
</td>
|
||||
<td valign=top >
|
||||
<i>MMSC</i>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
String
|
||||
</td>
|
||||
|
@ -929,10 +1036,15 @@ lists all the configuration directives. Items in black are used by
|
|||
pass (for authentication) to send-sms URL
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="color: #500000; background: white">
|
||||
<tr >
|
||||
<td valign=top >
|
||||
<tt>sendsms-global-sender</tt>
|
||||
</td>
|
||||
<td valign=top >
|
||||
<i>MMSC</i>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
String
|
||||
</td>
|
||||
|
@ -941,11 +1053,16 @@ lists all the configuration directives. Items in black are used by
|
|||
(<i>to</i> field) to use in send sms url
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="color: #500000; background: white">
|
||||
<tr >
|
||||
<td valign=top >
|
||||
<tt>mms-port</tt>
|
||||
|
||||
</td>
|
||||
<td valign=top >
|
||||
<i>MMSC</i>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
Integer
|
||||
</td>
|
||||
|
@ -956,11 +1073,17 @@ lists all the configuration directives. Items in black are used by
|
|||
</td>
|
||||
</tr>
|
||||
|
||||
<tr style="color: #500000; background: white">
|
||||
<tr >
|
||||
<td valign=top >
|
||||
<tt>mm7-port</tt>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
<i>MMSC</i>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
Integer
|
||||
</td>
|
||||
|
@ -975,6 +1098,12 @@ lists all the configuration directives. Items in black are used by
|
|||
<td valign=top >
|
||||
<tt>allow-ip</tt>
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
<i>ALL</i>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
List of IP
|
||||
addresses
|
||||
|
@ -993,6 +1122,12 @@ lists all the configuration directives. Items in black are used by
|
|||
<td valign=top >
|
||||
<tt>deny-ip</tt>
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
<i>ALL</i>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
List of IP
|
||||
addresses
|
||||
|
@ -1005,10 +1140,16 @@ lists all the configuration directives. Items in black are used by
|
|||
</td>
|
||||
</tr>
|
||||
|
||||
<tr style="color: #500000; background: white">
|
||||
<tr >
|
||||
<td valign=top >
|
||||
<tt>mms-client-msisdn-header</tt>
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
<i>MMSC</i>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
String
|
||||
</td>
|
||||
|
@ -1021,10 +1162,16 @@ lists all the configuration directives. Items in black are used by
|
|||
(default header name is <tt>X-WAP-Network-Client-MSISDN</tt>)
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="color: #500000; background: white">
|
||||
<tr >
|
||||
<td valign=top >
|
||||
<tt>mms-client-ip-header</tt>
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
<i>MMSC</i>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
String
|
||||
</td>
|
||||
|
@ -1040,10 +1187,16 @@ lists all the configuration directives. Items in black are used by
|
|||
</td>
|
||||
</tr>
|
||||
|
||||
<tr style="color: #500000; background: white">
|
||||
<tr >
|
||||
<td valign=top >
|
||||
<tt>allow-ip-type</tt>
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
<i>MMSC</i>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
Boolean
|
||||
</td>
|
||||
|
@ -1052,10 +1205,16 @@ lists all the configuration directives. Items in black are used by
|
|||
senders identified by IP address (i.e. not by MSISDN). Default: True.
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="color: #500000; background: white">
|
||||
<tr >
|
||||
<td valign=top >
|
||||
<tt>optimize-notification-size</tt>
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
<i>MMSC</i>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
Boolean
|
||||
</td>
|
||||
|
@ -1065,10 +1224,16 @@ lists all the configuration directives. Items in black are used by
|
|||
fields. Default: false
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="color: #500000; background: white">
|
||||
<tr >
|
||||
<td valign=top >
|
||||
<tt>content-adaptation</tt>
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
<i>MMSC</i>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
Boolean
|
||||
</td>
|
||||
|
@ -1079,10 +1244,16 @@ lists all the configuration directives. Items in black are used by
|
|||
</td>
|
||||
</tr>
|
||||
|
||||
<tr style="color: #500000; background: white">
|
||||
<tr >
|
||||
<td valign=top >
|
||||
<tt>email2mms-relay-hosts</tt>
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
<i>MMSC</i>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
Number list
|
||||
</td>
|
||||
|
@ -1100,10 +1271,16 @@ lists all the configuration directives. Items in black are used by
|
|||
queued, otherwise it is discarded.
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="color: #500000; background: white">
|
||||
<tr >
|
||||
<td valign=top >
|
||||
<tt>billing-library</tt>
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
<i>MMSC</i>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
String
|
||||
</td>
|
||||
|
@ -1114,10 +1291,16 @@ lists all the configuration directives. Items in black are used by
|
|||
generation. See <tt>mms_billing.h</tt> for details.
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="color: #500000; background: white">
|
||||
<tr >
|
||||
<td valign=top >
|
||||
<tt>billing-module-parameters</tt>
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
<i>MMSC</i>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
String
|
||||
</td>
|
||||
|
@ -1128,10 +1311,16 @@ lists all the configuration directives. Items in black are used by
|
|||
</td>
|
||||
</tr>
|
||||
|
||||
<tr style="color: #500000; background: white">
|
||||
<tr >
|
||||
<td valign=top >
|
||||
<tt>resolver-library</tt>
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
<i>MMSC</i>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
String
|
||||
</td>
|
||||
|
@ -1145,10 +1334,16 @@ lists all the configuration directives. Items in black are used by
|
|||
<tt>mms_resolve.h</tt> for details.
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="color: #500000; background: white">
|
||||
<tr >
|
||||
<td valign=top >
|
||||
<tt>resolver-module-parameters</tt>
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
<i>MMSC</i>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
String
|
||||
</td>
|
||||
|
@ -1159,13 +1354,19 @@ lists all the configuration directives. Items in black are used by
|
|||
</td>
|
||||
</tr>
|
||||
|
||||
<tr style="color: #500000; background: white">
|
||||
<tr >
|
||||
<td valign=top >
|
||||
<tt>detokenizer-library</tt>
|
||||
</td>
|
||||
<td valign=top >
|
||||
String
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
<i>MMSC</i>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
Optional
|
||||
library containing functions for finding MSISDN from request URL
|
||||
|
@ -1176,10 +1377,16 @@ lists all the configuration directives. Items in black are used by
|
|||
<tt>mms_detokenize.h</tt> for details.
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="color: #500000; background: white">
|
||||
<tr >
|
||||
<td valign=top >
|
||||
<tt>detokenizer-module-parameters</tt>
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
<i>MMSC</i>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
String
|
||||
</td>
|
||||
|
@ -1190,10 +1397,16 @@ lists all the configuration directives. Items in black are used by
|
|||
</td>
|
||||
</tr>
|
||||
|
||||
<tr style="color: #500000; background: white">
|
||||
<tr >
|
||||
<td valign=top >
|
||||
<tt>prov-server-notify-script</tt>
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
<i>MMSC</i>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
String
|
||||
</td>
|
||||
|
@ -1207,10 +1420,16 @@ lists all the configuration directives. Items in black are used by
|
|||
failed fetch provides a description of the error (e.g. message expired).
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="color: #500000; background: white">
|
||||
<tr >
|
||||
<td valign=top >
|
||||
<tt>prov-server-sub-status-script</tt>
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
<i>MMSC</i>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
string
|
||||
</td>
|
||||
|
@ -1225,10 +1444,16 @@ lists all the configuration directives. Items in black are used by
|
|||
<tt>mmsrelay</tt> will deliver the message (see below).
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="color: #500000; background: white">
|
||||
<tr >
|
||||
<td valign=top>
|
||||
<tt>notify-unprovisioned</tt>
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
<i>MMSC</i>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
Boolean
|
||||
</td>
|
||||
|
@ -1238,23 +1463,35 @@ lists all the configuration directives. Items in black are used by
|
|||
(e.g. SMS) when an MMS message is received for them.
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="color: #500000; background: white">
|
||||
<tr >
|
||||
<td valign=top>
|
||||
<tt>mms-notify-text</tt>
|
||||
</td>
|
||||
<td valign=top >
|
||||
String
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
<i>MMSC</i>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
Message to send
|
||||
to device that does not support MMS, when a message is received for the user.
|
||||
This message is sent as plain SMS via the Send SMS URL specified above.
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="color: #500000; background: white">
|
||||
<tr >
|
||||
<td valign=top >
|
||||
<tt>mms-notify-unprovisioned-text</tt>
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
<i>MMSC</i>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top>
|
||||
String
|
||||
</td>
|
||||
|
@ -1264,10 +1501,16 @@ lists all the configuration directives. Items in black are used by
|
|||
<tt>notify-unprovisioned</tt> is true).
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="color: #500000; background: white">
|
||||
<tr >
|
||||
<td valign=top >
|
||||
<tt>mms-message-too-large-txt</tt>
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
<i>MMSC</i>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
String
|
||||
</td>
|
||||
|
@ -1279,10 +1522,16 @@ lists all the configuration directives. Items in black are used by
|
|||
part of an MMS message.
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="color: #500000; background: white">
|
||||
<tr >
|
||||
<td valign=top >
|
||||
<tt>mms-to-email-html</tt>
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
<i>MMSC</i>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
string
|
||||
</td>
|
||||
|
@ -1296,10 +1545,16 @@ lists all the configuration directives. Items in black are used by
|
|||
is tagged at the bottom of the HTML.
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="color: #500000; background: white">
|
||||
<tr >
|
||||
<td valign=top >
|
||||
<tt>mms-to-email-txt</tt>
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
<i>MMSC</i>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
String
|
||||
</td>
|
||||
|
@ -1311,10 +1566,16 @@ lists all the configuration directives. Items in black are used by
|
|||
</tr>
|
||||
|
||||
|
||||
<tr style="color: #001177; background: white">
|
||||
<tr >
|
||||
<td valign=top >
|
||||
<tt>sendmms-port</tt>
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
<i>VAS GW</i>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
number
|
||||
</td>
|
||||
|
@ -1323,10 +1584,16 @@ lists all the configuration directives. Items in black are used by
|
|||
requests. (Optional.)
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="color: #001177; background: white">
|
||||
<tr >
|
||||
<td valign=top >
|
||||
<tt>sendmms-port-ssl</tt>
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
<i>VAS GW</i>
|
||||
|
||||
</td>
|
||||
|
||||
<td valign=top >
|
||||
Boolean
|
||||
</td>
|
||||
|
|
|
@ -637,6 +637,7 @@ static int send2email(Octstr *to, Octstr *from, Octstr *subject,
|
|||
|
||||
i = 0;
|
||||
for (;;) {
|
||||
Octstr *tmp;
|
||||
while (sendmail_cmd[i]) {
|
||||
char c = sendmail_cmd[i];
|
||||
if (c == '%' && sendmail_cmd[i + 1])
|
||||
|
@ -649,22 +650,37 @@ static int send2email(Octstr *to, Octstr *from, Octstr *subject,
|
|||
|
||||
switch(sendmail_cmd[i+1]) {
|
||||
case 't':
|
||||
octstr_append(cmd, to);
|
||||
tmp = octstr_duplicate(to);
|
||||
escape_shell_chars(tmp);
|
||||
octstr_append(cmd, tmp);
|
||||
octstr_destroy(tmp);
|
||||
break;
|
||||
case 'f':
|
||||
if (append_hostname) {
|
||||
Octstr *xfrom = octstr_duplicate(from);
|
||||
addmmscname(xfrom, myhostname);
|
||||
escape_shell_chars(xfrom);
|
||||
|
||||
octstr_append(cmd, xfrom);
|
||||
octstr_destroy(xfrom);
|
||||
} else
|
||||
octstr_append(cmd, from);
|
||||
} else {
|
||||
tmp = octstr_duplicate(from);
|
||||
escape_shell_chars(tmp);
|
||||
octstr_append(cmd, tmp);
|
||||
octstr_destroy(tmp);
|
||||
}
|
||||
break;
|
||||
case 's':
|
||||
tmp = octstr_duplicate(subject);
|
||||
escape_shell_chars(tmp);
|
||||
octstr_append(cmd, subject);
|
||||
octstr_destroy(tmp);
|
||||
break;
|
||||
case 'm':
|
||||
tmp = octstr_duplicate(msgid);
|
||||
escape_shell_chars(tmp);
|
||||
octstr_append(cmd, msgid);
|
||||
octstr_destroy(tmp);
|
||||
break;
|
||||
case '%':
|
||||
octstr_format_append(cmd, "%%");
|
||||
|
@ -1019,3 +1035,25 @@ int is_allowed_host(Octstr *host, Octstr *host_list)
|
|||
|
||||
return ret;
|
||||
}
|
||||
|
||||
#define SHELLCHARS "'|\"()[]{}$&!?*><%`\n \t"
|
||||
void escape_shell_chars(Octstr *str)
|
||||
{
|
||||
Octstr *tmp;
|
||||
int i, n, prev;
|
||||
|
||||
octstr_strip_blanks(str);
|
||||
|
||||
tmp = octstr_duplicate(str);
|
||||
octstr_delete(str, 0, octstr_len(str));
|
||||
|
||||
for (i = 0, prev=0, n = octstr_len(tmp); i < n; i++) {
|
||||
int ch = octstr_get_char(tmp,i);
|
||||
|
||||
if (strchr(SHELLCHARS, ch) != NULL && prev != '\\')
|
||||
octstr_append_char(str, '\\');
|
||||
octstr_append_char(str, ch);
|
||||
prev = ch;
|
||||
}
|
||||
octstr_destroy(tmp);
|
||||
}
|
||||
|
|
|
@ -143,6 +143,10 @@ void _mms_fixup_address(Octstr *address);
|
|||
|
||||
/* Check that host is one of hosts in semi-colon separated list in host_list */
|
||||
int is_allowed_host(Octstr *host, Octstr *host_list);
|
||||
|
||||
/* escape (backlash) special shell characters. */
|
||||
void escape_shell_chars(Octstr *str);
|
||||
|
||||
#define MAXQTRIES 100
|
||||
#define BACKOFF_FACTOR 5*60 /* In seconds */
|
||||
#define QUEUERUN_INTERVAL 15*60 /* 15 minutes. */
|
||||
|
|
Loading…
Reference in New Issue