Section 2 : Client Applications

Q227: Where to find mailfax.sh for sendmail?


? Got something to say about this answer? Hit the question mark to invoke the mailer and send your comments to the HylaFAQ maintainers.

Q.
Where to find mailfax.sh for sendmail?

A.
Date: Tue, 29 Oct 1996 13:18:21 +0000
From: Phil Watkinson <pkw@elgro.co.uk>
Subject: Re: WHere to find mailfax.sh.sendmail

At 22:43 28/10/96 -0300, Xavier Merino wrote:
>
>I read in online documentation about setting sendmail to work with
>hylafax.
>
>I do not know where to find it, can someone help me with this,
>

Well, I found that the mailfax.sh.sendmail is now out of date.

This is my mailfax script ( all of one day old ) which is working 
under test conditions on a Linux 1.2.13 box with Sendmail 8.8.0 :

----------------------------cut here--------------------------------
#! /bin/sh
#
#  mailfax - email to fax gateway for sendmail
#
#  This file should be installed as /usr/local/lib/fax/mailfax
#  (the default path in the sendmail.cf file).
#
#  Edit your sendmail configuration to include MAILER(fax). This adds:
# 
#  Mfax,	P=/usr/local/lib/fax/mailfax, F=DFMhu, S=14, R=24,
#               M=100000, T=X-Phone/X-FAX/X-Unix,
#  		A=mailfax $u $h $f
# 
#  and the following address rewriting rule to rule set 0:
# 
#  # resolve fake top level domains by forwarding to other hosts
#  R$+< @ $+ .FAX. >		$#fax $@ $2 $: $1	user@host.FAX
#
#  Things to note re faxmail options
#
#  -v       verbose output ( faxlog needs mode 666 permissions )
#  -n 	    no cover page
#  -s a4    set a4 page size
#  -d	    direct delivery in the form: test@123456.FAX pkw@elgro.co.uk
#
#
/usr/local/bin/faxmail -v -n -s a4 -d "$1@$2" "$3" 2>/var/log/faxlog

---------------------------cut here--------------------------------

As you see, for Sendmail versions 8.7 and 8.8 all you have to do is add
a MAILER(fax) line to the .mc configuration file and the macro will do
the rest. I'm not sure if this is how version 8.6 behaves.

All the mailfax script does is to call the Hylafax program 'faxmail'.

Please note that the $u (user) argument passed to mailfax is important;
without it sendFAX will hang.

Good Luck!

Cheers,
Phil Watkinson,
Boston, UK.


 Back to FAQ Index FAQ Index  Next question in List Q228: How to do Numeric-only paging?
faq@hylafax.org. Last updated $Date: 1999/12/29 23:24:06 $.