In Linux, how does one implement email and fax mutual transmission?

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.