User Tools

Site Tools


informatica:linux:hylafax

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
informatica:linux:hylafax [2009/10/27 18:57] – editor externo 127.0.0.1informatica:linux:hylafax [2011/01/30 15:55] 127.0.0.1
Line 2: Line 2:
  
 fax hylafax facsimil hylafax-server faxsend hfaxd fax hylafax facsimil hylafax-server faxsend hfaxd
- 
- 
- 
- 
  
 ===== Instalación y configuración inicial ===== ===== Instalación y configuración inicial =====
Line 96: Line 92:
  
 Si en el campo nº 11 (contando por la izquierda) hay un "1", llegó correctamente. Si hay un "0" no llegó, y además se reintentará 3 veces (pese a haberle pasado el parámetro -t 1, pero bueno...) Si en el campo nº 11 (contando por la izquierda) hay un "1", llegó correctamente. Si hay un "0" no llegó, y además se reintentará 3 veces (pese a haberle pasado el parámetro -t 1, pero bueno...)
 +
  
 ===== Enviar por correo fax recibido ===== ===== Enviar por correo fax recibido =====
Line 111: Line 108:
   * [[informatica:linux:fax:configuracion_inicial_hylafax | Servidor hyalafax correctamente configurado ]]   * [[informatica:linux:fax:configuracion_inicial_hylafax | Servidor hyalafax correctamente configurado ]]
   * Salida a internet de la máquina donde está instalado el servidor de faxes hylafax   * Salida a internet de la máquina donde está instalado el servidor de faxes hylafax
-  * Tener configurado un servidor de correo saliente, o bien [[informatica:linux:mail:postfix | tener configurado postfix para que use otro servidor de correo smtp]]+  * Tener configurado un servidor de correo saliente, o bien [[informatica:linux:correo:postfix | tener configurado postfix para que use otro servidor de correo smtp]]
  
 (Todo como root) (Todo como root)
  
-1. nano /var/spool/hylafax/etc/FaxDispatch+1. Editar: 
 + 
 +  nano /var/spool/hylafax/etc/FaxDispatch 
 + 
 +Y añadirle el siguiente contenido:
  
   FILETYPE=pdf;   FILETYPE=pdf;
   SENDTO=FaxMaster;   SENDTO=FaxMaster;
  
-2. nano /var/spool/hylafax/bin/uuencode_it+2. Editar: 
 + 
 +  nano /var/spool/hylafax/bin/uuencode_it 
 + 
 +Y añadirle el siguiente contenido:
  
   #!/bin/sh   #!/bin/sh
   uuencode -m $1 $1 | grep -E -v "^begin|^====$" 2>/dev/null   uuencode -m $1 $1 | grep -E -v "^begin|^====$" 2>/dev/null
  
-3. chmod +x /var/spool/hylafax/bin/uuencode_it+3. Hacer el archivo ejecutable: 
 + 
 +  chmod +x /var/spool/hylafax/bin/uuencode_it
  
 4. Crear los siguientes archivos: 4. Crear los siguientes archivos:
Line 142: Line 149:
   TEMPLATE=es   TEMPLATE=es
  
-5. cp /var/spool/hylafax/bin/faxrcvd /var/spool/hylafax/bin/faxrcvd.original+5. Renombrar archivo:
  
-6. nano /var/spool/hylafax/bin/faxrcvd +  cp /var/spool/hylafax/bin/faxrcvd /var/spool/hylafax/bin/faxrcvd.original 
 + 
 +6. Editar: 
 + 
 +  nano /var/spool/hylafax/bin/faxrcvd 
  
 Añadir estas dos lineas: Añadir estas dos lineas:
Line 220: Line 231:
  
   /etc/init.d/hylafax restart   /etc/init.d/hylafax restart
 +
  
 ===== Fijar un horario de funcionamiento ===== ===== Fijar un horario de funcionamiento =====
Line 228: Line 240:
  
 Según esta configuración, a partir de las 18h ni salen ni entran faxes.  Según esta configuración, a partir de las 18h ni salen ni entran faxes. 
 +
 +
 +
 +===== Configurar tiempos de espera máximos, reintentos... =====
 +
 +1. Si se quiere para todo el sistema editar:
 +
 +  nano /etc/hylafax/config
 +
 +Si se quiere solo par un módem, por ejemplo 'ttyS0' editar:
 +
 +  nano /etc/hylafax/config.ttyS0
 +
 +Y añadirle el siguiente código:
 +
 +<code>
 +##################### Esperas ########################
 +
 +# The delay in seconds to wait before retrying a job whose
 +# dialing attempt failed with a BUSY status result.
 +JobReqBusy: 10
 +
 +# The delay in seconds to wait before retrying a job whose
 +# dialing attempt failed with a NO ANSWER status result.
 +JobReqNoAnswer: 10
 +
 +# The delay in seconds to wait before retrying a job whose
 +# dialing attempt failed with a NO CARRIER status result.
 +JobReqNoCarrier: 10
 +
 +# requeue interval for data connection dial result 
 +JobReqDataConn: 10
 +
 +# requeue interval for carrier without +FCON dial result 
 +JobReqNoFCon: 10
 +
 +# requeue interval for ''other'' problems 
 +JobReqOther: 10
 +
 +# requeue interval after fax protocol error 
 +JobReqProto: 10
 +
 +##################### Intentos ########################
 +
 +# The number of times to redial a phone number after receiving
 +# a BUSY result code when the number has not been successfully dialed before.
 +JobRetryBusy: 0
 +
 +# The number of times to redial a phone number after the dialing
 +# attempt failed because of NO ANSWER when the number has not been successfully dialed before.
 +JobRetryNoAnswer: 0
 +
 +# The number of times to redial a phone number after the dialing
 +# attempt failed because of NO CARRIER when the number has not been successfully dialed before.
 +JobRetryNoCarrier: 0
 +
 +# number of times to retry dialing on '' NO CARRIER '' 
 +NoCarrierRetrys: 0
 +
 +# max phone calls to make to transmit a job
 +MaxDials: 6
 +
 +</code>
 +
 +2. Grabar el archivo y salir
 +
 +3. Para que los cambios tomen efecto hay que reiniciar el servidor de faxes:
 +
 +  /etc/init.d/hylafax restart
 +
 +
 +===== El comando 'sendfax' pide contrasenya =====
 +
 +*Solución*: añadir el usuario a la lista de usuarios que pueden usar hylafax:
 +
 +  sudo faxadduser usuario
 +
 +Eso solo no me funciona, asi que edito:
 +
 +  sudo vim /etc/hylafax/hosts.hfaxd
 +
 +Y le anyado lo siguiente:
 +
 +<code>
 +localhost:21::
 +^www-data@
 +^usuario@
 +^root@
 +</code>
 +
 +Por si acaso reinicio hylafax:
 +
 +  sudo /etc/init.d/hylafax restart
 +
informatica/linux/hylafax.txt · Last modified: 2015/04/13 20:19 by 127.0.0.1