Adding mgetty fax to printcap
Teresa Ray (tcray@speedchoice.com)
Sun, 9 May 1999 20:08:34 -0700
I am having a problem adding an entry to /etc/printcap for a fax printer.
I am attempting to follow the directions given in /usr/doc/samba/Faxing.txt, which
uses mgetty+sendfax. If I use the original /etc/printcap generated by my distribution
(Debian 2.0.34), everything works fine and lpstat -o returns with:
printer lp@ionsvr online. enabled since ....
When I add an entry to printcap and run lpstat -o I get:
printer lp@myname online. enabled since...
printer faxlp@myname online. enabled since...
When I then run lpc reread and then run lpstat -o I get:
printer lp@myname online. enabled since...
Without the 'faxlp' printer that should be there.
Now, if I reboot the linux box with this altered printcap file and run
lpstat -o I get:
Host 'localhost' - cannot open connection to 'lp@localhost' -
connection refused
Host 'localhost' - cannot open connection to 'faxlp@localhost' -
connection refused
And, any file I attempt to send to the fax via Samba indicates it can't find faxlp@localhost.
The printcap entry I'm attempting to add is:
faxlp|Fax Server
:lp=/dev/null
:sd=/var/spool/fax
:if=/etc/mgetty/faxfilter
:sh
:sf
:mx#0
:lf=/var/log/fax-log
And the smb.conf entry reads:
[fax]
comment = Fax Server
path = /tmp
printable = yes
public = yes
writable = no
create mode = 0700
browseable = yes
What (probably perfectly obvious) thing am I doing wrong?
Thanks for any help!
Teri
tcray@speedchoice.com