HOWTO for qmail and tpc remote printing


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

Here is how to make tpc remote printing work with qmail:

  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 <tty> /var/qmail/controls/rcpthosts </tty> 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

    NB. Don't forget the leading dot!

  3. Add/append the specfic DNS area codes and exchanges that you are serving to the /var/qmail/controls/virtualdomains file. (These could also be put in the rcpthosts file but I do not for efficiency reasons.)
    For example, if the cell only covers specifically:

    +1416978xxxx
    +1905944xxxx
    +14162674412

    one would add:

    .8.7.9.6.1.4.1.tpc.int
    .4.4.9.5.0.9.1.tpc.int
    .2.1.4.4.7.6.2.6.1.4.1.tpc.int

  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 our fearless leader Dr. Hewes.
    Russell P. Sutherland +1.416.978.0470 (voice)
    University of Toronto +1.416.978.6620 (fax1)
    CNS / Network Development +1.416.978.3787 (fax2)
    4 Bancroft Ave., Room 102 russell.sutherland@utoronto.ca (email)
    Toronto, Ontario
    CANADA M5S 1A1