Application of mail delivery on Linux and Windows systems

Source: Internet
Author: User
Tags mail linux

Project background:

Xian Lingyun High-Tech Co., Ltd. Shanghai branch in the internal server construction, the need to build a Linux server to achieve DHCP, NIS, FTP, Samba and other network services, for the same system with other hosts to provide services, this server is the first Linux server in Shanghai branch office, The server chooses RHEL4 as the installed Linux version.

Experimental environment:

The company's basic services have been completed, now need to build a mail server; For this we chose to use SendMail to build the mail service, we chose to adopt exchange to build the mail service, but we thought sendmail Mail Service stable practical, Open source code, such as some excellent performance and we have adopted the overall Linux system, so we chose to use SendMail as our company's Mail service.

Project Standard:

Be able to realize the SendMail Mail service sending and receiving;

be able to send and receive mail via OE on windows;

Through the "openwebmail" to achieve the sending and receiving of mails;

Project implementation:

When installing the SendMail server, we first need to install two software to implement the basic mail forwarding function: Dovecot package and SendMail package. We know that in Windows Exchange is domain-based, so we need DNS support when installing SendMail, and DNS has been built up in this project; about DNS installation and deployment we're in the Rookie Learn Linux VII: DNS deployment under the Liunx and reverse zone deployment and build and the detailed introduction of our here will not do a specific introduction.

One, SendMail server installation;

The 1.1.1. SendMail server is installed by default on the RHEL4 system, the name of the package is sendmail, we do not need to install, the M4 package provides the necessary tools to configure the SendMail server, and is installed by default with the SendMail package. If not installed we can install manually, SendMail and M4 in the second chapter CD, we use "RPM" to see if it is installed, as shown in Figure 1-1:

1.1.2. On the fourth CD, the 3 packages that have filenames starting with SendMail are included, all of which are related to SendMail. where "SENDMAIL-CF" and "Sendmail-doc" require manual installation. The "SENDMAIL-CF" package includes the necessary configuration files for the SendMail server; "Sendmail-doc" is the documentation for the SendMail server, which we do not normally install.

1.1.3. But when we install sendmail, we need to set up automatic running, we can use "chkconfigure" in the system run 3 and 5 automatically start as shown in Figure 1-3:

Second, the SendMail control starts;

2.1.1. SendMail server starts and stops, the SendMail server uses a startup script named SendMail to start and stop the program, which is in the "/ETC/INITD" directory. "SENDMAIL-CF" and "Sendmail-doc" will run automatically when we start "SendMail", as shown in Figure 2-1:

The configuration directory of the 2.1.2. SendMail server, the files used by the SendMail server are saved in the directory "/etc/mail", which holds files of various types, such as the file to be configured for the SendMail server to run and the library files. As shown in Figure 2-2, we go to the directory "/etc/mail" to view his profile.

2.1.3. Set up the Local-host-names file; The reason we modified the file was because the file server provided the server domain name for the mail server. We can add our domain name "angeldevil.com" to this profile. As shown in Figure 2-3:

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.