I have email (postfix) to hylafax integration,
and it works well, but I have about 10 devices configured in hylafax.
I would like to send all the faxes (coming from emai, so from faxmail) throught only one of them
How can I accomplish this ?
Thanks in advance,
Andrea
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
____________________ HylaFAX(tm) Users Mailing List _______________________
To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
On UNIX: mail -s unsubscribe hylafax-us...@hylafax.org < /dev/null
*To learn about commercial HylaFAX(tm) support, mail sa...@ifax.com.*
I have a strange situation where at nite/weekends I need to print 2
copies of a fax, but only one during "normal" hours.
I add a problem with g4 faxes only printing garbage. So I modified my
FaxDispatch file to be the following:
####################################################################
# This is to print all faxes to a local printer.
# Number of copies to print
print=1
#Printer name
printer=laser
# In order to print JBIG fax. I copied the following routine from faxrcvd.
# If the file is a JBIG it needs to be converted *before* it's printed.
# Just adding the RECV_DATA_CONVERSION="JBIG:MMR" here converts the file
# after it's printed or printed junk for a JBIG file.
# Removed the CONVERSION variable and always run the routine.
# RECV_DATA_CONVERSION="JBIG:MMR"
# Copied from faxrcvd. Comment out the first if statement.
# Convert TIFF file format/compression from JBIG to MMR (G4) if admin
# requested for it in FaxDispatch.
# The TIFF JBIG file as saved by HylaFAX is REPLACED with a MMR (G4)
version.
# if [ "$RECV_DATA_CONVERSION" = "JBIG:MMR" ]; then
if ($TIFFINFO $FILE | grep "JBIG" > /dev/null) then
$RM -f $FILE.g4
$TIFFCP -c g4 $FILE $FILE.g4
if [ $? = 0 -a -s $FILE.g4 ]; then
# Using 'cp' and then 'rm' (instead of 'mv') preserves
# owner/mode of the original file (at least on Linux)
#cp -p $FILE $FILE.jbig.tif
cp $FILE.g4 $FILE
fi
$RM -f $FILE.g4
fi
# fi
# Now we can print 1 or 2 copies based on day and/or hour.
# If it's after 4PM or before 8AM or Sat or Sun, print 2 copies.
# Otherwise print only 1.
hour=`date +%k`
day=`date +%w`
[ ${hour} -gt 15 ] || [ ${hour} -lt 8 ] || [ ${day} -gt 5 ] || [ ${day}
-lt 1 ] && print=2
fax2ps ${FILE} | lpr -#${print} -P${printer}
--
No discipline is ever requisite to force attendance upon lectures which are
really worth the attending.
-- Adam Smith, "The Wealth of Nations"
----------------------
Mandriva Linux release 2010.2 (Official) for x86_64
2.6.38.7-desktop-1.mga x86_64
----------------------
It would depend on how you're doing your mail-to-fax procedure. If
you're using sendfax in that process, then just use the sendfax -h
option to specify the modem. If you're using faxmail then pipe faxmail
output to sendfax and use the sendfax -h option.
Thanks,
Lee.
fax unix - n n - 1 pipe user=fax flags= argv=/usr/local/bin/faxmail -t done -d -n ${user}
so I am using faxmail, not sendfax
How can I pipe it to sendfax ?
and, in principle (but not mandatory!) I should be able to choose the device according to the sender domain
(or any other property)
I am using : (HylaFAX (tm) Version 5.4.3)
---
And what about using "X-FAX-parameter" suggested ?
It wasn't too easy (to me..) to understand from man faxmail where should I put this directive...
X-FAX-h: tty251IAX
(my faxes are iaxmodem)
thanks,
Andrea
> -----Messaggio originale-----
> Da: Lee Howard [mailto:fax...@howardsilvan.com]
> Inviato: mercoledě 15 giugno 2011 07:25
> A: Andrea Lanza
> Cc: 'hylafa...@hylafax.org'
> Oggetto: Re: [hylafax-users] how to choose a modem for sending faxes
>
> Andrea Lanza wrote:
> > Hi all,
> > my question is about the possibility of choosing a specific device
> while sending faxes
> >
> > I have email (postfix) to hylafax integration,
> > and it works well, but I have about 10 devices configured in hylafax.
> > I would like to send all the faxes (coming from emai, so from
> faxmail) throught only one of them
> >
> > How can I accomplish this ?
>
> It would depend on how you're doing your mail-to-fax procedure. If
> you're using sendfax in that process, then just use the sendfax -h
> option to specify the modem. If you're using faxmail then pipe faxmail
> output to sendfax and use the sendfax -h option.
>
> Thanks,
>
> Lee.
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.