Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Postfix Documentation
Previous Page Home Next Page

Setting up a Postfix Internet to UUCP gateway

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 LAN to UUCP gateway section for the other side of the story.

  • 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.

  • Define a pipe(8) based mail delivery transport for delivery via UUCP:

        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 after replacing $nexthop by the next-hop hostname (the receiving UUCP host) and after replacing $recipient by the recipients. The pipe(8) delivery agent executes the uux command without assistance from the shell, so there are no problems with shell meta characters in command-line parameters.

  • Specify that mail for, should be delivered via UUCP, to a host named uucp-host:

    /etc/postfix/transport:     uucp:uucp-host    uucp:uucp-host

    See the transport(5) manual page for more details.

  • Execute the command "postmap /etc/postfix/transport" whenever you change the transport file.

  • Enable transport table lookups:

    transport_maps = hash:/etc/postfix/transport

    Specify dbm instead of hash if your system uses dbm files instead of db files. To find out what map types Postfix supports, use the command "postconf -m".

  • Add to the list of domains that your site is willing to relay mail for.

    relay_domains = ...other 
    relay domains...

    See the relay_domains configuration parameter description for details.

  • Execute the command "postfix reload" to make the changes effective.

Postfix Documentation
Previous Page Home Next Page