• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

hylafax ankommende faxe automatisch via mail versenden!

Hallo wie die überschift schon sagt, suche ich eine lösung welche emails automatisch an eine email adresse weiterleitet.


Zum weiteren hätte ich gerne dass ich ich mehrere durchwahlen habe und diese automatisch ihre emails via mail zugesand bekommen.

Z.B: Hauptdruchwahl 130 <- Faxserver
130 119 <- Mitarbeiter 1 mitarbeiter1@adresse.de

Wie kann ich so etwas ermöglichen?

Senden und Empfangen der FAXE funktioniert jetzt ohne Probleme
 

coogor

Hacker
Die Beispiel auf der man-Page sind nicht so richtig hilfreiche, evtl hilft Dir das weiter:
Code:
If you have faxgetty properly configured to understand the callid, you
should see something like:

        Mar 14 12:35:37 espresso FaxGetty[8744]: STATE CHANGE: RUNNING -> LISTENING
        Mar 14 12:35:37 espresso FaxGetty[8744]: --> [4:RING]
        Mar 14 12:35:37 espresso FaxGetty[8744]: --> [5:CID: ]
        Mar 14 12:35:37 espresso FaxGetty[8744]: --> [9:DAD: 8236]
        Mar 14 12:35:37 espresso FaxGetty[8744]: --> [4:RING]
        Mar 14 12:35:37 espresso FaxGetty[8744]: ANSWER: Call ID 1 "8236"
        Mar 14 12:35:37 espresso FaxGetty[8744]: ANSWER: Call ID 2 ""
        Mar 14 12:35:37 espresso FaxGetty[8744]: STATE CHANGE: LISTENING -> ANSWERING

If you don't see the 'ANSWER: Call ID ....' lines, then you have to
configure faxgetty to use them.  On my device, it's:
        CallIDPattern:         "DAD: "
        CallIDPattern:         "CID: "
so the DAD: match is assigned the 1st CallID and CID: match is assigned to
the 2nd CallID.  But it will be different for different devices.  The
man page will help you figure out what they need to be for *your*
modem.

In this case, my faxgetty is configured.  So in  my FaxDispatch, I just
use $CALLID1 and $CALLID2 to refer to them.

case "$CALLID1" in
        123) SENDTO="joe@example.com";;
        234) SENDTO="jack@example.com";;
        *)   SENDTO="catchall@example.com";;
esac
 
Oben