Article Title: How to Implement email and fax exchange in Linux. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems, open source and other basic categories (1), first establish/var/spool/hylafax/etc/mailfax. sh file with the following content:
#! /Bin/sh
# Mailfax-emailFaxGateway for qmail.
#
TMPVAR =$ {SENDER //\'/}
TMPVAR =$ {TMPVAR // \$ \(/}
SENDER =$ {TMPVAR //\)/}
/Usr/bin/faxmail |/usr/bin/sendfax \
-F "$ SENDER "\
-D "$ EXT2 @ '/usr/bin/expr \" $HOST\ ": '\ (. * \) \. Fax $ ''"
(2) second, establishAliasIn/var/qmail/alias/. qmail-fax-default. The content is as follows:
|/Var/spool/hylafax/etc/mailfax. sh
Add the following lines to/var/qmail/control/virtualdomains:
. Fax: fax
OK. Now we can transfer Mail to Fax. When sending fax via mail, we need to do this:
As long as the recipient address is written in the format:
Someone@65648905.fax
You can.
In this way, Mail can be sent to Fax. This is for Qmail. Let's think about it by yourself.
Problem: there is a problem with the translation of Chinese characters. The person who knows this will tell me: riches2008 @ 163.Com, Or qq: 9613831
(2) Fax to Mail
This is simple. Hylafax supports the Fax2mail function. You only need to create the corresponding configuration file.
Create the/var/spool/hylafax/etc/users. conf and dest. conf files. The fax files to be forwarded correspond to the email account.
For example, assume that a sender with the sending number 65648905 is automatically transferred to the postmaster@smart.com mailbox as long:
Create a user. conf file:
1: 1: postmaster@ecom.cn iang: fengbao: TIFF: 0: 1: 0
Create the dest. conf file:
65648905 & 1
Note that the attributes of these two files must be read by UCP: uucp.
Then restart the hylafax service.