Board logo

標題: [操作疑難] hylafax 怎樣轉發email [打印本頁]

作者: xiao    時間: 2017-11-4 00:39     標題: hylafax 怎樣轉發email

Raspberry pi 3, sendmail, hylafax-server 都裝好, 收到傳真OK的, 但是就是無法送EMAIL.
/etc/hylafax/FaxDispatch, 參考http://www.aboutdebian.com/fax.htm, 按照說明書寫的
可是只收到報錯的 EMAIL, 網域錯誤,系統找不到raspberrypi這個網域, 無法傳送郵件到FaxMaster@raspberrypi
請教是甚麼設定沒做好或是怎樣解決


/etc/hylafax/FaxDispatch 內容如下,
  1. ## FaxDispatch file - routes all inbound faxes to xiao@gmail.com as TIFF files
  2. ##
  3. ## Consult the faxrcvd(8C) man page for more information
  4. ##

  5. SENDTO=xiao@gmail.com;
  6. FROMADDR=xiao@gmail.com;
  7. FILETYPE=tiff


  8. case "$DEVICE" in
  9. ttyACM0)  SENDTO=xiao@gmail.com;
  10. esac

  11. ## To make each received fax saved outside hylafax
  12. ## ( Don't forget to chown uucp /some/place )

  13. /bin/cp $FILE /some/place

  14. ## To avoid bothering the faxmaster for each received fax

  15. NOTIFY_FAXMASTER=errors
複製代碼

作者: chancho    時間: 2017-11-4 10:43

do you want to re-send your inbound fax to other email address. you need a program "somehow" to send email and fax as attachment. so i guess you should start to look for "somehow". php may be a good choice.
作者: theluxman    時間: 2017-11-4 14:06

本帖最後由 theluxman 於 2017-11-4 14:07 編輯

better to switch to postfix mail server and setup the mail relay to send mail to the correct mail server.

you can use "mailx" that support binary attachment/pdf in the mail via command line, once you receive the fax,  call the shell script to send out the fax via mailx . I have that done a while back ago, but now the printer can do it  and the hylafax is retried.
作者: xiao    時間: 2017-11-4 18:47

better to switch to postfix mail server and setup the mail relay to send mail to the correct mail se ...
theluxman 發表於 2017-11-4 14:06



    請問有沒有劇本可參考
謝謝
作者: xiao    時間: 2017-11-4 18:47

do you want to re-send your inbound fax to other email address. you need a program "somehow" to send ...
chancho 發表於 2017-11-4 10:43



    這個太複雜了, 還不會
作者: theluxman    時間: 2017-11-4 22:14

回覆 3# theluxman


1. Do you have a working mail server on the same network as your pi ?
2.if not , you can setup a gmail account and use SASL in postfix  to send email out to your gmail account.

you need to check in the fax receive log to get the fax under the receive queue. E.g "recvq/fax00008.tif (ftp://faxserver.mydomain.com:4559/recvq/fax00008.tif):"

once you have the file, use mailx -s "Fax received `date`" -a recvq/fax00008.tif TO_EMAIL </dev/null 2>/dev/null
作者: xiao    時間: 2017-11-9 12:19

回覆  theluxman


1. Do you have a working mail server on the same network as your pi ?
2.if not ,  ...
theluxman 發表於 2017-11-4 22:14



    謝謝提點, 稍後有時間試驗一下這個做法





歡迎光臨 電腦領域 HKEPC Hardware (https://h0.hkepc.com/forum/) Powered by Discuz! 7.2