Sendmail configuration in linux

Source: Internet
Author: User
Tags imap imap port
Article Title: configure sendmail in linux. Linux is a technology channel of the IT lab in China. Some basic categories, such as desktop applications, Linux system management, kernel research, embedded systems, and open-source systems, are easy to configure sendmail mail servers in linux:
1cd/etc/xinetd. d
2ls check whether ipop3 and imap protocols are available
3. Edit vi/etc/xinetd. d/ipop3 and change disable = yes to disable = no.
4. Edit vi/etc/xined. d/imap and change disable = yes to diable = no.
5. Test pop3 and imap telnet localhost 110 (pop3 Post Office Protocol port) telnet localhost 143 (imap port)
When exiting, use ctl +] and press enter to enter quit (remember to restart the xinetd service after testing)
6. Edit vi/etc/mail/sendmail. mc.
7 put dnl TRUST_AUTH_MECH (.........) and dnl define ('confauth _ MECHANISMS ',.........) the previous dnl went.
8. Add two DAEMON_OPTIONS ('port = 25, name = MTA ') dnl and DAEMON_OPTIONS ('port = 587, name = MSA, m = Ea') dnl
9 Add dnl before DAEMON_OPTIONS ('port = smtp, Addr = 127.0.0.1, name = smTA ') dnl and DAEMON_OPTIONS ('Accept _ Unres, Olvale_domains') dnl
10. test MTA telnet localhost 25. Press ENTER ehlo test and press Enter. AUTH = .. 250 indicates that the system successfully exits.
11. Rewrite input m4/etc/mail/sendmail. mc>/etc/mail/sendmail. cf
12 restart sendmail service sendmail restart
13. Edit vi/etc/mail/access to add the IP addresses or domain names of users allowed to be forwarded, for example, to allow computers with 192.168.10.10 to pass through
Edit vi/etc/mail/access and add 192.168.10.10 RELAY or OK to it (allow forwarding and passing)
14 edit vi/etc/mail/local-host-names and add the domain name used by the email server
15 add an in mx 5 (the parameter is set as a priority) to forward resolution when DNS is performed)
16 Re-configure the sendmail service
Related Article

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.