Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Something
Wednesday, February 15th, 2006 at 4:18:56pm MST 

  1. [root@Xena root]# cat /etc/mail/sendmail.mc
  2. divert(-1)dnl
  3.  
  4. dnl ###############Custom Section#####################
  5. FEATURE(always_add_domain)dnl
  6. FEATURE(`masquerade_entire_domain')dnl
  7. FEATURE(`masquerade_envelope')dnl
  8. FEATURE(`allmasquerade')dnl
  9. MASQUERADE_AS(`smarterior.com')dnl
  10. MASQUERADE_DOMAIN(`smarterior.com')dnl
  11. MASQUERADE_DOMAIN(localhost)dnl
  12. MASQUERADE_DOMAIN(localhos.localdomain)dnl
  13. dnl ##############END CUSTOM SECTION##################
  14.  
  15.  
  16. dnl #
  17. dnl # This is the sendmail macro config file for m4. If you make changes to
  18. dnl # /etc/mail/sendmail.mc, you will need to regenerate the
  19. dnl # /etc/mail/sendmail.cf file by confirming that the sendmail-cf package is
  20. dnl # installed and then performing a
  21. dnl #
  22. dnl #     make -C /etc/mail
  23. dnl #
  24. include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
  25. VERSIONID(`setup for Red Hat Linux')dnl
  26. OSTYPE(`linux')dnl
  27. dnl #
  28. dnl # default logging level is 9, you might want to set it higher to
  29. dnl # debug the configuration
  30. dnl #
  31. dnl define(`confLOG_LEVEL', `9')dnl
  32. dnl #
  33. dnl # Uncomment and edit the following line if your outgoing mail needs to
  34. dnl # be sent out through an external mail server:
  35. dnl #
  36. dnl define(`SMART_HOST',`mail.smarterior.com')
  37. dnl #
  38. define(`confDEF_USER_ID',``8:12'')dnl
  39. dnl define(`confAUTO_REBUILD')dnl
  40. define(`confTO_CONNECT', `1m')dnl
  41. define(`confTRY_NULL_MX_LIST',true)dnl
  42. define(`confDONT_PROBE_INTERFACES',true)dnl
  43. define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
  44. define(`ALIAS_FILE', `/etc/aliases')dnl
  45. define(`STATUS_FILE', `/var/log/mail/statistics')dnl
  46. define(`UUCP_MAILER_MAX', `2000000')dnl
  47. define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
  48. define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
  49. define(`confAUTH_OPTIONS', `A')dnl
  50. dnl #
  51. dnl # The following allows relaying if the user authenticates, and disallows
  52. dnl # plaintext authentication (PLAIN/LOGIN) on non-TLS links
  53. dnl #
  54. dnl define(`confAUTH_OPTIONS', `A p')dnl
  55. dnl #
  56. dnl # PLAIN is the preferred plaintext authentication method and used by
  57. dnl # Mozilla Mail and Evolution, though Outlook Express and other MUAs do
  58. dnl # use LOGIN. Other mechanisms should be used if the connection is not
  59. dnl # guaranteed secure.
  60. dnl # Please remember that saslauthd needs to be running for AUTH.
  61. dnl #
  62. dnl TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
  63. dnl define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
  64. dnl #
  65. dnl # Rudimentary information on creating certificates for sendmail TLS:
  66. dnl #     make -C /usr/share/ssl/certs usage
  67. dnl # or use the included makecert.sh script
  68. dnl #
  69. define(`CERT_DIR',`/etc/mail/certs')
  70. define(`confCACERT_PATH',`CERT_DIR')
  71. define(`confCACERT',`CERT_DIR/cacert.pem')
  72. define(`confSERVER_CERT',`CERT_DIR/cert.pem')
  73. define(`confSERVER_KEY',`CERT_DIR/key.pem')
  74. define(`confCLIENT_CERT',`CERT_DIR/cert.pem')
  75. define(`confCLIENT_KEY',`CERT_DIR/key.pem')
  76. dnl #
  77. dnl # This allows sendmail to use a keyfile that is shared with OpenLDAP's
  78. dnl # slapd, which requires the file to be readble by group ldap
  79. dnl #
  80. dnl define(`confDONT_BLAME_SENDMAIL',`groupreadablekeyfile')dnl
  81. dnl #
  82. dnl define(`confTO_QUEUEWARN', `4h')dnl
  83. dnl define(`confTO_QUEUERETURN', `5d')dnl
  84. dnl define(`confQUEUE_LA', `12')dnl
  85. dnl define(`confREFUSE_LA', `18')dnl
  86. define(`confTO_IDENT', `0')dnl
  87. dnl FEATURE(delay_checks)dnl
  88. FEATURE(`no_default_msa',`dnl')dnl
  89. FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
  90. FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
  91. FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
  92. FEATURE(redirect)dnl
  93. FEATURE(always_add_domain)dnl
  94. FEATURE(use_cw_file)dnl
  95. FEATURE(use_ct_file)dnl
  96. dnl #
  97. dnl # The -t option will retry delivery if e.g. the user runs over his quota.
  98. dnl #
  99. FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl
  100. FEATURE(`access_db',`hash -T<TMPF> -o /etc/mail/access.db')dnl
  101. FEATURE(`blacklist_recipients')dnl
  102. EXPOSED_USER(`root')dnl
  103. dnl #
  104. dnl # The following causes sendmail to only listen on the IPv4 loopback address
  105. dnl # 127.0.0.1 and not on any other network devices. Remove the loopback
  106. dnl # address restriction to accept email from the internet or intranet.
  107. dnl #
  108. dnl # DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')
  109. dnl #
  110. dnl # The following causes sendmail to additionally listen to port 587 for
  111. dnl # mail from MUAs that authenticate. Roaming users who can't reach their
  112. dnl # preferred sendmail daemon due to port 25 being blocked or redirected find
  113. dnl # this useful.
  114. dnl #
  115. dnl DAEMON_OPTIONS(`Port=submission, Name=MSA, M=Ea')dnl
  116. dnl #
  117. dnl # The following causes sendmail to additionally listen to port 465, but
  118. dnl # starting immediately in TLS mode upon connecting. Port 25 or 587 followed
  119. dnl # by STARTTLS is preferred, but roaming clients using Outlook Express can't
  120. dnl # do STARTTLS on ports other than 25. Mozilla Mail can ONLY use STARTTLS
  121. dnl # and doesn't support the deprecated smtps; Evolution <1.1.1 uses smtps
  122. dnl # when SSL is enabled-- STARTTLS support is available in version 1.1.1.
  123. dnl #
  124. dnl # For this to work your OpenSSL certificates must be configured.
  125. dnl #
  126. dnl DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA, M=s')dnl
  127. dnl #
  128. dnl # The following causes sendmail to additionally listen on the IPv6 loopback
  129. dnl # device. Remove the loopback address restriction listen to the network.
  130. dnl #
  131. dnl DAEMON_OPTIONS(`port=smtp,Addr=::1, Name=MTA-v6, Family=inet6')dnl
  132. dnl #
  133. dnl # enable both ipv6 and ipv4 in sendmail:
  134. dnl #
  135. dnl DAEMON_OPTIONS(`Name=MTA-v4, Family=inet, Name=MTA-v6, Family=inet6')
  136. dnl #
  137. dnl # We strongly recommend not accepting unresolvable domains if you want to
  138. dnl # protect yourself from spam. However, the laptop and users on computers
  139. dnl # that do not have 24x7 DNS do need this.
  140. dnl #
  141. FEATURE(`accept_unresolvable_domains')dnl
  142. dnl #
  143. dnl FEATURE(`relay_based_on_MX')dnl
  144. dnl #
  145. dnl # Also accept email sent to "localhost.localdomain" as local email.
  146. dnl #
  147. LOCAL_DOMAIN(`localhost.localdomain')dnl
  148. dnl #
  149. dnl # The following example makes mail from this host and any additional
  150. dnl # specified domains appear to be sent from mydomain.com
  151. dnl #
  152. dnl MASQUERADE_AS(`mydomain.com')dnl
  153. dnl #
  154. dnl # masquerade not just the headers, but the envelope as well
  155. dnl #
  156. dnl FEATURE(masquerade_envelope)dnl
  157. dnl #
  158. dnl # masquerade not just @mydomainalias.com, but @*.mydomainalias.com as well
  159. dnl #
  160. dnl FEATURE(masquerade_entire_domain)dnl
  161. dnl #
  162. dnl MASQUERADE_DOMAIN(localhost)dnl
  163. dnl MASQUERADE_DOMAIN(localhost.localdomain)dnl
  164. dnl MASQUERADE_DOMAIN(mydomainalias.com)dnl
  165. dnl MASQUERADE_DOMAIN(mydomain.lan)dnl
  166. MAILER(smtp)dnl
  167. MAILER(procmail)dnl
  168. [root@Xena root]#

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

worth-right