Hylafax empfangene Faxe als mail weiterleiten
Marcus Schopen
lists at localguru.de
Sun Jun 5 01:15:30 CEST 2005
Hei,
Frank Baurichter wrote:
> Nun wäre es natürlich schön, wenn ich das auch mitkriegen würde. Derzeit
> scheint niemand benachrichtigt zu werden. Am liebsten wäre es mir auch,
> wenn Hylafax die empfangenen Faxe gleich in PDF's umwandelt und per Mail
> an einen der Benutzer hier weiterleitet.
Bsp. für /etc/hylafax/FaxDispatch (2 Modems):
#!/bin/sh
case "$DEVICE" in
*ttyS0) export SENDTO=me at localhost;;
*ttyS1) export SENDTO=jan at localhost;;
*) SENDTO=ml at localhost;;
esac
Für die Umwandlung ins PDF /var/spool/hylafax/bin/faxrcvd auf pdf
anpassen (FILETYPE).
In die typerules kann man auch mal schauen.
# HylaFAX now has server-side PDF conversion, so no need for pdf2ps.
# If you have trouble or if you prefer to use pdf2ps, comment this
# next line and uncomment the second.
0 string %PDF ps
#0 string %PDF ps pdf2ps %i %o
Auf unstable und testing (Debian) muss in /etc/hylafax/setup.cache
ENCODING='base64' händisch gesetzt werden, da sonst entsprechende Wert
in /var/spool/hylafax/bin/faxrcvd leer ist (Zeile 230) und PDFs als
Attachment nicht richtig encodet werden. Nach der Anpassung ein Neustart
des hylafax Server durchführen, damit die setup.cache nach
/var/spool/hylafax/etc/ wegkopiert wird. Kann sein, dass das
mittlerweile auch schon gefixt ist.
Ach ja, das Paket metamail muss installiert sein, sonst klappt die PDF
Konvertierung unter Debian nicht.
hylafax Version: 1:4.1.1-3.1 auf Debian woody.
N8,
M.
More information about the Linux
mailing list