Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-08-2003, 06:19 AM   #1
Registered: Aug 2003
Location: London, UK
Distribution: Debian and Fedora for play and RHEL + Solaris for work
Posts: 172

Rep: Reputation: 15
Question sendfax and samba interation


I'm having a little trouble using Mgetty sendfax and Samba together. I've managed to get the recieving part working to a satisfcatory standard (some little strange things going on, but I'll sort that out later), so I have a reasonable understanding of how it all works.

Where I'm struggling is the sendfax part. I've been finding the documentation available a little sparse on explaining what should be going on, but I think I can get it working if somebody could outline the process of interaction between samba and sendfax.

Here's a quick description of what I've done so far:
I've set up a printer in Samba called "fax" set up like so in smb.conf

comment = FAX (mgetty+sendfax)
path = /tmp
writable = yes
public = yes
printable = yes
create mode = 0700
browseable = yes
guest ok = yes

Another amendment I made to the globals section of smb.conf was to add these lines (some of which were already there):

printcap name = /etc/printcap
print command = /usr/bin/lpr -r -P %p %s
lpq command = /usr/bin/lpq -P %p
lprm command = /usr/bin/lprm -P %p %j

Also the instructions I've been following told me to edit /usr/bin/faxspool, but aren't exactly clear what to edit so I did this, starting line 361:

# user name (for authentification)

#New which I was instructed to add to create samba fax server
if [ "$user" = "root" -o "$user" = "fax" -o \
"$user" = "lp" -o "$user" = "daemon" -o "$user" = "bin" ]

# I think I was supposed to remove this line, but as the instructions are not clear I can't be sure
#if user=`logname 2>/dev/null`
then :
user=`expr "$id" : "[^( ]*(\([^)]*\)"`
test -z "$user" && user=$LOGNAME
test -z "$user" && user=$USER

Also I was told to add the following to /etc/printcap:


I had to add some directories and change some bits to make this make sense (redhat 9 doesn't have a /usr/spool/). I think there may be some problems with the line :sd and :if lines, but as I'm not exactly sure what they're doing (though I can guess) I don't know for sure. In all of this I've had to try and guess at filling in the gaps in the documentation, not that I'm blaming it - I've noticed some of it was written some time ago.

This is all based on instructions from ( and what I've read in the mgetty+sendfax docs (

Some info on my machine:

Modem: 3com/US Robotics Sportster 56k Voice/Faxmodem
OS: RedHat 9 with kernel 2.4.20-19.9
mgetty: 1.1.30

Any help is much appreciated.




Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
mgetty+sendfax not working in redhat linux 9 Sailaja Reddy Red Hat 0 12-21-2004 06:35 AM
need distro that contains mgetty+sendfax lothario Linux - Software 4 11-15-2004 05:02 AM
sendfax efax hylafax and xsane Pedroski Linux - Software 0 07-17-2004 05:15 AM
Conexant Drivers + mgetty+sendfax daphantom Mandriva 2 08-24-2003 02:52 PM
mgetty+sendfax+voice I'm confused by that gilkyboy Linux - Newbie 2 06-12-2001 09:18 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:27 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration