-
You need an rmail program that extracts the sender
address from mail that arrives via UUCP, and that feeds the mail
into the Postfix sendmail command. Most UNIX systems come
with an rmail utility. If you're in a pinch, try the one
bundled with the Postfix source code in the auxiliary/rmail
directory.
-
Specify that all remote mail must be sent via the uucp
mail transport to your UUCP gateway host, say, uucp-gateway:
/etc/postfix/main.cf:
relayhost = uucp-gateway
default_transport = uucp
Postfix 2.0 and later also allows the following more succinct form:
/etc/postfix/main.cf:
default_transport = uucp:uucp-gateway
-
Define a
pipe(8) based message delivery transport for mail
delivery via UUCP:
/etc/postfix/master.cf:
uucp unix - n n - - pipe
flags=F user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
This runs the uux command to place outgoing mail into
the UUCP queue. It substitutes the next-hop hostname (uucp-gateway,
or whatever you specified) and the recipients before executing the
command. The uux command is executed without assistance
from the shell, so there are no problems with shell meta characters.
-
Execute the command "postfix reload" to make the
changes effective.