Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Hylafax Confirmations

Posted on 2004-09-30
10
Medium Priority
?
387 Views
Last Modified: 2010-04-20
Hi, is there any way to configure hylafax or linux redhat 7 itself to either directly or indirectly send the email confirmations to a printer . The confirmations wind up in the users home mail box, but the users are using win 2k pro, and they cannot check that mail box, they only use outlook express which some hardly check, but if the confirms could be directed either to a printer or another fax machine that would work for us. PLEASE HELP.
0
Comment
Question by:jerrycsakanyjr
  • 6
  • 4
10 Comments
 
LVL 6

Expert Comment

by:blkline
ID: 12190584
On the server create a file called  "/etc/procmailrc".   Ensure that it is readable:  chmod +755 /etc/procmailrc.  Place inside of it:

:0
*   ^From:.your_hylafax_email_address   (whoever is the sender on the email in question)
| /usr/bin/a2ps -P desiredPrinterQueue

Any mail sent to anyone will checked for the hylafax address and if found, the mail will be formatted and delivered.

Ensure that you have the a2ps utility  (it makes things pretty).

You can also use:

| lpr -P deskredPrinterQueue  for a less fancy output.

Barry
0
 
LVL 6

Expert Comment

by:blkline
ID: 12190601
One thing I didn't mention.  If you want this to occur only for certain users then, instead of putting the file into /etc/procmailrc, create it in the user's home directory as:   .procmailrc.


For more information see

man procmail

Barry
0
 

Author Comment

by:jerrycsakanyjr
ID: 12190702
what does the :0 do ?
Where do you configure the hylafax email address ?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 6

Expert Comment

by:blkline
ID: 12191112
This creates a procmail recipe.  :0 starts the recipe.  

Find the hylafax email address from one of the emails that it sends to your users.  That line is looking for a beginning of a line, followed by "From:." , followed by an e-mail address.  That's how it knows to process that e-mail.

| lpr -P print  

pipes the output through lpr or a2ps, your choice   (I'd do this one as it converts the text based message to post script for printing.

There are many cool things you can do with procmail.  Check:   man procmailex  for examples.

Barry
0
 

Author Comment

by:jerrycsakanyjr
ID: 12191280
we use sendmail though not procmail ...is this a problem ?
0
 
LVL 6

Expert Comment

by:blkline
ID: 12192261
sendmail is your MTA.   Procmail will be called on delivery.  You'll be fine.

BK
0
 

Author Comment

by:jerrycsakanyjr
ID: 12192285
Do i have to restart any services ...
0
 
LVL 6

Expert Comment

by:blkline
ID: 12192355
No.      Just create the file and have at it!   FWIW, I do this exact thing for some reports that we get e-mailed to us from our answering service.  The reports come in on e-mail and are printed at the appropriate printer for retrieval the next morning.
0
 

Author Comment

by:jerrycsakanyjr
ID: 12192419
Hmm.its not working, i'm getting them emails, but they are just not printing for some reason. Could that be because i have a .forward file that forward file in my home directory that forwards emails to a certain address ? I pasted the contents of the procmailrc file below see if there are any typos.


:0
* ^From:.fax@belleabstract.com
| /usr/bin/a2ps -P up-middle
0
 
LVL 6

Accepted Solution

by:
blkline earned 2000 total points
ID: 12192838
The forward would supercede the procmailrc file, I think.  Be sure that you have procmail installed on this machine.  On RH 7 it should be there, but type "which procmail" just to be sure.  Also, type "which a2ps" to ensure that you have that tool, too.  Assuming that you have all of that, you need to see what's up with procmail.

Just for fun, copy that /etc/procmailrc file to the user's home directory.  Thus, if you are delivering mail to george, copy /etc/procmailrc to /home/george/.procmailrc, then chown george.george /home/george/.procmailrc.  

Alternately, set up a test account (say testprint) and create a .procmailrc file in /home/testprint.

Make its contents:

:0  (that a zero)
| /usr/bin/a2ps -P up-middle

Then send it some mail:

mail -s "Testing" testprint
You type here
^D  

And it should print.  That will give you some assurance that the basics are there and we can work on getting the other e-mails printed.

0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month12 days, 12 hours left to enroll

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question