In der Datei mgetty.config werden die Parameter für den Faxempfang nur vorab eingestellt und später behandelt, dazu muß der Mail-Server laufen.
#
# mgetty configuration file
#
# this is a sample configuration file, see mgetty.info for details
#
# comment lines start with a "#", empty lines are ignored
# ----- global section -----
#
# In this section, you put the global defaults, per-port stuff is below
# Eigene Fax Nr
fax-id 49 9721 941337
# access the modem(s) with 38400 bps
speed 38400
# use these options to make the /dev/tty-device owned by "uucp.uucp"
# and mode "rw-rw-r--" (0664). *LEADING ZERO NEEDED!*
# Benutzer und Gruppenrechte setzen
# und mode "rw-rw-r--" (0664)
port-owner uucp
port-group uucp
port-mode 0664
# use these options to make incoming faxes owned by "root.uucp"
# and mode "rw-r-----" (0640). *LEADING ZERO NEEDED!*
# Damit werden eingehende Faxe dem User 'root' zugewiesen
# lesen darf nur 'root' und die gruppe 'uucp'
fax-owner root
fax-group uucp
fax-mode 0640
# Hier werden die modemspeziefischen Einstellungen gemacht
# welche Schnittstelle belegt das Modem
port ttyS1 #DOS COM 2
# set the global debug level to "4" (default from policy.h)
# debug zur Fehlersuche, wenn alles laeuft kann dies deaktiviert
# oder herab gesetzt werden
debug 8
# manche Modems brauchen dies um korrekt zu arbeiten, damit wird die
#Schnittstellenrat herruntergesetzt
switchbd 19200
# hier die Faxmodemclasse angeben (es funktionieren nur Class2 und Class 2.0
# Modems), auto sollte den Typ erkennen, ansonsten 'cls2' oder 'cls2.0'
modem-type auto
# ----- port specific section -----
#
# Here you can put things that are valid only for one line, not the others
#
# Zoom V.FX 28.8, connected to ttyS0: don't do fax, less logging
#
#port ttyS0
# debug 3
# data-only y
# some other Rockwell modem, needs "switchbd 19200" to receive faxes
# properly (otherwise it will fail with "timeout").
#
#port ttyS1
# speed 38400
# switchbd 19200
# ZyXEL 2864, connected to ttyS2: maximum debugging, grab statistics
#
#port ttyS2
# debug 8
# init-chat "" \d\d\d+++\d\d\dAT&FS2=255 OK ATN3S0=0S13.2=1 OK
# statistics-chat "" AT OK ATI2 OK
# statistics-file /var/log/statistics.ttyS2
# modem-type cls2
# direct connection of a VT100 terminal which doesn't like DTR drops
#
#port ttyS3
# direct y
# speed 19200
# toggle-dtr n
In der Datei sendfax.config werden die Parameter zum Faxversand eingestellt.
#
# sendfax configuration file
#
# this is a sample configuration file, see mgetty.info for details
#
# comment lines start with a "#", empty lines are ignored
# ----- global section -----
#
# In this section, you put the global defaults, per-port stuff is below
# tell everybody what's going on
#sendfax etwas gespraechig machen
verbose y
# ... and send everything to the log file (quite detailed)
# Meldungen ins Logfile - wenn alles funktioniert kann der debug-Level
# herabgestetz werden
debug 5
# which devices to use for outgoing faxes
# an welchem port ist das modem
fax-devices ttyS1
# unter Dos wäre das die Com2
# which fax number to transmit to the receiving station
# Faxnummer des eigenen Faxes
fax-id 49 9721 941337
# which command is used to dial out? (Could be ATD, ATDP, ATX3D0W...)
# wie Waehlen wir (bei einer Telefonanlage kann das z.b. auch 'ATX3DT0' sein
# AT - AT Komando zur Modem steuerung
# D - Dial
# T - Tonwahl ( P - Pulswahl)
# X3 - nicht auf Freizeichen warten
# , - 2 Sekunden Pause
dial-prefix ATDT
# try transmitting every page three times, continue if 3rd try fails as well
# wenn Fehler auftreten die Seite 3 mal probieren zu senden, danach trotzdem
# mit den anderen Seiten weitermachen
max-tries 3
max-tries-continue y
# ----- port specific section -----
#
# Here you can put things that are valid only for one line, not the others
#
# Modem on ttyS0 needs special initialization to do h/w handshaking
#port ttyS0
# modem-handshake AT&K4
# Modem on ttyS1 doesn't work reliably in class 2.0, use class 2 instead
#port ttyS1
# modem-type cls2
Nun muß kontrolliert werden ob das Verzeichnis /var/spool/fax existiert und dessen Rechte gesetzt sind.
Mit ls -l sollte drwxrwxrwx 2 lp lp 48 Mär 25 2002 fax erscheinen
Falls nicht werden die Rechte mit chmod 0777 fax gesetzt und mit
chown lp:lp fax eigner und Gruppe des Verzeichnisse festgelegt.
