<h1><img src="postfix-logo.jpg" width="203" height="98" ALT="">Postfix and UUCP </h1>
<hr>
<h2><a name="uucp-tcp">Using UUCP over TCP</a></h2>
<p> Despite a serious lack of sex-appeal, email via UUCP over TCP
is a practical option for sites without permanent Internet connections,
and for sites without a fixed IP address. For first-hand information,
see the following guides: </p>
<li> Craig Sanders's guide for SSL-encrypted UUCP over TCP
using stunnel at <a href="http://taz.net.au/postfix/uucp/">http://taz.net.au/postfix/uucp/</a>.
</ul>
Here's a graphical description of what this document is about:
<td bgcolor="#f0f0ff" align="center"><a href="#internet-uucp">Internet<br>
to UUCP<br> Gateway</a></td>
<td> <tt> <---> </tt> Internet </td> </tr>
</table>
</blockquote>
<p> And here's the table of contents of this document: </p>
<ul>
<li><a href="#internet-uucp">Setting up a Postfix Internet to UUCP
gateway</a>
<li><a href="#lan-uucp">Setting up a Postfix LAN to UUCP
gateway</a>
</ul>
<h2><a name="internet-uucp">Setting up a Postfix Internet to UUCP
gateway</a></h2>
<p> Here is how to set up a machine that sits on the Internet and
that forwards mail to a LAN that is connected via UUCP. See
the <a href="#lan-uucp">LAN to UUCP gateway</a> section for
the other side of the story. </p>
<ul>
<li> <p> You need an <b>rmail</b> program that extracts the sender address from mail that arrives via UUCP, and that feeds the mail
into the Postfix <b>sendmail</b> command. Most UNIX systems come
with an <b>rmail</b> utility. If you're in a pinch, try the one
bundled with the Postfix sourcecode in the <b>auxiliary/rmail</b>
directory. </p>
<li> <p> Define a <a href="pipe.8.html">pipe(8)</a> based mail delivery transport for delivery
via UUCP: </p>
<p> This runs the <b>uux</b> command to place outgoing mail into
the UUCP queue after replacing $nexthop by the next-hop hostname
(the receiving UUCP host) and after replacing $recipient by the
recipients. The <a href="pipe.8.html">pipe(8)</a> delivery agent executes the <b>uux</b> command without assistance from the shell, so there are no problems
with shell meta characters in command-line parameters. </p>
<p> Instead of <a href="lmdb_table.5.html">lmdb</a>:, some systems use <a href="CDB_README.html">cdb</a>:, <a href="DATABASE_README.html#types">hash</a>:, or <a href="DATABASE_README.html#types">dbm</a>:. </p>
<p> See the <a href="transport.5.html">transport(5)</a> manual page for more details. </p>
<li> <p> Execute the command"<b>postmap /etc/postfix/transport</b>"
whenever you change the <b>transport</b> file, to (re)build a
default-type indexed file. Execute "<b>postmap
<i>type</i>:/etc/postfix/transport</b>" to specify an explicit type.
</p>
<p> The default indexed file type is configured with the
<a href="postconf.5.html#default_database_type">default_database_type</a> parameter. To list available explicit types,
execute the command"<b>postconf -m</b>".</p>
<li> <p> Add <i>example.com</i> to the list of domains that your site
is willing to relay mail for. </p>
<p> See the <a href="postconf.5.html#relay_domains">relay_domains</a> configuration parameter description for details. </p>
<li> <p> Execute the command"<b>postfix reload</b>" to make the
changes effective. </p>
</ul>
<h2><a name="lan-uucp">Setting up a Postfix LAN to UUCP
gateway</a></h2>
<p> Here is how to relay mail from a LAN via UUCP to the
Internet. See the <a href="#internet-uucp">Internet to UUCP
gateway</a> section for the other side of the story. </p>
<ul>
<li> <p> You need an <b>rmail</b> program that extracts the sender address from mail that arrives via UUCP, and that feeds the mail
into the Postfix <b>sendmail</b> command. Most UNIX systems come
with an <b>rmail</b> utility. If you're in a pinch, try the one
bundled with the Postfix sourcecode in the <b>auxiliary/rmail</b>
directory. </p>
<li> <p> Specify that all remote mail must be sent via the <b>uucp</b>
mail transport to your UUCP gateway host, say, <i>uucp-gateway</i>: </p>
<p> This runs the <b>uux</b> command to place outgoing mail into
the UUCP queue. It substitutes the next-hop hostname (<i>uucp-gateway</i>,
or whatever you specified) and the recipients before executing the command. The <b>uux</b> command is executed without assistance
from the shell, so there are no problems with shell meta characters.
</p>
<li> <p> Execute the command"<b>postfix reload</b>" to make the
changes effective. </p>
</ul>
</body>
</html>
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.14 Sekunden
(vorverarbeitet am 2026-08-09)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.