Advertisement
Guest User

Untitled

a guest
Apr 18th, 2017
579
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.82 KB | None | 0 0
  1. Jul 18 08:24:41 company imapd: LOGIN, user=user_name@domain.com, ip=[::ffff:111.111.11.11], protocol=IMAP
  2. Jul 18 08:24:42 company imapd: DISCONNECTED, user=user_name@domain.com, ip=[::ffff:111.111.11.11], headers=0, body=0, rcvd=83, sent=409, time=1
  3. Jul 18 08:25:19 company postfix/smtpd[29282]: connect from company.university.edu[111.111.11.11]
  4. Jul 18 08:25:19 company postfix/smtpd[29282]: NOQUEUE: reject: RCPT from company.university.edu[111.111.11.11]: 554 5.7.1 <email@gmail.com>: Relay access denied; from=<user_name@domain.com> to=<email@gmail.com> proto=ESMTP helo=<UserPC>
  5. Jul 18 08:25:19 company postfix/smtpd[29282]: disconnect from company.university.edu[111.111.11.11]
  6. Jul 18 08:25:22 company imapd: DISCONNECTED, user=user_name@domain.com, ip=[::ffff:111.111.11.11], headers=13, body=142579, rcvd=3289, sent=215892, time=79
  7.  
  8. #
  9. # Postfix MTA Manager Main Configuration File;
  10. #
  11. # Please do NOT edit this file manually;
  12. #
  13.  
  14. #
  15. # Postfix directory settings; These are critical for normal Postfix MTA functionallity;
  16. #
  17.  
  18. command_directory = /usr/sbin
  19. daemon_directory = /usr/lib/postfix
  20. program_directory = /usr/lib/postfix
  21.  
  22. #
  23. # Some common configuration parameters;
  24. #
  25.  
  26. inet_interfaces = all
  27. mynetworks = 127.0.0.0/8
  28. mynetworks_style = host
  29.  
  30. myhostname = mail.domain.com
  31. mydomain = domain.com
  32. myorigin = $mydomain
  33.  
  34. smtpd_banner = $myhostname ESMTP 2.4.7.1 (Debian/GNU)
  35. setgid_group = postdrop
  36.  
  37. #
  38. # Receiving messages parameters;
  39. #
  40.  
  41. mydestination = localhost, company
  42. append_dot_mydomain = no
  43. append_at_myorigin = yes
  44. transport_maps = mysql:/etc/postfix/transport.cf
  45.  
  46. #
  47. # Delivering local messages parameters;
  48. #
  49.  
  50. mail_spool_directory = /var/spool/mail
  51. mailbox_size_limit = 0
  52. mailbox_command = procmail -a "$EXTENSION"
  53.  
  54. biff = no
  55.  
  56. alias_database = hash:/etc/aliases
  57.  
  58. local_recipient_maps =
  59.  
  60. #
  61. # Delivering virtual messages parameters;
  62. #
  63. virtual_mailbox_maps=mysql:/etc/postfix/mysql_virt.cf
  64. virtual_uid_maps=mysql:/etc/postfix/uids.cf
  65. virtual_gid_maps=mysql:/etc/postfix/gids.cf
  66. virtual_mailbox_base=/usr/local/virtual
  67. virtual_maps=mysql:/etc/postfix/virtual.cf
  68. virtual_mailbox_domains=mysql:/etc/postfix/virtual_domains.cf
  69.  
  70.  
  71. #
  72. # SASL paramters;
  73. #
  74. smtp_use_tls = yes
  75. smtpd_use_tls = yes
  76. smtpd_tls_auth_only = yes
  77. smtpd_tls_loglevel = 1
  78. smtpd_tls_received_header = yes
  79. smtpd_tls_session_cache_timeout = 3600s
  80.  
  81. smtp_tls_CAfile = /etc/postfix/ssl/smptd.pem
  82. smtp_tls_cert_file = /etc/postfix/ssl/smptd.crt
  83. smtp_tls_key_file = /etc/postfix/ssl/smptd.key
  84.  
  85. smtpd_tls_CAfile = /etc/postfix/ssl/smptd.pem
  86. smtpd_tls_cert_file = /etc/postfix/ssl/smptd.crt
  87. smtpd_tls_key_file = /etc/postfix/ssl/smptd.key
  88.  
  89. smtpd_sasl_auth_enable = yes
  90.  
  91. smtpd_sasl_security_options = noanonymous
  92.  
  93. smtpd_sasl_local_domain =
  94.  
  95. broken_sasl_auth_clients = yes
  96.  
  97. smtpd_sender_restrictions =
  98. permit_sasl_authenticated
  99. permit_mynetworks
  100.  
  101. smtpd_recipient_restrictions =
  102. permit_sasl_authenticated
  103. check_recipient_access hash:/etc/postfix/filtered_domains
  104. permit_mynetworks
  105. reject_unauth_destination
  106.  
  107. smtpd_recipient_restrictions =
  108. permit_sasl_authenticated
  109. check_recipient_access hash:/etc/postfix/filtered_domains
  110. permit_mynetworks
  111. reject_unauth_destination
  112.  
  113. permit_sasl_authenticated
  114.  
  115. check_recipient_access
  116.  
  117. permit_mynetworks
  118.  
  119. smtpd_use_tls = no
  120.  
  121. mynetworks = 192.168.1.0/24 127.0.0.0/8
  122.  
  123. mydestinations = $mydomain, $myhostname, localhost, localhost.localdomain
  124.  
  125. relay_domains = $mydomain
  126.  
  127. #/etc/postfix/main.cf
  128. mydomain = server1.domain.com
  129. myhostname = $mydomain
  130. virtual_alias_maps = hash:/etc/postfix/virtual
  131. alias_database = hash:/etc/postfix/virtual
  132. myorigin = /etc/mailname
  133. mydestination = localhost.localdomain localhost $mydomain
  134. relayhost =
  135. mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
  136. mailbox_size_limit = 0
  137. recipient_delimiter = +
  138. inet_interfaces = all
  139.  
  140. sudo service networking restart
  141.  
  142. sudo service postfix reload
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement