<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html401/loose.dtd"> <html> <!-- Created on September, 10 2009 by texi2html 1.78 --> <!-- Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author) Karl Berry <karl@freefriends.org> Olaf Bachmann <obachman@mathematik.uni-kl.de> and many others. Maintained by: Many creative people. Send bugs and suggestions to <texi2html-bug@nongnu.org> --> <head> <title>Specification of the Exim Mail Transfer Agent: 28. The lmtp transport</title> <meta name="description" content="Specification of the Exim Mail Transfer Agent: 28. The lmtp transport"> <meta name="keywords" content="Specification of the Exim Mail Transfer Agent: 28. The lmtp transport"> <meta name="resource-type" content="document"> <meta name="distribution" content="global"> <meta name="Generator" content="texi2html 1.78"> <meta http-equiv="Content-Type" content="text/html; charset=us-ascii"> <style type="text/css"> <!-- a.summary-letter {text-decoration: none} pre.display {font-family: serif} pre.format {font-family: serif} pre.menu-comment {font-family: serif} pre.menu-preformatted {font-family: serif} pre.smalldisplay {font-family: serif; font-size: smaller} pre.smallexample {font-size: smaller} pre.smallformat {font-family: serif; font-size: smaller} pre.smalllisp {font-size: smaller} span.roman {font-family:serif; font-weight:normal;} span.sansserif {font-family:sans-serif; font-weight:normal;} ul.toc {list-style: none} --> </style> </head> <body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000"> <a name="The-lmtp-transport"></a> <a name="SEC234"></a> <table cellpadding="1" cellspacing="1" border="0"> <tr><td valign="middle" align="left">[<a href="spec_27.html#SEC233" title="Previous section in reading order"> < </a>]</td> <td valign="middle" align="left">[<a href="spec_29.html#SEC235" title="Next section in reading order"> > </a>]</td> <td valign="middle" align="left"> </td> <td valign="middle" align="left">[<a href="spec_27.html#SEC232" title="Beginning of this chapter or previous chapter"> << </a>]</td> <td valign="middle" align="left">[<a href="spec.html#SEC_Top" title="Up section"> Up </a>]</td> <td valign="middle" align="left">[<a href="spec_29.html#SEC235" title="Next chapter"> >> </a>]</td> <td valign="middle" align="left"> </td> <td valign="middle" align="left"> </td> <td valign="middle" align="left"> </td> <td valign="middle" align="left"> </td> <td valign="middle" align="left">[<a href="spec.html#SEC_Top" title="Cover (top) of document">Top</a>]</td> <td valign="middle" align="left">[Contents]</td> <td valign="middle" align="left">[<a href="spec_55.html#SEC493" title="Index">Index</a>]</td> <td valign="middle" align="left">[<a href="spec_abt.html#SEC_About" title="About (help)"> ? </a>]</td> </tr></table> <h1 class="chapter"> 28. The lmtp transport </h1> <p>The <code>lmtp</code> transport runs the LMTP protocol (RFC 2033) over a pipe to a specified command or by interacting with a Unix domain socket. This transport is something of a cross between the <code>pipe</code> and <code>smtp</code> transports. Exim also has support for using LMTP over TCP/IP; this is implemented as an option for the <code>smtp</code> transport. Because LMTP is expected to be of minority interest, the default build-time configure in ‘<tt>src/EDITME</tt>’ has it commented out. You need to ensure that </p> <table><tr><td> </td><td><pre class="example">TRANSPORT_LMTP=yes </pre></td></tr></table> <a name="IDX2194"></a> <p>is present in your ‘<tt>Local/Makefile</tt>’ in order to have the <code>lmtp</code> transport included in the Exim binary. The private options of the <code>lmtp</code> transport are as follows: </p> <a name="IDX2195"></a> <table> <tr><td> <p><code>batch_id</code></p></td><td><p> Use: <em>lmtp</em></p></td><td><p> Type: <em>string</em>*<em></em></p></td><td><p> Default: <em>unset</em> </p></td></tr> </table> <p>See the description of local delivery batching in chapter <a href="spec_25.html#SEC221">Address batching in local transports</a>. </p> <a name="IDX2196"></a> <table> <tr><td> <p><code>batch_max</code></p></td><td><p> Use: <em>lmtp</em></p></td><td><p> Type: <em>integer</em></p></td><td><p> Default: <em>1</em> </p></td></tr> </table> <p>This limits the number of addresses that can be handled in a single delivery. Most LMTP servers can handle several addresses at once, so it is normally a good idea to increase this value. See the description of local delivery batching in chapter <a href="spec_25.html#SEC221">Address batching in local transports</a>. </p> <a name="IDX2197"></a> <table> <tr><td> <p><code>command</code></p></td><td><p> Use: <em>lmtp</em></p></td><td><p> Type: <em>string</em>*<em></em></p></td><td><p> Default: <em>unset</em> </p></td></tr> </table> <p>This option must be set if <code>socket</code> is not set. The string is a command which is run in a separate process. It is split up into a command name and list of arguments, each of which is separately expanded (so expansion cannot change the number of arguments). The command is run directly, not via a shell. The message is passed to the new process using the standard input and output to operate the LMTP protocol. </p> <a name="IDX2198"></a> <table> <tr><td> <p><code>ignore_quota</code></p></td><td><p> Use: <em>lmtp</em></p></td><td><p> Type: <em>boolean</em></p></td><td><p> Default: <em>false</em> </p></td></tr> </table> <a name="IDX2199"></a> <p>If this option is set true, the string ‘<samp>IGNOREQUOTA</samp>’ is added to RCPT commands, provided that the LMTP server has advertised support for IGNOREQUOTA in its response to the LHLO command. </p> <a name="IDX2200"></a> <table> <tr><td> <p><code>socket</code></p></td><td><p> Use: <em>lmtp</em></p></td><td><p> Type: <em>string</em>*<em></em></p></td><td><p> Default: <em>unset</em> </p></td></tr> </table> <p>This option must be set if <code>command</code> is not set. The result of expansion must be the name of a Unix domain socket. The transport connects to the socket and delivers the message to it using the LMTP protocol. </p> <a name="IDX2201"></a> <table> <tr><td> <p><code>timeout</code></p></td><td><p> Use: <em>lmtp</em></p></td><td><p> Type: <em>time</em></p></td><td><p> Default: <em>5m</em> </p></td></tr> </table> <p>The transport is aborted if the created process or Unix domain socket does not respond to LMTP commands or message input within this timeout. Delivery is deferred, and will be tried again later. Here is an example of a typical LMTP transport: </p> <table><tr><td> </td><td><pre class="example">lmtp: driver = lmtp command = /some/local/lmtp/delivery/program batch_max = 20 user = exim </pre></td></tr></table> <p>This delivers up to 20 addresses at a time, in a mixture of domains if necessary, running as the user <em>exim</em>. </p> <hr size="6"> <table cellpadding="1" cellspacing="1" border="0"> <tr><td valign="middle" align="left">[<a href="spec_27.html#SEC232" title="Beginning of this chapter or previous chapter"> << </a>]</td> <td valign="middle" align="left">[<a href="spec_29.html#SEC235" title="Next chapter"> >> </a>]</td> <td valign="middle" align="left"> </td> <td valign="middle" align="left"> </td> <td valign="middle" align="left"> </td> <td valign="middle" align="left"> </td> <td valign="middle" align="left"> </td> <td valign="middle" align="left">[<a href="spec.html#SEC_Top" title="Cover (top) of document">Top</a>]</td> <td valign="middle" align="left">[Contents]</td> <td valign="middle" align="left">[<a href="spec_55.html#SEC493" title="Index">Index</a>]</td> <td valign="middle" align="left">[<a href="spec_abt.html#SEC_About" title="About (help)"> ? </a>]</td> </tr></table> <p> <font size="-1"> This document was generated on <i>September, 10 2009</i> using <a href="http://www.nongnu.org/texi2html/"><i>texi2html 1.78</i></a>. </font> <br> </p> </body> </html>