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
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

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

  




 

 

Postfix Documentation
Previous Page Home Next Page

Setting up a Postfix LAN to UUCP gateway

Here is how to relay mail from a LAN via UUCP to the Internet. See the Internet 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.

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

Postfix Documentation
Previous Page Home Next Page