LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 09-08-2003, 05:19 AM   #1
jimieee
Member
 
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


Hi,

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

[Fax]
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 :
else
id=`id`
user=`expr "$id" : "[^( ]*(\([^)]*\)"`
fi
test -z "$user" && user=$LOGNAME
test -z "$user" && user=$USER

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

# FAX
lp3|fax:\
:lp=/dev/null:\
:sd=/usr/spool/lp3:\
:if=/etc/mgetty+sendfax/faxfilter:sh:sf:mx#0:\
:lf=/var/spool/fax/fax-log/fax-log:

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 samba.org (http://us2.samba.org/samba/ftp/cvs_c...-features.html) and what I've read in the mgetty+sendfax docs (http://www.leo.org/~doering/mgetty/).

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.

Thanks,

~James~
 
  


Reply


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 05:35 AM
need distro that contains mgetty+sendfax lothario Linux - Software 4 11-15-2004 04:02 AM
sendfax efax hylafax and xsane Pedroski Linux - Software 0 07-17-2004 04:15 AM
Conexant Drivers + mgetty+sendfax daphantom Mandriva 2 08-24-2003 01:52 PM
mgetty+sendfax+voice I'm confused by that gilkyboy Linux - Newbie 2 06-12-2001 08:18 PM


All times are GMT -5. The time now is 08:44 PM.

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