Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 3d4d9cc28af00be9852b4cb3055b122e > files > 133

exim-doc-4.69-4.fc12.noarch.rpm

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><style xmlns="" type="text/css">
div.added    { background-color: #ffff99; }
div.deleted  { text-decoration: line-through;
               background-color: #FF7F7F; }
div.changed  { background-color: #99ff99; }
div.off      {  }

span.added   { background-color: #ffff99; }
span.deleted { text-decoration: line-through;
               background-color: #FF7F7F; }
span.changed { background-color: #99ff99; }
span.off     {  }



pre.literallayout {
  background-color: #E8E8D0;
  padding-left: 0.5cm;
  padding-top:  5px;
  padding-bottom: 5px;
}

div[class=changed] pre.literallayout {
  background-color: #99ff99;
  padding-left: 0.5cm;
  padding-top:  5px;
  padding-bottom: 5px;
}

div.literallayout {
  background-color: #E8E8D0;
  padding-left: 0.5cm;
  padding-top:  5px;
  padding-bottom: 5px;
}

div[class=changed] div.literallayout {
  background-color: #99ff99;
  padding-left: 0.5cm;
  padding-top:  5px;
  padding-bottom: 5px;
}

</style><title>27. The autoreply transport</title><meta name="generator" content="DocBook XSL Stylesheets V1.72.0" /><link rel="start" href="index.html" title="Specification of the Exim Mail Transfer Agent" /><link rel="up" href="index.html" title="Specification of the Exim Mail Transfer Agent" /><link rel="prev" href="ch26.html" title="26. The appendfile transport" /><link rel="next" href="ch28.html" title="28. The lmtp transport" /></head><body><div class="navheader">
<table width="100%" summary="Navigation header"><tr><td width="20%" align="left"><a accesskey="p" href="ch26.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="ch28.html">Next</a></td></tr></table></div>
<div class="chapter" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title"><a href="index.html#toc0232" id="CHID8">27. The autoreply transport</a></h2></div>
</div>
</div>
<p>
<a id="IIDauttra1" class="indexterm"></a>
<a id="IIDauttra2" class="indexterm"></a>
The <span><strong class="command">autoreply</strong></span> transport is not a true transport in that it does not cause
the message to be transmitted. Instead, it generates a new mail message as an
automatic reply to the incoming message. <span class="emphasis"><em>References:</em></span> and
<span class="emphasis"><em>Auto-Submitted:</em></span> header lines are included. These are constructed according
to the rules in RFCs 2822 and 3834, respectively.
</p>
<p>
If the router that passes the message to this transport does not have the
<span><strong class="option">unseen</strong></span> option set, the original message (for the current recipient) is not
delivered anywhere. However, when the <span><strong class="option">unseen</strong></span> option is set on the router
that passes the message to this transport, routing of the address continues, so
another router can set up a normal message delivery.
</p>
<p>
The <span><strong class="command">autoreply</strong></span> transport is usually run as the result of mail filtering, a
“<span class="quote">vacation</span>” message being the standard example. However, it can also be run
directly from a router like any other transport. To reduce the possibility of
message cascades, messages created by the <span><strong class="command">autoreply</strong></span> transport always have
empty envelope sender addresses, like bounce messages.
</p>
<p>
The parameters of the message to be sent can be specified in the configuration
by options described below. However, these are used only when the address
passed to the transport does not contain its own reply information. When the
transport is run as a consequence of a
<span><strong class="option">mail</strong></span>
or <span><strong class="option">vacation</strong></span> command in a filter file, the parameters of the message are
supplied by the filter, and passed with the address. The transport’s options
that define the message are then ignored (so they are not usually set in this
case). The message is specified entirely by the filter or by the transport; it
is never built from a mixture of options. However, the <span><strong class="option">file_optional</strong></span>,
<span><strong class="option">mode</strong></span>, and <span><strong class="option">return_message</strong></span> options apply in all cases.
</p>
<p>
<span><strong class="command">Autoreply</strong></span> is implemented as a local transport. When used as a result of a
command in a user’s filter file, <span><strong class="command">autoreply</strong></span> normally runs under the uid and
gid of the user, and with appropriate current and home directories (see chapter
<a href="ch23.html" title="23. Environment for running local transports">23</a>).
</p>
<p>
There is a subtle difference between routing a message to a <span><strong class="command">pipe</strong></span> transport
that generates some text to be returned to the sender, and routing it to an
<span><strong class="command">autoreply</strong></span> transport. This difference is noticeable only if more than one
address from the same message is so handled. In the case of a pipe, the
separate outputs from the different addresses are gathered up and returned to
the sender in a single message, whereas if <span><strong class="command">autoreply</strong></span> is used, a separate
message is generated for each address that is passed to it.
</p>
<p>
Non-printing characters are not permitted in the header lines generated for the
message that <span><strong class="command">autoreply</strong></span> creates, with the exception of newlines that are
immediately followed by white space. If any non-printing characters are found,
the transport defers.
Whether characters with the top bit set count as printing characters or not is
controlled by the <span><strong class="option">print_topbitchars</strong></span> global option.
</p>
<p>
If any of the generic options for manipulating headers (for example,
<span><strong class="option">headers_add</strong></span>) are set on an <span><strong class="command">autoreply</strong></span> transport, they apply to the copy
of the original message that is included in the generated message when
<span><strong class="option">return_message</strong></span> is set. They do not apply to the generated message itself.
</p>
<p>
<a id="id595490" class="indexterm"></a>
If the <span><strong class="command">autoreply</strong></span> transport receives return code 2 from Exim when it submits
the message, indicating that there were no recipients, it does not treat this
as an error. This means that autoreplies sent to <em class="varname">$sender_address</em> when this
is empty (because the incoming message is a bounce message) do not cause
problems. They are just discarded.
</p>
<div class="section" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 xmlns="" class="title"><a xmlns="http://www.w3.org/1999/xhtml" href="index.html#toc0233" id="SECID139">27.1 Private options for autoreply</a></h3></div>
</div>
</div>
<p>
<a id="id595530" class="indexterm"></a>
</p>
<p>
<a id="id595552" class="indexterm"></a>
</p>
<div class="informaltable">
<table border="1"><colgroup><col align="left" /><col align="center" /><col align="center" /><col align="right" /></colgroup><tbody><tr><td align="left"><span><strong class="option">bcc</strong></span></td><td align="center">Use: <span class="emphasis"><em>autoreply</em></span></td><td align="center">Type: <span class="emphasis"><em>string</em></span>†<span class="emphasis"><em></em></span></td><td align="right">Default: <span class="emphasis"><em>unset</em></span></td></tr></tbody></table></div>
<p>
This specifies the addresses that are to receive “<span class="quote">blind carbon copies</span>” of the
message when the message is specified by the transport.
</p>
<p>
<a id="id595645" class="indexterm"></a>
</p>
<div class="informaltable">
<table border="1"><colgroup><col align="left" /><col align="center" /><col align="center" /><col align="right" /></colgroup><tbody><tr><td align="left"><span><strong class="option">cc</strong></span></td><td align="center">Use: <span class="emphasis"><em>autoreply</em></span></td><td align="center">Type: <span class="emphasis"><em>string</em></span>†<span class="emphasis"><em></em></span></td><td align="right">Default: <span class="emphasis"><em>unset</em></span></td></tr></tbody></table></div>
<p>
This specifies recipients of the message and the contents of the <span class="emphasis"><em>Cc:</em></span> header
when the message is specified by the transport.
</p>
<p>
<a id="id595738" class="indexterm"></a>
</p>
<div class="informaltable">
<table border="1"><colgroup><col align="left" /><col align="center" /><col align="center" /><col align="right" /></colgroup><tbody><tr><td align="left"><span><strong class="option">file</strong></span></td><td align="center">Use: <span class="emphasis"><em>autoreply</em></span></td><td align="center">Type: <span class="emphasis"><em>string</em></span>†<span class="emphasis"><em></em></span></td><td align="right">Default: <span class="emphasis"><em>unset</em></span></td></tr></tbody></table></div>
<p>
The contents of the file are sent as the body of the message when the message
is specified by the transport. If both <span><strong class="option">file</strong></span> and <span><strong class="option">text</strong></span> are set, the text
string comes first.
</p>
<p>
<a id="id595836" class="indexterm"></a>
</p>
<div class="informaltable">
<table border="1"><colgroup><col align="left" /><col align="center" /><col align="center" /><col align="right" /></colgroup><tbody><tr><td align="left"><span><strong class="option">file_expand</strong></span></td><td align="center">Use: <span class="emphasis"><em>autoreply</em></span></td><td align="center">Type: <span class="emphasis"><em>boolean</em></span></td><td align="right">Default: <span class="emphasis"><em>false</em></span></td></tr></tbody></table></div>
<p>
If this is set, the contents of the file named by the <span><strong class="option">file</strong></span> option are
subjected to string expansion as they are added to the message.
</p>
<p>
<a id="id595927" class="indexterm"></a>
</p>
<div class="informaltable">
<table border="1"><colgroup><col align="left" /><col align="center" /><col align="center" /><col align="right" /></colgroup><tbody><tr><td align="left"><span><strong class="option">file_optional</strong></span></td><td align="center">Use: <span class="emphasis"><em>autoreply</em></span></td><td align="center">Type: <span class="emphasis"><em>boolean</em></span></td><td align="right">Default: <span class="emphasis"><em>false</em></span></td></tr></tbody></table></div>
<p>
If this option is true, no error is generated if the file named by the <span><strong class="option">file</strong></span>
option or passed with the address does not exist or cannot be read.
</p>
<p>
<a id="id596018" class="indexterm"></a>
</p>
<div class="informaltable">
<table border="1"><colgroup><col align="left" /><col align="center" /><col align="center" /><col align="right" /></colgroup><tbody><tr><td align="left"><span><strong class="option">from</strong></span></td><td align="center">Use: <span class="emphasis"><em>autoreply</em></span></td><td align="center">Type: <span class="emphasis"><em>string</em></span>†<span class="emphasis"><em></em></span></td><td align="right">Default: <span class="emphasis"><em>unset</em></span></td></tr></tbody></table></div>
<p>
This specifies the contents of the <span class="emphasis"><em>From:</em></span> header when the message is
specified by the transport.
</p>
<p>
<a id="id596111" class="indexterm"></a>
</p>
<div class="informaltable">
<table border="1"><colgroup><col align="left" /><col align="center" /><col align="center" /><col align="right" /></colgroup><tbody><tr><td align="left"><span><strong class="option">headers</strong></span></td><td align="center">Use: <span class="emphasis"><em>autoreply</em></span></td><td align="center">Type: <span class="emphasis"><em>string</em></span>†<span class="emphasis"><em></em></span></td><td align="right">Default: <span class="emphasis"><em>unset</em></span></td></tr></tbody></table></div>
<p>
This specifies additional RFC 2822 headers that are to be added to the message
when the message is specified by the transport. Several can be given by using
“<span class="quote">\n</span>” to separate them. There is no check on the format.
</p>
<p>
<a id="id596206" class="indexterm"></a>
</p>
<div class="informaltable">
<table border="1"><colgroup><col align="left" /><col align="center" /><col align="center" /><col align="right" /></colgroup><tbody><tr><td align="left"><span><strong class="option">log</strong></span></td><td align="center">Use: <span class="emphasis"><em>autoreply</em></span></td><td align="center">Type: <span class="emphasis"><em>string</em></span>†<span class="emphasis"><em></em></span></td><td align="right">Default: <span class="emphasis"><em>unset</em></span></td></tr></tbody></table></div>
<p>
This option names a file in which a record of every message sent is logged when
the message is specified by the transport.
</p>
<p>
<a id="id596295" class="indexterm"></a>
</p>
<div class="informaltable">
<table border="1"><colgroup><col align="left" /><col align="center" /><col align="center" /><col align="right" /></colgroup><tbody><tr><td align="left"><span><strong class="option">mode</strong></span></td><td align="center">Use: <span class="emphasis"><em>autoreply</em></span></td><td align="center">Type: <span class="emphasis"><em>octal integer</em></span></td><td align="right">Default: <span class="emphasis"><em>0600</em></span></td></tr></tbody></table></div>
<p>
If either the log file or the “<span class="quote">once</span>” file has to be created, this mode is
used.
</p>
<p>
<a id="id596385" class="indexterm"></a>
</p>
<div class="informaltable">
<table border="1"><colgroup><col align="left" /><col align="center" /><col align="center" /><col align="right" /></colgroup><tbody><tr><td align="left"><span><strong class="option">never_mail</strong></span></td><td align="center">Use: <span class="emphasis"><em>autoreply</em></span></td><td align="center">Type: <span class="emphasis"><em>address list</em></span>†<span class="emphasis"><em></em></span></td><td align="right">Default: <span class="emphasis"><em>unset</em></span></td></tr></tbody></table></div>
<p>
If any run of the transport creates a message with a recipient that matches any
item in the list, that recipient is quietly discarded. If all recipients are
discarded, no message is created. This applies both when the recipients are
generated by a filter and when they are specified in the transport.
</p>
<p>
<a id="id596478" class="indexterm"></a>
</p>
<div class="informaltable">
<table border="1"><colgroup><col align="left" /><col align="center" /><col align="center" /><col align="right" /></colgroup><tbody><tr><td align="left"><span><strong class="option">once</strong></span></td><td align="center">Use: <span class="emphasis"><em>autoreply</em></span></td><td align="center">Type: <span class="emphasis"><em>string</em></span>†<span class="emphasis"><em></em></span></td><td align="right">Default: <span class="emphasis"><em>unset</em></span></td></tr></tbody></table></div>
<p>
This option names a file or DBM database in which a record of each <span class="emphasis"><em>To:</em></span>
recipient is kept when the message is specified by the transport. <span class="bold"><strong>Note</strong></span>:
This does not apply to <span class="emphasis"><em>Cc:</em></span> or <span class="emphasis"><em>Bcc:</em></span> recipients.
</p>
<p>
If <span><strong class="option">once</strong></span> is unset, or is set to an empty string, the message is always sent.
By default, if <span><strong class="option">once</strong></span> is set to a non-empty file name, the message
is not sent if a potential recipient is already listed in the database.
However, if the <span><strong class="option">once_repeat</strong></span> option specifies a time greater than zero, the
message is sent if that much time has elapsed since a message was last sent to
this recipient. A setting of zero time for <span><strong class="option">once_repeat</strong></span> (the default)
prevents a message from being sent a second time – in this case, zero means
infinity.
</p>
<p>
If <span><strong class="option">once_file_size</strong></span> is zero, a DBM database is used to remember recipients,
and it is allowed to grow as large as necessary. If <span><strong class="option">once_file_size</strong></span> is set
greater than zero, it changes the way Exim implements the <span><strong class="option">once</strong></span> option.
Instead of using a DBM file to record every recipient it sends to, it uses a
regular file, whose size will never get larger than the given value.
</p>
<p>
In the file, Exim keeps a linear list of recipient addresses and the times at
which they were sent messages. If the file is full when a new address needs to
be added, the oldest address is dropped. If <span><strong class="option">once_repeat</strong></span> is not set, this
means that a given recipient may receive multiple messages, but at
unpredictable intervals that depend on the rate of turnover of addresses in the
file. If <span><strong class="option">once_repeat</strong></span> is set, it specifies a maximum time between repeats.
</p>
<p>
<a id="id596649" class="indexterm"></a>
</p>
<div class="informaltable">
<table border="1"><colgroup><col align="left" /><col align="center" /><col align="center" /><col align="right" /></colgroup><tbody><tr><td align="left"><span><strong class="option">once_file_size</strong></span></td><td align="center">Use: <span class="emphasis"><em>autoreply</em></span></td><td align="center">Type: <span class="emphasis"><em>integer</em></span></td><td align="right">Default: <span class="emphasis"><em>0</em></span></td></tr></tbody></table></div>
<p>
See <span><strong class="option">once</strong></span> above.
</p>
<p>
<a id="id596738" class="indexterm"></a>
</p>
<div class="informaltable">
<table border="1"><colgroup><col align="left" /><col align="center" /><col align="center" /><col align="right" /></colgroup><tbody><tr><td align="left"><span><strong class="option">once_repeat</strong></span></td><td align="center">Use: <span class="emphasis"><em>autoreply</em></span></td><td align="center">Type: <span class="emphasis"><em>time</em></span>†<span class="emphasis"><em></em></span></td><td align="right">Default: <span class="emphasis"><em>0s</em></span></td></tr></tbody></table></div>
<p>
See <span><strong class="option">once</strong></span> above.
After expansion, the value of this option must be a valid time value.
</p>
<p>
<a id="id596830" class="indexterm"></a>
</p>
<div class="informaltable">
<table border="1"><colgroup><col align="left" /><col align="center" /><col align="center" /><col align="right" /></colgroup><tbody><tr><td align="left"><span><strong class="option">reply_to</strong></span></td><td align="center">Use: <span class="emphasis"><em>autoreply</em></span></td><td align="center">Type: <span class="emphasis"><em>string</em></span>†<span class="emphasis"><em></em></span></td><td align="right">Default: <span class="emphasis"><em>unset</em></span></td></tr></tbody></table></div>
<p>
This specifies the contents of the <span class="emphasis"><em>Reply-To:</em></span> header when the message is
specified by the transport.
</p>
<p>
<a id="id596923" class="indexterm"></a>
</p>
<div class="informaltable">
<table border="1"><colgroup><col align="left" /><col align="center" /><col align="center" /><col align="right" /></colgroup><tbody><tr><td align="left"><span><strong class="option">return_message</strong></span></td><td align="center">Use: <span class="emphasis"><em>autoreply</em></span></td><td align="center">Type: <span class="emphasis"><em>boolean</em></span></td><td align="right">Default: <span class="emphasis"><em>false</em></span></td></tr></tbody></table></div>
<p>
If this is set, a copy of the original message is returned with the new
message, subject to the maximum size set in the <span><strong class="option">return_size_limit</strong></span> global
configuration option.
</p>
<p>
<a id="id597015" class="indexterm"></a>
</p>
<div class="informaltable">
<table border="1"><colgroup><col align="left" /><col align="center" /><col align="center" /><col align="right" /></colgroup><tbody><tr><td align="left"><span><strong class="option">subject</strong></span></td><td align="center">Use: <span class="emphasis"><em>autoreply</em></span></td><td align="center">Type: <span class="emphasis"><em>string</em></span>†<span class="emphasis"><em></em></span></td><td align="right">Default: <span class="emphasis"><em>unset</em></span></td></tr></tbody></table></div>
<p>
This specifies the contents of the <span class="emphasis"><em>Subject:</em></span> header when the message is
specified by the transport. It is tempting to quote the original subject in
automatic responses. For example:
</p>
<pre class="literallayout">subject = Re: $h_subject:
</pre><p>
There is a danger in doing this, however. It may allow a third party to
subscribe your users to an opt-in mailing list, provided that the list accepts
bounce messages as subscription confirmations. Well-managed lists require a
non-bounce message to confirm a subscription, so the danger is relatively
small.
</p>
<p>
<a id="id597126" class="indexterm"></a>
</p>
<div class="informaltable">
<table border="1"><colgroup><col align="left" /><col align="center" /><col align="center" /><col align="right" /></colgroup><tbody><tr><td align="left"><span><strong class="option">text</strong></span></td><td align="center">Use: <span class="emphasis"><em>autoreply</em></span></td><td align="center">Type: <span class="emphasis"><em>string</em></span>†<span class="emphasis"><em></em></span></td><td align="right">Default: <span class="emphasis"><em>unset</em></span></td></tr></tbody></table></div>
<p>
This specifies a single string to be used as the body of the message when the
message is specified by the transport. If both <span><strong class="option">text</strong></span> and <span><strong class="option">file</strong></span> are set,
the text comes first.
</p>
<p>
<a id="id597224" class="indexterm"></a>
</p>
<div class="informaltable">
<table border="1"><colgroup><col align="left" /><col align="center" /><col align="center" /><col align="right" /></colgroup><tbody><tr><td align="left"><span><strong class="option">to</strong></span></td><td align="center">Use: <span class="emphasis"><em>autoreply</em></span></td><td align="center">Type: <span class="emphasis"><em>string</em></span>†<span class="emphasis"><em></em></span></td><td align="right">Default: <span class="emphasis"><em>unset</em></span></td></tr></tbody></table></div>
<p>
This specifies recipients of the message and the contents of the <span class="emphasis"><em>To:</em></span> header
when the message is specified by the transport.
<a id="id597313" class="indexterm"></a>
<a id="id597326" class="indexterm"></a>
</p>
</div>
</div>
<div class="navfooter">
<table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch26.html">Prev</a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="ch28.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> </td></tr></table></div>
</body></html>