Teach you how to send emails and fax in Linux

Source: Internet
Author: User
Tags email account qmail

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:

 
 
  1. #!/bin/sh  
  2. # mailfax - email to fax gateway for qmail.  
  3. #  
  4. TMPVAR=${SENDER//\`/}  
  5. TMPVAR=${TMPVAR//\$\(/}  
  6. SENDER=${TMPVAR//\)/}  
  7. /usr/bin/faxmail | /usr/bin/sendfax \  
  8. -f "$SENDER" \  
  9. -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.

  1. Describes how to create a log server in Linux and vro.
  2. Linux practical command-pv: MPS queue Viewer
  3. Compile dtAgeiaPhysX in 64-bit Linux
  4. Battle: Linux Desktop Mint 8 and Windows 7
  5. Simple Theory Linux ReiserFS system analysis features and results

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.