Microsoft has been releasing Windows 7 for some time and is very popular. Some people say that Linux is not as good as Windows. In fact, the war between the two has been going on for a long time, and no one has said more than anyone else. This article describes how to implement email and fax mutual transmission in the Linux operating system. I hope this article will help you implement email and fax mutual transmission in the Linux operating system.
(1) Mail to Fax
(1) first create the/var/spool/hylafax/etc/mailfax. sh file with the following content:
- #!/bin/sh
- # mailfax - email to fax gateway for qmail.
- #
- TMPVAR=${SENDER//\`/}
- TMPVAR=${TMPVAR//\$\(/}
- SENDER=${TMPVAR//\)/}
- /usr/bin/faxmail | /usr/bin/sendfax \
- -f "$SENDER" \
- -d "$EXT2@`/usr/bin/expr \"$HOST\" : '\(.*\)\.fax$'`"
(2) create an alias dot file at/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.
(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. In Linux, email and fax are sent to and from each other.
- Describes how to create a log server in Linux and vro.
- Linux practical command-pv: MPS queue Viewer
- Compile dtAgeiaPhysX in 64-bit Linux
- Battle: Linux Desktop Mint 8 and Windows 7
- Simple Theory Linux ReiserFS system analysis features and results