HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [hylafax-users] Question on modem groups



> > 
> > Ok, lets change this so we have a slightly different setup: 
> > 
> > ModemGroup: "any: ttyS[1,2,3,4,5]"
> > ModemGroup: "ttyS1: ttyS2"
> > ModemGroup: "special: ttyS[4,5]"
> > 
> > Given that, if I do 'sendfax -h ttyS1 ...', is that going to print using
> > the modem ttyS1, or ttyS2, since it's in the group ttyS1?
> 
> It will go out of ttyS2.
> 
> > If I want to send a fax using any modem in the special group, is the
> > correct syntax just the -h option on sendfax?
> 
> Yup.
> 
> The -h option specifies the "device" to use.
> 
> faxq, when picking a set of devices to send on uses the following basic
> algorithm:
> 
> 	IF EXISTS modemgroup FOR "device"
> 	THEN
> 	   pick devices that match the regex from that modemgroup
> 	ELSE
> 	   pick device that matches "device"
> 	ENDIF
> 
> So, by specifying ModemGroup: "ttyS1: ttyS2", you are making a
> modemgroup for the "device" ttyS1.  This means that if a job is
> submitted for "device" ttyS1, it will match the modemgroup ttyS1, and
> use the devices that allows.
> 
> a.


ok, so I tried what was discussed: 

        [nick@fax etc]$ grep ModemGroup config
        ModemGroup:             modems
        ModemGroup:             qualifax: ttyM1f
        
        I also tried this as 
        ModemGroup:             "qualifax: ttyM1f" w/ the same results.
        
        [nick@fax etc]$ sendfax -h qualifax -d 1.800.564.1362 ~/faxtest.pdf
        qualifax: Unknown host
        
        sendfax -h qualifax@fax -d 1.800.564.1362 ~/faxtest.pdf
        Password:
        Login failed: 530 Login incorrect.
        
So here are a couple of questions: 

I did a search on the hylafax site for passwords, and the only thing
that came up was setting the password on a class 2 modem. I'm being
prompted for a password when I specify the hostname. How do I disable
this? 

Is my syntax wrong? 

according to the sendfax manpage:

	-h [modem@]host[:port]
                   Force  the  jobs to be processed on a specific
                   host  and,  optionally,  using  a   particular
                   modem.  The host may be either a symbolic name
                   or a network address.  If no -h option is sup-
                   plied,  sendfax uses the FAXSERVER environment
                   variable to identify  the  HylaFAX  server  to
                   which  the  jobs  should  be  directed.  If no
                   server is specified then sendfax  attempts  to
                   contact  a  server  on  the local host.  If no
                   modem is specified, the job will be  submitted
                   to any available modem.

	[nick@fax etc]$ echo $FAXSERVER

Do I need to set this to localhost? it says that if none is specified,
that is what it will default to...

Any thoughts would be appreciated.
-Nick
-- 
+---------------------------------------------------------------+
| Nicholas Bernstein            | nick@xxxxxxxxxxxx             |
| UNIX Systems Administrator    | http://www.docmagic.com       |
| Document Systems Inc.         |  				|
| gpg: F706 8C4E 78FA DDDD 53A0 019F D983 FE28 2002 D1F3	|
+---------------------------------------------------------------+

Attachment: signature.asc
Description: This is a digitally signed message part




Project hosted by iFAX Solutions