installation.html (90792) | installation.html (94334) |
---|---|
1<html> 2<head><title>Installation and Configuration</title> 3</head> 4<body> 5<h1>Installation</h1> 6<h2>Contents</h2> 7<ul> 8 <li><a href="#compile">Compiling and Installing Your Filter</a> --- 23 unchanged lines hidden (view full) --- 32</pre> 33 34<p> 35To run the filter, the Milter shared library must be available to the 36run-time linker. 37 38<H2><a name="config">Configuring Sendmail</A></H2> 39 | 1<html> 2<head><title>Installation and Configuration</title> 3</head> 4<body> 5<h1>Installation</h1> 6<h2>Contents</h2> 7<ul> 8 <li><a href="#compile">Compiling and Installing Your Filter</a> --- 23 unchanged lines hidden (view full) --- 32</pre> 33 34<p> 35To run the filter, the Milter shared library must be available to the 36run-time linker. 37 38<H2><a name="config">Configuring Sendmail</A></H2> 39 |
40First, you must compile sendmail versions before 8.12 with _FFR_MILTER 41defined. To do this, add the following lines to your build | 40First, you must compile sendmail with MILTER defined. 41If you use a sendmail version older than 8.12 please see 42the instructions for your version. 43To do this, add the following lines to your build |
42configuration file (devtools/Site/config.site.m4) 43<pre> | 44configuration file (devtools/Site/config.site.m4) 45<pre> |
44APPENDDEF(`conf_sendmail_ENVDEF', `-D_FFR_MILTER=1') 45APPENDDEF(`conf_libmilter_ENVDEF', `-D_FFR_MILTER=1') | 46APPENDDEF(`conf_sendmail_ENVDEF', `-DMILTER') |
46</pre> 47 48then type <code>./Build -c</code> in your sendmail directory. 49 50<P> 51Next, you must add the desired filters to your sendmail configuration | 47</pre> 48 49then type <code>./Build -c</code> in your sendmail directory. 50 51<P> 52Next, you must add the desired filters to your sendmail configuration |
52(.mc) file. With versions before 8.12, the file must then be 53processed with _FFR_MILTER defined. Mail filters have three equates: | 53(.mc) file. 54Mail filters have three equates: |
54The required <code>S=</code> equate specifies the socket where 55sendmail should look for the filter; The optional <code>F=</code> and 56<code>T=</code> equates specify flags and timeouts, respectively. All 57equates names, equate field names, and flag values are case sensitive. 58 59<P> 60The current flags (<code>F=</code>) are: 61<p> --- 50 unchanged lines hidden (view full) --- 112third uses an IP socket on port 999. 113<pre> 114 INPUT_MAIL_FILTER(`filter1', `S=unix:/var/run/f1.sock, F=R') 115 INPUT_MAIL_FILTER(`filter2', `S=unix:/var/run/f2.sock, F=T, T=S:1s;R:1s;E:5m') 116 INPUT_MAIL_FILTER(`filter3', `S=inet:999@localhost, T=C:2m') 117 118 define(`confINPUT_MAIL_FILTERS', `filter2,filter1,filter3') 119<hr width="30%"> | 55The required <code>S=</code> equate specifies the socket where 56sendmail should look for the filter; The optional <code>F=</code> and 57<code>T=</code> equates specify flags and timeouts, respectively. All 58equates names, equate field names, and flag values are case sensitive. 59 60<P> 61The current flags (<code>F=</code>) are: 62<p> --- 50 unchanged lines hidden (view full) --- 113third uses an IP socket on port 999. 114<pre> 115 INPUT_MAIL_FILTER(`filter1', `S=unix:/var/run/f1.sock, F=R') 116 INPUT_MAIL_FILTER(`filter2', `S=unix:/var/run/f2.sock, F=T, T=S:1s;R:1s;E:5m') 117 INPUT_MAIL_FILTER(`filter3', `S=inet:999@localhost, T=C:2m') 118 119 define(`confINPUT_MAIL_FILTERS', `filter2,filter1,filter3') 120<hr width="30%"> |
120 m4 <b>-D_FFR_MILTER</b> ../m4/cf.m4 myconfig.mc > myconfig.cf | 121 m4 ../m4/cf.m4 myconfig.mc > myconfig.cf |
121</pre> 122By default, the filters would be run in the order declared, 123i.e. "filter1, filter2, filter3"; however, since 124<code>confINPUT_MAIL_FILTERS</code> is defined, the filters will be 125run "filter2, filter1, filter3". Also note that a filter can be 126defined without adding it to the input filter list by using 127MAIL_FILTER() instead of INPUT_MAIL_FILTER(). 128 --- 26 unchanged lines hidden (view full) --- 155{mail_mailer}, {mail_host}, {mail_addr}</code></td></tr> 156<tr><td>confMILTER_MACROS_ENVRCPT</td><td>Milter.macros.envrcpt</td> 157<td><code>{rcpt_mailer}, {rcpt_host}, {rcpt_addr}</code></td></tr> 158</table> 159For information about available macros and their meanings, please 160consult the sendmail documentation. 161<hr size="1"> 162<font size="-1"> | 122</pre> 123By default, the filters would be run in the order declared, 124i.e. "filter1, filter2, filter3"; however, since 125<code>confINPUT_MAIL_FILTERS</code> is defined, the filters will be 126run "filter2, filter1, filter3". Also note that a filter can be 127defined without adding it to the input filter list by using 128MAIL_FILTER() instead of INPUT_MAIL_FILTER(). 129 --- 26 unchanged lines hidden (view full) --- 156{mail_mailer}, {mail_host}, {mail_addr}</code></td></tr> 157<tr><td>confMILTER_MACROS_ENVRCPT</td><td>Milter.macros.envrcpt</td> 158<td><code>{rcpt_mailer}, {rcpt_host}, {rcpt_addr}</code></td></tr> 159</table> 160For information about available macros and their meanings, please 161consult the sendmail documentation. 162<hr size="1"> 163<font size="-1"> |
163Copyright (c) 2000-2001 Sendmail, Inc. and its suppliers. | 164Copyright (c) 2000-2002 Sendmail, Inc. and its suppliers. |
164All rights reserved. 165<br> 166By using this file, you agree to the terms and conditions set 167forth in the <a href="LICENSE.txt">LICENSE</a>. 168</font> 169</body> </html> | 165All rights reserved. 166<br> 167By using this file, you agree to the terms and conditions set 168forth in the <a href="LICENSE.txt">LICENSE</a>. 169</font> 170</body> </html> |