autoupdate
[postfix-master.git] / postfix-master / UUCP_README.html
blobe20df521ea6ded9d2dd24cd82e83e52cba5f60c0
1 <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
4 <html>
6 <head>
8 <title>Postfix and UUCP </title>
10 <meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
12 </head>
14 <body>
16 <h1><img src="postfix-logo.jpg" width="203" height="98" ALT="">Postfix and UUCP </h1>
18 <hr>
20 <h2><a name="uucp-tcp">Using UUCP over TCP</a></h2>
22 <p> Despite a serious lack of sex-appeal, email via UUCP over TCP
23 is a practical option for sites without permanent Internet connections,
24 and for sites without a fixed IP address. For first-hand information,
25 see the following guides: </p>
27 <ul>
29 <li> Jim Seymour's guide for using UUCP over TCP at
30 <a href="http://jimsun.LinxNet.com/jdp/uucp_over_tcp/index.html">http://jimsun.LinxNet.com/jdp/uucp_over_tcp/index.html</a>,
32 <li> Craig Sanders's guide for SSL-encrypted UUCP over TCP
33 using stunnel at <a href="http://taz.net.au/postfix/uucp/">http://taz.net.au/postfix/uucp/</a>.
35 </ul>
37 Here's a graphical description of what this document is about:
39 <blockquote>
41 <table>
43 <tr> <td> Local network <tt> &lt;---&gt; </tt> </td>
45 <td bgcolor="#f0f0ff" align="center"><a href="#lan-uucp">LAN to<br>
46 UUCP<br> Gateway</a></td>
48 <td> <tt> &lt;--- </tt> UUCP <tt> ---&gt; </tt> </td>
50 <td bgcolor="#f0f0ff" align="center"><a href="#internet-uucp">Internet<br>
51 to UUCP<br> Gateway</a></td>
53 <td> <tt> &lt;---&gt; </tt> Internet </td> </tr>
55 </table>
57 </blockquote>
59 <p> And here's the table of contents of this document: </p>
61 <ul>
63 <li><a href="#internet-uucp">Setting up a Postfix Internet to UUCP
64 gateway</a>
66 <li><a href="#lan-uucp">Setting up a Postfix LAN to UUCP
67 gateway</a>
69 </ul>
71 <h2><a name="internet-uucp">Setting up a Postfix Internet to UUCP
72 gateway</a></h2>
74 <p> Here is how to set up a machine that sits on the Internet and
75 that forwards mail to a LAN that is connected via UUCP. See
76 the <a href="#lan-uucp">LAN to UUCP gateway</a> section for
77 the other side of the story. </p>
79 <ul>
81 <li> <p> You need an <b>rmail</b> program that extracts the sender
82 address from mail that arrives via UUCP, and that feeds the mail
83 into the Postfix <b>sendmail</b> command. Most UNIX systems come
84 with an <b>rmail</b> utility. If you're in a pinch, try the one
85 bundled with the Postfix source code in the <b>auxiliary/rmail</b>
86 directory. </p>
88 <li> <p> Define a <a href="pipe.8.html">pipe(8)</a> based mail delivery transport for delivery
89 via UUCP: </p>
91 <pre>
92 /etc/postfix/<a href="master.5.html">master.cf</a>:
93 uucp unix - n n - - pipe
94 flags=F user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
95 </pre>
97 <p> This runs the <b>uux</b> command to place outgoing mail into
98 the UUCP queue after replacing $nexthop by the next-hop hostname
99 (the receiving UUCP host) and after replacing $recipient by the
100 recipients. The <a href="pipe.8.html">pipe(8)</a> delivery agent executes the <b>uux</b>
101 command without assistance from the shell, so there are no problems
102 with shell meta characters in command-line parameters. </p>
104 <li> <p> Specify that mail for <i>example.com</i>, should be
105 delivered via UUCP, to a host named <i>uucp-host</i>: </p>
107 <pre>
108 /etc/postfix/transport:
109 example.com uucp:uucp-host
110 .example.com uucp:uucp-host
111 </pre>
113 <p> See the <a href="transport.5.html">transport(5)</a> manual page for more details. </p>
115 <li> <p> Execute the command "<b>postmap /etc/postfix/transport</b>"
116 whenever you change the <b>transport</b> file. </p>
118 <li> <p> Enable <b>transport</b> table lookups: </p>
120 <pre>
121 /etc/postfix/<a href="postconf.5.html">main.cf</a>:
122 <a href="postconf.5.html#transport_maps">transport_maps</a> = hash:/etc/postfix/transport
123 </pre>
125 <p> Specify <b>dbm</b> instead of <b>hash</b> if your system uses
126 <b>dbm</b> files instead of <b>db</b> files. To find out what map
127 types Postfix supports, use the command "<b>postconf -m</b>". </p>
129 <li> <p> Add <i>example.com</i> to the list of domains that your site
130 is willing to relay mail for. </p>
132 <pre>
133 /etc/postfix/<a href="postconf.5.html">main.cf</a>:
134 <a href="postconf.5.html#relay_domains">relay_domains</a> = example.com ...<i>other <a href="ADDRESS_CLASS_README.html#relay_domain_class">relay domains</a></i>...
135 </pre>
137 <p> See the <a href="postconf.5.html#relay_domains">relay_domains</a> configuration parameter description for
138 details. </p>
140 <li> <p> Execute the command "<b>postfix reload</b>" to make the
141 changes effective. </p>
143 </ul>
145 <h2><a name="lan-uucp">Setting up a Postfix LAN to UUCP
146 gateway</a></h2>
148 <p> Here is how to relay mail from a LAN via UUCP to the
149 Internet. See the <a href="#internet-uucp">Internet to UUCP
150 gateway</a> section for the other side of the story. </p>
152 <ul>
154 <li> <p> You need an <b>rmail</b> program that extracts the sender
155 address from mail that arrives via UUCP, and that feeds the mail
156 into the Postfix <b>sendmail</b> command. Most UNIX systems come
157 with an <b>rmail</b> utility. If you're in a pinch, try the one
158 bundled with the Postfix source code in the <b>auxiliary/rmail</b>
159 directory. </p>
161 <li> <p> Specify that all remote mail must be sent via the <b>uucp</b>
162 mail transport to your UUCP gateway host, say, <i>uucp-gateway</i>: </p>
164 <pre>
165 /etc/postfix/<a href="postconf.5.html">main.cf</a>:
166 <a href="postconf.5.html#relayhost">relayhost</a> = uucp-gateway
167 <a href="postconf.5.html#default_transport">default_transport</a> = uucp
168 </pre>
170 <p> Postfix 2.0 and later also allows the following more succinct form: </p>
172 <pre>
173 /etc/postfix/<a href="postconf.5.html">main.cf</a>:
174 <a href="postconf.5.html#default_transport">default_transport</a> = uucp:uucp-gateway
175 </pre>
177 <li> <p> Define a <a href="pipe.8.html">pipe(8)</a> based message delivery transport for mail
178 delivery via UUCP: </p>
180 <pre>
181 /etc/postfix/<a href="master.5.html">master.cf</a>:
182 uucp unix - n n - - pipe
183 flags=F user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
184 </pre>
186 <p> This runs the <b>uux</b> command to place outgoing mail into
187 the UUCP queue. It substitutes the next-hop hostname (<i>uucp-gateway</i>,
188 or whatever you specified) and the recipients before executing the
189 command. The <b>uux</b> command is executed without assistance
190 from the shell, so there are no problems with shell meta characters.
191 </p>
193 <li> <p> Execute the command "<b>postfix reload</b>" to make the
194 changes effective. </p>
196 </ul>
198 </body>
200 </html>