Exim and UUCP
=============

Configuring exim for use with UUCP is a bit of manual work, since exim wasn't written with UUCP in mind.

This guide assumes that you use Internet-addressing --- i.e. both sides use Taylor-UUCP --- or 1-level deep Bang-paths (the Bang-Path level has to be finite to make address-rewriting feasible). What you have to do is the following:

 1. add a new transports definition

 2. add a new router

Transports
----------

The transports does the work: it passes the mail to UUCP. This is the place to do bang-path-conversions and similar things (when using Taylor-UUCP, as my provider does, the Internet-address is simply passed to rmail).

     uucp_pipe:
       driver = pipe;
       command = "uux - -a$sender_address -r $host\!rmail ($local_part@$domain)",
       pipe_as_creator,
       restrict_to_path,
       path = "/usr/bin:/bin",
       return_output

If you wanted to use bang-paths, you'd use something as (untested):

     ...
       command = "uux - -a$sender_address -r $host\!rmail ($domain\!$local_part)",
     ...

Router
------

The router tells exim that a UUCP-route is available:

     uucp:
       driver = domainlist,
       transport = uucp_pipe;
       route_list = "* neighbor byname"

NEIGHBOR is the upstream UUCP-neighbor; all outgoing traffic is routed over there (leaf node configuration).

Other
-----

In order to omit the Sender: uucp line, add UUCP to the trusted users:

     trusted_users  = mail:uucp
     trusted_groups = uucp