Sendmail configuration file (1) (1)

Source: Internet
Author: User
Tags mx record

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.


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.