Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

E-mai to Fax Gateway

Posted on 1997-08-26
3
Medium Priority
?
321 Views
Last Modified: 2012-06-27
I need to set up an e-mail to fax gateway for a couple of the users we have locally. We do not have dial-in capability, so i have heard of Qfax and the services it can provide. But i would like the configuration to be different. What I want is to be able to basically recieve e-mail for any of our users and be able to designate whether or not they should ALSO have their e-mail faxed to them. This should also be able to be set up on a per user basis. (Some users come into the office and check it, some do not come in for weeks at a time) I hope this describes the problem, now i need a solution.
0
Comment
Question by:davegags
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 

Expert Comment

by:jkillen
ID: 1586269
To do this for all users you would have to add your faxer (Qfax) as a mail handler in your sendmail.cf file.  

To do this on a peruser basis you should probally try using a program called procmail.  It will let you run a program (Qfax) on
a mail that has been received.
0
 

Author Comment

by:davegags
ID: 1586270
Please elaborate on your answer, I know i can add efax as a mail handler. I would use it instead of the program that handles local mail delivery, but how? and how would i define a different fax number for each user? (keep in mind that i also want to append the e-mail to their mailbox as well as fax it to them)
0
 
LVL 1

Accepted Solution

by:
dirge earned 300 total points
ID: 1586271
The easiest, most cost-free way to do this is to hook up to TPC's free email-to-fax gateway:

1. Check if your area is covered by TPC's email-to-fax network (a lot of states/countries are) -- http://www.tpc.int/

2. If the user's info is

Login: johndoe
Name: John Doe
Address: Marketing Dept
Fax: +1-417-1234567

have the user create a .forward file (in his home dir) in this manner:

johndoe, remote-printer.John_Doe/Marketing_Dept@14171234567.iddd.tpc.int

i.e. Replace spaces with underscores; get rid of extraneous symbols in the fax number.

Here's a simple PERL script to do this (no error checking, etc.):

-----start of script-----
#!/usr/local/bin/perl

# FAXforward script

# Get info
$user=getpwuid($<);
print "Username/mailbox (or enter for '$user'): ";
chomp($user2=<>);
$user=$user2 if $user2 ne "";
print "Name: ";
chomp($name=<>);
print "Address: ";
chomp($address=<>);
print "Fax number (include country/area code): ";
chomp($phone=<>);

# Transform info
$name=~s/ /_/g;     # Replace spaces with underscores
$address=~s/ /_/g;
$phone=~s/[^\d]//g; # Get rid of non-digits

# Save .forward
open(FILE,">.forward");
print FILE "$user, remote_printer.$name/$address\@$phone.iddd.tpc.int\n";
close(FILE);
print "Done. .forward file updated.\n";

-----end of script-----

chmod 755 the script and copy to users' home directories. Script written as is must be run from the home dirs.

3. Once the .forward file is setup, any mail sent to johndoe@yourdomain.com (from the example) also gets faxed via TPC, with the name and "address" as the coversheet. The email message also gets stored in the proper mailbox. To quit sending faxes for a particular user, just delete or rename his/her .forward file.

You really should read the TPC FAQ (http://www-usa.tpc.int/tpcfaq.html), as it covers other options such as a MIME format which allows more complete fax covers, the terms of service, etc.

Hope this helps.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

705 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