Environment: RedHatLinux9.0 full installation or make sure the following installation package has been installed: imap-2001a-18.i286.rpmsendmail-8.12.8-4.i386.rpmm4-1.4.1-13.i386.rpmcyrus-sasl-2.1.10-4.i386.rpmcyrus-sasl-md5-2.1.10-4.i386.rpmcyrus-sasl-Environment: RedHat Linux 9.0 full installation or make sure the following installation package has been installed:
Imap-2001a-18.i286.rpm
Sendmail-8.12.8-4.i386.rpm
M4-1.4.1-13.i386.rpm
Cyrus-sasl-2.1.10-4.i386.rpm
Cyrus-sasl-md5-2.1.10-4.i386.rpm
Cyrus-sasl-plain-2.1.10-4.i386.rpm
Cyrus-sasl-gssapi-2.1.10-4.i386.rpm
Objective: To configure and install an email server with authentication function
1. Sendmail service configuration
1. After installing RedHat Linux 9.0, modify/etc/mail/sendmail. mc. The modified file is as follows:
Divert (-1) dnl
Dnl #
Dnl # This is the sendmail macro config file for m4. If you make changes
Dnl #/etc/mail/sendmail. mc, you will need to regenerate
Dnl #/etc/mail/sendmail. cf file by confirming that the sendmail-cf package is
Dnl # installed and then Ming
Dnl #
Dnl # make-C/etc/mail
Dnl #
Include ('/usr/share/sendmail-cf/m4/cf. m4') dnl
VERSIONID ('setup for Red Hat Linux ') dnl
OSTYPE ('linux ') dnl
Dnl #
Dnl # Uncomment and edit the following line if your outgoing mail needs
Dnl # be sent out through an external mail server:
Dnl #
Dnl define ('smart _ host', 'smtp. your. provider ')
Dnl #
Define ('confdef _ USER_ID ', ''8: 12 '') dnl
Define ('conftrusted _ user', 'smmsp ') dnl
Dnl define ('confauto _ REBUILD ') dnl
Define ('confto _ CONNECT ', '1m') dnl
Define ('conftry _ NULL_MX_LIST ', true) dnl
Define ('confdont _ PROBE_INTERFACES ', true) dnl
Define ('procmail _ MAILER_PATH ','/usr/bin/procmail') dnl
Define ('Alias _ file', '/etc/aliases') dnl
Dnl define ('status _ file', '/etc/mail/statistics') dnl
Define ('ucp _ MAILER_MAX ', '2013') dnl
Define ('confuserdb _ SPEC ','/etc/mail/userdb. db') dnl
Define ('confprivacy _ FLAGS ', 'authwarnings, novrfy, noexpn, restrictqrun') dnl
Define ('confauth _ options', 'A') dnl
Dnl #
Dnl # The following allows relaying if the user authenticates, and disallows
Dnl # plaintext authentication (PLAIN/LOGIN) on non-TLS links
Dnl #
Dnl define ('confauth _ options', 'a p') dnl
Dnl #
Dnl # PLAIN is the preferred plaintext authentication method and used
Dnl # Mozilla Mail and Evolution, though Outlook Express and other MUAs do
Dnl # use LOGIN. Other mechanic ISMs shoshould be used if the connection is not
Dnl # guaranteed secure.
Dnl #
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.