Last Updated 31 March 1999

Configuring qmail for tpc remote printing

Introduction

Qmail is a modern MTA and a natural replacement for sendmail. It's small, fast, efficient secure and best of all... comprehensible! I highly recommended it.

TPC is a free, community based, email to fax gateway service that covers most of the world

This document demonstrates how to set up qmail in order to support the tpc remote printer fax gateway. It assumes that you already have a faxserver up and running.

Step by step instructions

  1. Get qmail up and running. There are quite a few differences as compared to sendmail. Deal with these first.
  2. Add/append the entries to the /var/qmail/controls/rcpthosts file that reflect the parts of the tpc DNS space that your zone is covering. For example my cell covers parts of +1416 and +1905. I have added:
    	.6.1.4.1.tpc.int
    	.5.0.9.1.tpc.int
    	.iddd.tpc.int
    

    N.B. Don't forget the leading dot!

  3. Add/append the specfic DNS encoded area codes and exchanges that you are serving to the /var/qmail/controls/virtualdomains file.
    For example, if the cell only covers specifically:
    	+1416978xxxx
    	+1905944xxxx
    	+14162674412
    

    one would add:

    	.8.7.9.6.1.4.1.tpc.int:alias-tpc
    	.4.4.9.5.0.9.1.tpc.int:alias-tpc
    	.2.1.4.4.7.6.2.6.1.4.1.tpc.int:alias-tpc
    
  4. Create the file /var/qmail/alias/.qmail-tpc-default with the following content:
    	# tpc forwarding...
    	|/var/spool/tpc/tpcmailer.pl "$EXT2@$HOST" $SENDER
    

    Note that your tpc directory might be different than in the above example. The important issue is to get the correct path to the tpcmailer.pl perl script. The double quotes around the first argument are also superfluous.

  5. Blast off!!! If any others have experience in configuring tpc and qmail please forward them to me or to the TPC administrator Arlington Hewes


     

    Written by Russell Sutherland