Advertisement
Guest User

Untitled

a guest
Aug 1st, 2018
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.99 KB | None | 0 0
  1. # See /usr/share/postfix/main.cf.dist for a commented, more complete version
  2.  
  3.  
  4. # Debian specific: Specifying a file name will cause the first
  5. # line of that file to be used as the name. The Debian default
  6. # is /etc/mailname.
  7. #myorigin = /etc/mailname
  8.  
  9. smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
  10. biff = no
  11.  
  12. # appending .domain is the MUA's job.
  13. append_dot_mydomain = no
  14.  
  15. # Uncomment the next line to generate "delayed mail" warnings
  16. #delay_warning_time = 4h
  17.  
  18. readme_directory = no
  19.  
  20. # See http://www.postfix.org/COMPATIBILITY_README.html -- default to 2 on
  21. # fresh installs.
  22. compatibility_level = 2
  23.  
  24. # TLS parameters
  25. #smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
  26. #smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
  27. smtpd_tls_key_file=/etc/postfix/postfix.pem
  28. smtpd_tls_cert_file=$smtpd_tls_key_file
  29. smtpd_use_tls=yes
  30. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  31. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  32.  
  33. # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
  34. # information on enabling SSL in the smtp client.
  35.  
  36. smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
  37. myhostname = relayhost.mydomain.com
  38. #alias_maps = hash:/etc/aliases
  39. #alias_database = hash:/etc/aliases
  40. #myorigin = /etc/mailname
  41. #mydestination =
  42. relayhost = [mydomain-com.mail.protection.outlook.com]
  43. mailbox_size_limit = 419430400
  44. #recipient_delimiter =
  45. inet_interfaces = all
  46. inet_protocols = ipv4
  47.  
  48.  
  49. #added edit by some tech 7/12/2018 to rewrite from field on all outbound
  50. sender_canonical_classes = envelope_sender, header_sender
  51. sender_canonical_maps = regexp:/etc/postfix/sender_regex
  52. header_checks = regexp:/etc/postfix/header_check
  53.  
  54. /^From:s[a-z0-9-]{1,30}@[a-z0-9-]{1,65}.[a-z]{1,}$/ REPLACE From: <no-reply@mydomain.com>
  55. /^Received:.*/ IGNORE
  56.  
  57. /^[a-z0-9-]{1,30}@[a-z0-9-]{1,65}.[a-z]{1,}$/ no-reply@mydomain.com
  58.  
  59. *** ENVELOPE RECORDS deferred/1/1EFFE220817 ***
  60. message_size: 731767 807 1 0 731767 0
  61. message_arrival_time: Wed Aug 1 18:07:38 2018
  62. create_time: Wed Aug 1 18:07:38 2018
  63. named_attribute: log_ident=1EFFE220817
  64. named_attribute: rewrite_context=remote
  65. sender: no-reply@mydomain.com
  66. named_attribute: log_client_name=printer.mydomain.com
  67. named_attribute: log_client_address=XXX.XXX.XXX.XXX
  68. named_attribute: log_client_port=49434
  69. named_attribute: log_message_origin=printer.mydomain.com[XXX.XXX.XXX.XXX]
  70. named_attribute: log_helo_name=SECXXXXXXXXXXXX
  71. named_attribute: log_protocol_name=ESMTP
  72. named_attribute: client_name=printer.mydomain.com
  73. named_attribute: reverse_client_name=printer.mydomain.com
  74. named_attribute: client_address=XXX.XXX.XXX.XXX
  75. named_attribute: client_port=49434
  76. named_attribute: server_address=XXX.XXX.XXX.XXX
  77. named_attribute: server_port=25
  78. named_attribute: helo_name=SECXXXXXXXXXXXX
  79. named_attribute: protocol_name=ESMTP
  80. named_attribute: client_address_type=2
  81. named_attribute: dsn_orig_rcpt=rfc822;me@mydomain.com
  82. original_recipient: me@mydomain.com
  83. recipient: me@mydomain.com
  84. *** MESSAGE CONTENTS deferred/1/1EFFE220817 ***
  85. Received: from SECXXXXXXXXXXXX (printer.mydomain.com [XXX.XXX.XXX.XXX])
  86. by relayhost.mydomain.com (Postfix) with ESMTP id 1EFFE220817
  87. for <me@mydomain.com>; Wed, 1 Aug 2018 18:07:38 -0700 (PDT)
  88. Date:Wed, 01 Aug 2018 17:49 -0600
  89. From:<printer@mydomain.com>
  90. Message-Id: <16337552832588.0037@t37>
  91. To: ""<me@mydomain.com>
  92. Subject:=?utf-8?B?U2NhbiBmcm9tIEZEMlBDMTA=?=
  93. MIME-Version: 1.0
  94. Content-Type: MULTIPART/MIXED; BOUNDARY="----=_NextPart_54c_5332_2439.4173"
  95. Content-features:
  96. (& (& (dpi=300) (dpi-xyratio=[300/300]))
  97. (image-coding=MH))
  98.  
  99. Aug 1 18:06:51 relayhost postfix/postfix-script[53569]: refreshing the Postfix mail system
  100. Aug 1 18:06:51 relayhost postfix/master[53433]: reload -- version 3.3.0, configuration /etc/postfix
  101. Aug 1 18:07:37 relayhost postfix/smtpd[53575]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
  102. Aug 1 18:07:37 relayhost postfix/smtpd[53575]: initializing the server-side TLS engine
  103. Aug 1 18:07:37 relayhost postfix/tlsmgr[53577]: open smtpd TLS cache btree:/var/lib/postfix/smtpd_scache
  104. Aug 1 18:07:37 relayhost postfix/tlsmgr[53577]: tlsmgr_cache_run_event: start TLS smtpd session cache cleanup
  105. Aug 1 18:07:37 relayhost postfix/smtpd[53575]: connect from printer.mydomain.com[XXX.XXX.XXX.XXX]
  106. Aug 1 18:07:38 relayhost postfix/smtpd[53575]: 1EFFE220817: client=printer.mydomain.com[XXX.XXX.XXX.XXX]
  107. Aug 1 18:07:38 relayhost postfix/cleanup[53579]: 1EFFE220817: message-id=<16337552832588.0037@t37>
  108. Aug 1 18:07:38 relayhost postfix/qmgr[53574]: 1EFFE220817: from=<no-reply@mydomain.com>, size=731767, nrcpt=1 (queue active)
  109. Aug 1 18:07:38 relayhost postfix/smtpd[53575]: disconnect from printer.mydomain.com[XXX.XXX.XXX.XXX] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
  110. Aug 1 18:07:38 relayhost postfix/error[53580]: 1EFFE220817: to=<me@mydomain.com>, relay=none, delay=0.74, delays=0.71/0.02/0/0.01, dsn=4.3.2, status=deferred (deferred transport)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement