SendmailThe configuration file is as follows:
/Etc/mail/sendmail. mc
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 (include sendmail-cf/m4/cf. m4)
VERSIONID ('setup for Red Hat Linux ') dnl (defines version information)
OSTYPE ('linux ') dnl (select a file containing the specified properties of the operating system)
Dnl #
Dnl # default logging level is 9, you might want to set it higher
Dnl # debug the configuration
Dnl #
Dnl define ('conflog _ level', '9') 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 (the specified user ID is 8 and the group ID is 12)
Dnl define ('confauto _ REBUILD ') dnl
Define ('confto _ CONNECT ', '1m') dnl (set the maximum waiting time to 1 minute)
Define ('conftry _ NULL_MX_LIST ', true) dnl (if the MX record points to the local machine, sendmail connects directly to the remote host)
Define ('confdont _ PROBE_INTERFACES ', true) dnl (sendmial does not automatically regard the server's network interface as a valid address)
Define ('procmail _ MAILER_PATH ','/usr/bin/procmail') dnl (set the storage path of PROCMAIL)
Define ('Alias _ file', '/etc/aliases') dnl (set the mail ALIAS storage path)
Define ('status _ file', '/var/log/mail/statistics') dnl
Define ('ucp _ MAILER_MAX ', '000000') dnl (set the maximum limit for processing information to 2 MB)
Define ('confuserdb _ SPEC ','/etc/mail/userdb. db') dnl (set the path of the user database file)
Define ('confprivacy _ FLAGS ', 'authwarnings, novrfy, noexpn, restrictqrun') dnl (set a flag that limits Certain Mail commands)
Define ('confauth _ options', 'A') dnl is only valid when the authorization is successful. Add the AUTH parameter to the message header of the email.