On Fri, 11 Feb 2000, David Wright wrote: > Quoting debuser ([EMAIL PROTECTED]): > > I've setup mgetty (from stable) to automatically print faxes when they are > > received. This works fine, but when faxes are recieved, it sends an email > > to root. Is there any way to disable the sending of a message to root > > upon receipt of a fax? > > When a fax arrives, /etc/mgetty/new_fax is executed and this sends an > email to postmaster (-> root -> you?). I'm slightly surprised you asked > this question as I would have thought that that was the file you hacked > in order to make the faxes print themselves.
You're right that I hacked /etc/mgetty/new_fax to print the incoming fax file, but that's not where the email is coming from (I don't think). I believe the default new_fax file that comes in the mgetty package actually sends the entire fax file to the postmaster, while I am just receiving a notify when a fax arrives. But, I don't even want to recieve the notify. The script I'm using is below. It came with the mgetty package, I believe it was named new_fax.lj and I just moved it to /etc/mgetty/new_fax. If you can see anywhere in this script that is sending an email, please tell me where. Thanks, Gerry ------- #!/bin/sh # # sample script to auto-print incoming faxes on a HP laserjet # (FAX_NOTIFY_PROGRAM in policy.h) # make sure $PATH includes the pbm tools! PATH=/usr/bin:/bin:/usr/local/bin HUP="$1" SENDER="$2" PAGES="$3" G3TOPBM=/usr/bin/g32pbm shift 3 P=1 while [ $P -le $PAGES ] do FAX=$1 RES=`basename $FAX | sed 's/.\(.\).*/\1/'` if [ "$RES" = "n" ] then STRETCH="-s" else STRETCH="" fi $G3TOPBM $STRETCH $FAX \ | pnmscale -xysize 2479 3508 \ | pgmtopbm -fs \ | pbmtolj -resolution 300 \ | lpr shift P=`expr $P + 1` done exit 0