Benutzer-Werkzeuge

Webseiten-Werkzeuge


freebsd:mgetty_sendfax

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

freebsd:mgetty_sendfax [2013/12/16 14:38] (aktuell)
idefix angelegt
Zeile 1: Zeile 1:
 +====== ​ Mgetty+Sendfax ​ ======
 +=====  Fax to Email Gateway ​ =====
 +Copy the files in {{Faxtools.tar.bz2}} to /​usr/​local/​lib/​mgetty+sendfax.
 +
 +Edit /​usr/​local/​etc/​mgetty+sendfax/​mgetty.config:​
 +<​code>​
 +port cuad1
 +debug 6
 +fax-id +49 8141 xxxxxxxx
 +speed 38400
 +direct NO
 +blocking NO
 +port-owner uucp
 +port-group uucp
 +port-mode 0660
 +toggle-dtr YES
 +toggle-dtr-waittime 500
 +data-only NO
 +fax-only NO
 +modem-type auto
 +init-chat ""​ ATS0=0Q0&​D3&​C1 OK ATM0 OK
 +modem-check-time 3600
 +rings 1
 +answer-chat ""​ ATA CONNECT \c \r
 +answer-chat-timeout 80
 +autobauding NO
 +ringback NO
 +ringback-time 30
 +ignore-carrier false
 +issue-file /etc/issue
 +prompt-waittime 500
 +login-prompt @!login:
 +login-time 240
 +diskspace 4096
 +fax-owner uucp
 +fax-group dialer
 +fax-mode 0660
 +</​code>​
 +Then configure the file /​usr/​local/​lib/​mgetty+sendfax/​new_fax with your emailaddress.
 +
 +=====  Email to Fax Gateway ​ =====
 +Then configure the file /​usr/​local/​etc/​mgetty+sendfax/​faxheader with the wished header for outgoing faxes.
 +
 +Edit /​usr/​local/​etc/​mgetty+sendfax/​faxrunq.config:​
 +<​code>​
 +success-send-mail n
 +failure-send-mail n
 +success-call-program /​usr/​local/​lib/​mgetty+sendfax/​fax_done
 +failure-call-program /​usr/​local/​lib/​mgetty+sendfax/​fax_done
 +delete-sent-jobs y
 +</​code>​
 +
 +Configure for emailaddress in the file /​usr/​local/​lib/​mgetty+sendfax/​fax_done.
 +
 +Edit /​usr/​local/​etc/​mgetty+sendfaxsendfax.config:​
 +<​code>​
 +fax-devices cuad1
 +
 +port cuad1
 +fax-id +49 8141 xxxxx
 +modem-type auto
 +debug 4
 +modem-handshake AT&H3
 +max-tries 3
 +max-tries-continue no
 +speed 38400
 +dial-prefix ATD
 +poll-dir ./
 +normal-res NO
 +verbose NO
 +</​code>​
 +
 +Add the following into your exim-config /​usr/​local/​etc/​exim/​configure:​
 +<​code>​
 +## MAIN ##
 +domainlist fax = <; fax
 +
 +## Routers ##
 +fax:
 +   ​driver = manualroute
 +   ​transport = fax
 +   ​route_list = fax
 +
 +## transports ##
 +fax:
 +  driver = pipe
 +  user = idefix
 +  command ="/​usr/​local/​bin/​mail2g3.pl ${local_part}"​
 +  home_directory = /​usr/​local/​bin
 +</​code>​
 +
 +The script can be found {{Mail2g3.txt}},​ rename it to mail2g3.pl and copy it into /​usr/​local/​bin.
 +Restart exim with:
 +<​code>​
 +/​usr/​local/​etc/​rc.d/​exim restart
 +</​code>​
 +
 +To send the faxes every day put the following into your /​etc/​crontab:​
 +<​code>​
 +5   ​20 ​ *   ​* ​  ​* ​  ​root ​   faxrunq
 +</​code>​
 +
 +Now send mail to faxnumber@fax.
  
freebsd/mgetty_sendfax.txt · Zuletzt geändert: 2013/12/16 14:38 von idefix