Sample smail setup

as provided by Randy Bush (Randy@psg.com)


Date: Sun, 14 Jul 96 19:43 PDT
From: randy@psg.com (Randy Bush)
To: TPC RP list , Smail3 Users
Subject: smail 3.1.29 hacks for tpc using hylafax

disgusting hack warning. will destroy your disk drive, your boyfriend will break up with you, and will render all birth control devices ineffective for many km around.

I did not keep up the rev logs in the files i hacked. sorry.

randy

- - - - - - - - - - - - - -   c u t   h e r e   - - - - - - - - - - - - - -/usr/lib/smail/routers# required keeps it from spawning a shell for every message passing through# the local system.  for those of us with big mail loads, ...tcpfax: driver = queryprogram,        transport = tpcfax,        always;        required = 0.0.8.1.tpc.int:8.8.8.1.tpc.int:3.0.5.1.tpc.int:0.6.3.1.tpc.int:1.4.5.1.tpc.int,        cmd="/usr/local/bin/tpcfax ${lc:host}"# bet y'all forgot this onetcpidd: driver = queryprogram,        transport = tpcfax,        always;        required = iddd.tpc.int,        cmd="/usr/local/bin/tpciddd ${lc:host}"- - - - - - - - - - - - - -   c u t   h e r e   - - - - - - - - - - - - - -/usr/lib/smail/transportstpcfax: driver = pipe,        local,        max_addrs = 1,        -max_chars;        parent_env,        user = fax,        cmd = "/usr/local/bin/mailtpcfax"- - - - - - - - - - - - - -   c u t   h e r e   - - - - - - - - - - - - - -/usr/local/bin/tpcfax#!/bin/bash# tpcfax - Return true or false if we can handle the incoming fax.# $1: FAX number in tpc.int format.if [ -z "$1" ]; then  echo "Usage: $0 " >&2  exit 1  fispec=`echo $1 | sed -e 's/\.tpc\.int//'`while read line; do  line=`echo $line | sed -e 's/#.*//'`  [ -z "$line" ] && continue  echo $spec | grep -s "$line" >/dev/null  [ $? = 0 ] && exit 0  done < /usr/local/lib/valid_tpc_fax_numbersexit 1- - - - - - - - - - - - - -   c u t   h e r e   - - - - - - - - - - - - - -/usr/local/bin/tpciddd#!/bin/bash# tpciddd - Return true or false if we can handle the incoming fax.# $1: FAX number in iddd.tpc.int format.if [ -z "$1" ]; then  echo "Usage: $0 " >&2  exit 1  fiecho $1 | egrep -s '^1(360|503|541|800|888)[0-9][0-9][0-9][0-9][0-9][0-9][0-9]\.iddd\.tpc\.int$' > /dev/null[ $? = 0 ] && exit 0exit 1- - - - - - - - - - - - - -   c u t   h e r e   - - - - - - - - - - - - - -/usr/local/lib/valid_tpc_fax_numbers# The list of allowed numbers for remote-printer@*.tpc.int[0-9].[0-9].[0-9].[0-9].[0-9].[0-9].[0-9].3.0.5.1[0-9].[0-9].[0-9].[0-9].[0-9].[0-9].[0-9].1.4.5.1[0-9].[0-9].[0-9].[0-9].[0-9].[0-9].[0-9].0.6.3.1[0-9].[0-9].[0-9].[0-9].[0-9].[0-9].[0-9].8.8.8.1[0-9].[0-9].[0-9].[0-9].[0-9].[0-9].[0-9].0.0.8.1- - - - - - - - - - - - - -   c u t   h e r e   - - - - - - - - - - - - - -

 


Top Home Credits Site map Email Sponsors