Set up SendMail server under Linux system

Source: Internet
Author: User
Tags mail modify domain domain name linux

Erecting SendMail Server

This time we'll learn about the configuration of the SendMail servers in the Linux system. (Mail server's IP192.168.1.2 host domain name is mail.ltest.com)

Premise: First of all, we put the DNS server installation OK can be resolved, do not understand the look http://www.cublog.cn/u/21675/showart_263507.html

1, first install the sendmail required software

[Root@localhost ~]# rpm-q sendmail M4

Sendmail-8.13.1-2

M4-1.4.1-16 has been installed by default and will need to mount the 4th CD-ROM to install sendmail-related software

[Root@localhost rpms]# RPM-IVH sendmail-*

Warning:sendmail-cf-8.13.1-2.i386.rpm:v3 DSA Signature:nokey, key ID db42a60e

Preparing ... ########################################### [100%]

1:sendmail-doc ########################################### [33%]

2:SENDMAIL-CF ########################################### [67%]

3:sendmail-devel ########################################### [100%]

2. Modify the/etc/mail/local-hosts-name file.

Increase the FQDN of the local domain and host, remembering that only the FQDN and domain name FQDN of the localhost, and do not add other domains, the user unknown error occurs when sending mail to Outland:

[Root@localhost named]# Cat/etc/mail/local-host-names

# Local-host-names-include all aliases to your machine here.

Ltest.com

3, change the/ETC/MAIL/SENDMAIL.MC file and modify the following places:

daemonportsoptions=port=smtp,addr=127.0.0.1, NAME=MTA changed to:

Daemonportsoptions=port=smtp,addr=yourip or 0.0.0.0, Name=mta.

Then M4/ETC/MAIL/SENDMAIL.MC >/ETC/MAIL/SENDMAIL.CF



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.