Advertisement
Guest User

Untitled

a guest
May 28th, 2017
743
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 9.38 KB | None | 0 0
  1. [root@xsysx mail]# telnet 10.72.69.5 25
  2. Trying 10.72.69.5...
  3. Connected to 10.72.69.5 (10.72.69.5).
  4. Escape character is '^]'.
  5. 220 xsysx.gempakbox.net ESMTP Sendmail 8.13.1/8.13.1; Thu, 3 Jun 2010 21:44:22 +0800
  6.  
  7. [root@xsysx mail]# telnet 10.72.69.5 587
  8. Trying 10.72.69.5...
  9. telnet: connect to address 10.72.69.5: Connection refused
  10. telnet: Unable to connect to remote host: Connection refused
  11.  
  12. my sendmail.mc
  13.  
  14. divert(-1)dnl
  15. dnl #
  16. dnl # This is the sendmail macro config file for m4. If you make changes to
  17. dnl # /etc/mail/sendmail.mc, you will need to regenerate the
  18. dnl # /etc/mail/sendmail.cf file by confirming that the sendmail-cf package is
  19. dnl # installed and then performing a
  20. dnl #
  21. dnl #     make -C /etc/mail
  22. dnl #
  23. include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
  24. VERSIONID(`setup for Red Hat Linux')dnl
  25. OSTYPE(`linux')dnl
  26. dnl #
  27. dnl # default logging level is 9, you might want to set it higher to
  28. dnl # debug the configuration
  29. dnl #
  30. dnl define(`confLOG_LEVEL', `9')dnl
  31. dnl #
  32. dnl # Uncomment and edit the following line if your outgoing mail needs to
  33. dnl # be sent out through an external mail server:
  34. dnl #
  35. dnl define(`SMART_HOST', `smtp.your.provider')dnl
  36. FEATURE(authinfo)dnl
  37. define(`confDEF_USER_ID',``8:12'')dnl
  38. dnl define(`confAUTO_REBUILD')dnl
  39. define(`confTO_CONNECT', `1m')dnl
  40. define(`confTRY_NULL_MX_LIST',true)dnl
  41. define(`confDONT_PROBE_INTERFACES',true)dnl
  42. define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
  43. define(`ALIAS_FILE', `/etc/aliases')dnl
  44. define(`STATUS_FILE', `/var/log/mail/statistics')dnl
  45. define(`UUCP_MAILER_MAX', `2000000')dnl
  46. define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
  47. define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
  48. define(`confAUTH_OPTIONS', `A')dnl
  49. dnl #
  50. dnl # The following allows relaying if the user authenticates, and disallows
  51. dnl # plaintext authentication (PLAIN/LOGIN) on non-TLS links
  52. dnl #
  53. dnl define(`confAUTH_OPTIONS', `A p')dnl
  54. dnl #
  55. dnl # PLAIN is the preferred plaintext authentication method and used by
  56. dnl # Mozilla Mail and Evolution, though Outlook Express and other MUAs do
  57. dnl # use LOGIN. Other mechanisms should be used if the connection is not
  58. dnl # guaranteed secure.
  59. dnl # Please remember that saslauthd needs to be running for AUTH.
  60. dnl #
  61. dnl TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
  62. dnl define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
  63. dnl #
  64. dnl # Rudimentary information on creating certificates for sendmail TLS:
  65. dnl #     cd /usr/share/ssl/certs; make sendmail.pem
  66. dnl # Complete usage:
  67. dnl #     make -C /usr/share/ssl/certs usage
  68. dnl #
  69. dnl define(`confCACERT_PATH',`/usr/share/ssl/certs')
  70. dnl define(`confCACERT',`/usr/share/ssl/certs/ca-bundle.crt')
  71. dnl define(`confSERVER_CERT',`/usr/share/ssl/certs/sendmail.pem')
  72. dnl define(`confSERVER_KEY',`/usr/share/ssl/certs/sendmail.pem')
  73. dnl #
  74. dnl # This allows sendmail to use a keyfile that is shared with OpenLDAP's
  75. dnl # slapd, which requires the file to be readble by group ldap
  76. dnl #
  77. dnl define(`confDONT_BLAME_SENDMAIL',`groupreadablekeyfile')dnl
  78. dnl #
  79. dnl define(`confTO_QUEUEWARN', `4h')dnl
  80. dnl define(`confTO_QUEUERETURN', `5d')dnl
  81. dnl define(`confQUEUE_LA', `12')dnl
  82. dnl define(`confREFUSE_LA', `18')dnl
  83. define(`confTO_IDENT', `0')dnl
  84. dnl FEATURE(delay_checks)dnl
  85. FEATURE(`no_default_msa',`dnl')dnl
  86. FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
  87. FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
  88. FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
  89. FEATURE(redirect)dnl
  90. FEATURE(always_add_domain)dnl
  91. FEATURE(use_cw_file)dnl
  92. FEATURE(use_ct_file)dnl
  93. dnl #
  94. dnl # The following limits the number of processes sendmail can fork to accept
  95. dnl # incoming messages or process its message queues to 12.) sendmail refuses
  96. dnl # to accept connections once it has reached its quota of child processes.
  97. dnl #
  98. dnl define(`confMAX_DAEMON_CHILDREN', 12)dnl
  99. dnl #
  100. dnl # Limits the number of new connections per second. This caps the overhead
  101. dnl # incurred due to forking new sendmail processes. May be useful against
  102. dnl # DoS attacks or barrages of spam. (As mentioned below, a per-IP address
  103. dnl # limit would be useful but is not available as an option at this writing.)
  104. dnl #
  105. dnl define(`confCONNECTION_RATE_THROTTLE', 3)dnl
  106. dnl #
  107. dnl # The -t option will retry delivery if e.g. the user runs over his quota.
  108. dnl #
  109. FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl
  110. FEATURE(`access_db',`hash -T<TMPF> -o /etc/mail/access.db')dnl
  111. FEATURE(`blacklist_recipients')dnl
  112. EXPOSED_USER(`root')dnl
  113. dnl #
  114. dnl # The following causes sendmail to only listen on the IPv4 loopback address
  115. dnl # 127.0.0.1 and not on any other network devices. Remove the loopback
  116. dnl # address restriction to accept email from the internet or intranet.
  117. dnl #
  118. dnl DAEMON_OPTIONS(`Port=587,Addr=10.72.69.5, Name=MTA')dnl
  119. dnl #
  120. dnl # The following causes sendmail to additionally listen to port 587 for
  121. dnl # mail from MUAs that authenticate. Roaming users who can't reach their
  122. dnl # preferred sendmail daemon due to port 25 being blocked or redirected find
  123. dnl # this useful.
  124. dnl #
  125. dnl DAEMON_OPTIONS(`Port=submission, Name=MSA, M=Ea')dnl
  126. dnl #
  127. dnl # The following causes sendmail to additionally listen to port 465, but
  128. dnl # starting immediately in TLS mode upon connecting. Port 25 or 587 followed
  129. dnl # by STARTTLS is preferred, but roaming clients using Outlook Express can't
  130. dnl # do STARTTLS on ports other than 25. Mozilla Mail can ONLY use STARTTLS
  131. dnl # and doesn't support the deprecated smtps; Evolution <1.1.1 uses smtps
  132. dnl # when SSL is enabled-- STARTTLS support is available in version 1.1.1.
  133. dnl #
  134. dnl # For this to work your OpenSSL certificates must be configured.
  135. dnl #
  136. dnl DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA, M=s')dnl
  137. dnl #
  138. dnl # The following causes sendmail to additionally listen on the IPv6 loopback
  139. dnl # device. Remove the loopback address restriction listen to the network.
  140. dnl #
  141. dnl DAEMON_OPTIONS(`port=smtp,Addr=::1, Name=MTA-v6, Family=inet6')dnl
  142. dnl #
  143. dnl # enable both ipv6 and ipv4 in sendmail:
  144. dnl #
  145. dnl DAEMON_OPTIONS(`Name=MTA-v4, Family=inet, Name=MTA-v6, Family=inet6')
  146. dnl #
  147. dnl # We strongly recommend not accepting unresolvable domains if you want to
  148. dnl # protect yourself from spam. However, the laptop and users on computers
  149. dnl # that do not have 24x7 DNS do need this.
  150. dnl #
  151. FEATURE(`accept_unresolvable_domains')dnl
  152. dnl #
  153. dnl FEATURE(`relay_based_on_MX')dnl
  154. dnl #
  155. dnl # Also accept email sent to "localhost.localdomain" as local email.
  156. dnl #
  157. LOCAL_DOMAIN(`localhost.localdomain')dnl
  158. dnl #
  159. dnl # The following example makes mail from this host and any additional
  160. dnl # specified domains appear to be sent from mydomain.com
  161. dnl #
  162. dnl MASQUERADE_AS(`mydomain.com')dnl
  163. dnl #
  164. dnl # masquerade not just the headers, but the envelope as well
  165. dnl #
  166. dnl FEATURE(masquerade_envelope)dnl
  167. dnl #
  168. dnl # masquerade not just @mydomainalias.com, but @*.mydomainalias.com as well
  169. dnl #
  170. dnl FEATURE(masquerade_entire_domain)dnl
  171. dnl #
  172. dnl MASQUERADE_DOMAIN(localhost)dnl
  173. dnl MASQUERADE_DOMAIN(localhost.localdomain)dnl
  174. dnl MASQUERADE_DOMAIN(mydomainalias.com)dnl
  175. dnl MASQUERADE_DOMAIN(mydomain.lan)dnl
  176. MAILER(smtp)dnl
  177. MAILER(procmail)dnl
  178.  
  179.  
  180. the log
  181.  
  182. Jun  3 21:37:37 xsysx sendmail[5950]: starting daemon (8.13.1): SMTP+queueing@01:00:00
  183. Jun  3 21:37:37 xsysx sm-msp-queue[5959]: starting daemon (8.13.1): queueing@01:00:00
  184. Jun  3 21:37:44 xsysx sendmail[5972]: o53DbiCh005972: from=root, size=263, class=0, nrcpts=1, msgid=<201006031337.o53DbiCh005972@xsysx.gempakbox.net>, relay=root@localhost
  185. Jun  3 21:37:44 xsysx sendmail[5973]: o53DbikS005973: from=<root@xsysx.gempakbox.net>, size=555, class=0, nrcpts=1, msgid=<201006031337.o53DbiCh005972@xsysx.gempakbox.net>, proto=ESMTP, daemon=MTA, relay=centos.lowkey.net.my [127.0.0.1]
  186. Jun  3 21:37:44 xsysx sendmail[5972]: o53DbiCh005972: to=admin@gempakbox.net, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30263, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (o53DbikS005973 Message accepted for delivery)
  187. Jun  3 21:38:34 xsysx sendmail[5890]: o53DaTGf005888: to=<admin@gempakbox.net>, ctladdr=<root@xsysx.gempakbox.net> (0/0), delay=00:02:05, xdelay=00:02:05, mailer=esmtp, pri=120555, relay=gempakbox.net. [64.32.22.130], dsn=4.0.0, stat=Deferred: Connection timed out with gempakbox.net.
  188. Jun  3 21:38:54 xsysx sendmail[5905]: o53DamAk005903: to=<admin@gempakbox.net>, ctladdr=<root@xsysx.gempakbox.net> (0/0), delay=00:02:05, xdelay=00:02:05, mailer=esmtp, pri=120555, relay=gempakbox.net. [64.32.22.130], dsn=4.0.0, stat=Deferred: Connection timed out with gempakbox.net.
  189. Jun  3 21:39:42 xsysx sendmail[5951]: o53DY9A2005793: to=<admin@gempakbox.net>, ctladdr=<root@xsysx.gempakbox.net> (0/0), delay=00:05:33, xdelay=00:02:05, mailer=esmtp, pri=210555, relay=gempakbox.net. [64.32.22.130], dsn=4.0.0, stat=Deferred: Connection timed out with gempakbox.net.
  190. Jun  3 21:39:42 xsysx sendmail[5951]: o53DZKks005816: to=<admin@gempakbox.net>, ctladdr=<root@xsysx.gempakbox.net> (0/0), delay=00:04:22, xdelay=00:00:00, mailer=esmtp, pri=210555, relay=gempakbox.net., dsn=4.0.0, stat=Deferred: Connection timed out with gempakbox.net.
  191. Jun  3 21:39:42 xsysx sendmail[5951]: o53DQjLC005670: to=<admin@gempakbox.net>, ctladdr=<root@xsysx.gempakbox.net> (0/0), delay=00:12:57, xdelay=00:00:00, mailer=esmtp, pri=300506, relay=gempakbox.net., dsn=4.0.0, stat=Deferred: Connection timed out with gempakbox.net.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement