Linux Network Administrator Manual (13)

Source: Internet
Author: User
Article title: Linux Network Administrator Manual (13 ). Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Chapter 4 email
Since the first network was designed, one of the most significant uses of the network connection is e-mail (eletronic mail ). It
It starts from copying a file from one machine to another machine's simple service and adds the copied file
In the recipient's mailbox file. Basically, this is still all the work done by email, despite the increasing number
Network and its complex routing requirements and its increasing message load have prompted more elaborate solutions.
  
Various mail exchange standards have been designed. Websites on the Internet always adhere to the design in RFC 822 and are described as follows:
Some RFC extensions for machine-independent transmission of special character methods, and so on. More thoughts on "Multimedia Mail"
It has also been made, which involves graphics and sound contained in the mail message. Another standard, X.400, has been CCITT
Definition.
Many mail transfer programs in the UN * X system are implemented. Among them, the most famous is sendmail of Berkeley University, which is
It is used on many platforms. Eric Allman was originally created and is now active again in the sendmail Group.
There are two Linux porting versions of the sendmail-5.56c, one of which will be discussed in Chapter 15th. Sen currently under development
The dmail version is 8.6.5.
The most common messaging agent in Linux is a smail-3.1.28 written by Curt Landon Noll and Ronald S. Karr
And copyright. This program is included in most Linux releases. Next, we will refer to it as smail for short, although
It also has other completely different versions, but we will not discuss them here.
Compared with sendmail, smail is very simple. When a small site does not have complex routing requirements to process emails
The performance of the two is very similar. However, for large websites, sendmail is always superior because of its configuration.
The solution is flexible.
Smail and sendmail support a family of configuration files, both of which must be customized ). In addition to the email sub-system
In addition to the required information (such as the local host name), many parameters need to be adjusted. Main Sendmail
It is difficult to understand the configuration file at the beginning. It looks like your cat has played the keyboard with the shift key. S
The mail configuration file is very structured and easier to understand than sendmail, but it does not give users a strong adjustment of mail.
Box performance capability. However, for small UCP or Internet sites, the configuration of these sites is basically
Same.
In this chapter, we will discuss what emails are and what issues you need as an administrator. Chapter 2 and Chapter 2
Guidance will be provided for setting up smail and sendmail for the first time. The information provided here is sufficient for a small site to work.
Come on, but there are many other options you can spend a lot of time on your computer to configure these wonderful features
.
At the end of this chapter, we will briefly discuss the setup of elm, which is a lot
Email user agent.
For more information about emails on Linux, see Vince Skahan's Electronic Mail HOWTO.
, Which is regularly delivered to comp. OS. linux. announce. The source program release versions of Elm, smail, and sendmail are the same.
This sample also contains a wide range of documents to answer most of the questions you encounter when setting them. If you are looking
Many RFC related general information about emails. They are listed in the reference books after this book.
13.1 What is an email message?
A Mail message is a message body, which is the text written by the sender, and specifies the recipient's specific data and transmission media.
And so on.
These management data can be divided into two types; the first type is data related to a specific transmission medium, just like the sender and recipient
. Therefore, they are called envelope. In message transmission channels, they may be converted.
The second type is any data required to process mail messages. they are not for any transmission mechanism, such as the message topic.
Line (subject line), a list of all recipients, and the date when the message is sent. In many networks
It has become a standard for adding mail messages to form mail headers ). It corresponds to the mail body (mail
An empty row is separated. [1]
Many mail transmission software in the UN * X world uses the header [title] format specified in RFC 822. Its initial purpose is
The use of ARPANET specifies a standard, but since it is designed to be independent from any environment, it is easily
Other networks, including many UUCP-based networks.
However, RFC 822 is only the cornerstone of the greatest public sector. More standards have been conceived to cope with increasing demands.
For example, data encryption, support for international character sets, and multimedia mail extension (MIME ).
In all these standards, the title [header] consists of several lines and is separated by line breaks. Each row is a word starting from the first column.
Segment name and fields separated by a colon and a space. The format and semantics of each field are based on the field name.
It varies. If the next line starts with a TAB, it indicates that the line of the title field is resumed. The order of each field is
Random.
A typical Mail title looks like this:
From brewhq.swb.de! Ora.com! Andyo Wed Apr 13 00:17:03 1994
Return-Path:
Received: from brewhq.swb.de by monad.swb.de with uucp
(Smail3.1.28.1 #6) id m0pqqlT-00023aB; Wed, 13 Apr 94 MET DST
Received: from ora.com (ruby.ora.com) by brewhq.swb.de with smtp
(Smail3.1.28.1 #28.6) id; Tue, 12 Apr 94 MEST
Received: by ruby.ora.com (8.6.8/8.6.4) id raa000038; Tue, 12 Arp 94? 0400
  
Date: Tue, 12 Apr 1994 15:56:49? 0400
Message-Id: 199404121956. PAA07787 @ ruby
From: The andyo@ora.com (Andy Oram)
To: okir@monad.swb.de
Subject: Re: Your RPC section
Generally, all the required header fields are generated on the e-mail interface you are using, such as elm, pine, much, or mai.
Lx. However, some fields are optional and can be added by the user. For example, elm allows you to edit some message headers
Question]. Others are included in the mail transmission software. Common title fields and their meanings are as follows:
  
From: contains the sender's email address, and may also have a "real name ". Here a complete z format is used
Oo.
To: this is the recipient's address.
Subject: describes the content of an email in several words. At least this should be done.
Date: the Date on which the email is sent.
Reply-To: specifies the address To which the recipient replies. You have several accounts but only want
This field is useful when the account receives a large number of emails. This field is optional.
Organization: The Organization of the machine that generates the email. If your machine belongs to you, you can leave it empty.
Field, or insert "personal" ("private") or something completely meaningless. This field is optional.
  
Message-ID: The string generated by the Mail transfer program of the system that generates the mail. This message is unique.
  
Received: fields inserted in the title of each site that processes your email (including the machine of the sender and recipient)
The site name, a message id, the time and date when the message was received, from which site, and
Which transmission software. Based on this, you can track the routes that the messages pass through, and if something goes wrong, you can complain
Persons responsible.
X-anything: the header line starting with X-does not work for any email-related programs. It is used for implementation
Additional features of writing or not writing RFC. For example, it is used in the Linux Activists email list, where
The X-Mn-Key: title field is used to select a channel.
An exception to this structure is the starting line. It starts with the keyword From, followed by a space, but
. To be different From a common From: field, it is usually referenced as From _. It contains the UUCP block involved in the message
The path format (as explained below), the time and date when the last machine that receives the message processes the message, and
Specifies which host receives the optional part. Because every system that processes this message generates this field
It is usually included in the envelope data.
Therefore, the From _ field is backward compatible with some old mail programs, but it is no longer frequently used, except for the Mail user interface.
The program also relies on it to determine the beginning of a message in the user's mail box. It also aims to eliminate the elimination starting with "From ".
The potential problems caused by the rows in the body are placed ">" before it to avoid any such phenomenon, which has become
A standard method.
13.2 How is an email delivered?
Generally, you need to use a mail interface program such as mail or mailx to write emails, or use more complex e-mails.
Lm, mush, or pine. These programs are collectively referred to as the mail user agent or MUA. If you
If an email message is sent, the interface (interface) program will pass it to another program in most cases.
Row delivery. This program is called the mail transport agent or MTA for short. In some systems
For local and remote delivery, there is a different mail transmission agent; in other systems, there is only one. Remote advertising
The delivered command is generally called rmail, and the others are called lmail (if any ).
Of course, the delivery of local mail only attaches incoming messages to the recipient's mailbox. Generally, the local MTA understands
Alias (set the recipient's address to point to another address), and forward (redirect the user's email to a specific address ).
Its destination ). Likewise, messages that cannot be delivered must usually be returned (bounced), that is, some errors
Information is returned to the sender.
For remote shipping operations, the transmission software used depends on the link attributes. If an email must be in
SMTP is often used for network delivery. SMTP indicates Simple Mail Transfer P
Rotocol) is defined in RFC 788 and RFC 821. SMTP is usually directly connected to the recipient's machine.
The SMTP background program (daemon) of to negotiate message transmission.
In the UUCP network, emails are usually not delivered directly, but forwarded to the target host through a series of intermediate systems.
. To send a message on the UUCP link

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.