Configure sendmail in Hongqi LinuxServer4.1

Source: Internet
Author: User
Configure sendmail-Linux Enterprise Application-Linux server application information in Hongqi LinuxServer4.1. The following is a detailed description. The Server4.1 series does not provide the Sendmail graphical Configuration tool and needs to be modified in the file. The simple configuration steps are as follows: in the test environment, the ip address of the Sendmail server is 172.16.81.171, and the mail test domain is lstest.com.
1. If the Sendmail server is used in the Intranet, configure the DNS service and specify the ip address or Host Name of the email server so that it can be properly resolved. Modify/etc/mail/sendmail. add the cf file to the domain (lstest.com) processed by the mail server, search for the DS segment, and add the statement: Cwlstest.com
2. This file also limits Sendmail to enable Port 25 of smtp for localhost: DaemonPortOption = Port = smtp, Addr = 127.0.0.1, and Name = MTA: daemonPortOption = Port = smtp, Name = MTA after modification is completed, save and exit. Then, start the email server (/etc/rc. d/init. d/sendmail start). the smtp port is automatically opened as the Sendmail service starts, and can be normally sent and received on the mail server.
3. Versions later than Sendmail8.9.x do not forward (Relay) unverified computers by default. Therefore, if you want to resend emails from computers other than this host, in the corresponding configuration file, clearly tell Sendmail which hosts to forward, edit the/etc/mail/access file, and define the CIDR Block and domain of the forwarded mail: after modifying 172.16.80.0 RELAY 172.16.81.0 RELAY, You need to compile makemap hash/etc/mail/access. db </etc/mail/access
4. It is worth noting that in the 4.1 Series, sendmail is not the default mail service. If sendmail is configured, a prompt is displayed when the service is directly started: Start sm-client: sendmail: fatal: flush queue mode requires no recipient [failed]. After installing the third system tool CD of the operating system, run the asianux-switch-mail command, change the default mail service to sendmail. /Etc/rc. d/init. d/sendmail start
5. To receive emails from the client, open the pop3 port and configure: edit/etc/xinetd. d/ipop3 file, add # comment out the disable = yes line in it, and restart the xinetd service:/etc/rc. d/init. d/xinetd restart and restart the email service:/etc/rc. d/init. d/sendmail restart

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.