Guest User

Untitled

a guest
Jun 22nd, 2018
612
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.65 KB | None | 0 0
  1. [root@..... ~]# cat /etc/postfix/main.cf | grep -v "^#"
  2.  
  3.  
  4. queue_directory = /var/spool/postfix
  5.  
  6. command_directory = /usr/sbin
  7.  
  8. daemon_directory = /usr/libexec/postfix
  9.  
  10. data_directory = /var/lib/postfix
  11.  
  12. mail_owner = postfix
  13.  
  14. inet_interfaces = localhost
  15.  
  16. inet_protocols = all
  17.  
  18.  
  19. mydestination = $myhostname, localhost.$mydomain, localhost, paolo9785.com
  20.  
  21.  
  22. unknown_local_recipient_reject_code = 550
  23.  
  24.  
  25. alias_maps = hash:/etc/aliases
  26.  
  27. alias_database = hash:/etc/aliases
  28.  
  29. debug_peer_level = 2
  30.  
  31.  
  32. debugger_command =
  33. PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
  34. ddd $daemon_directory/$process_name $process_id & sleep 5
  35.  
  36.  
  37. sendmail_path = /usr/sbin/sendmail.postfix
  38.  
  39. newaliases_path = /usr/bin/newaliases.postfix
  40.  
  41. mailq_path = /usr/bin/mailq.postfix
  42.  
  43. setgid_group = postdrop
  44.  
  45. html_directory = no
  46.  
  47. manpage_directory = /usr/share/man
  48.  
  49. sample_directory = /usr/share/doc/postfix-2.10.1/samples
  50.  
  51. readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES
  52.  
  53. virtual_alias_domains = hash:/etc/postfix/virtual_domains
  54.  
  55. smtpd_sasl_auth_enable = yes
  56. smtpd_sasl_security_options = noanonymous
  57. smtpd_sasl_local_domain = $myhostname
  58. broken_sasl_auth_clients = yes
  59. smtpd_recipient_restrictions =
  60. permit_sasl_authenticated,
  61. permit_mynetworks,
  62. check_relay_domains
  63.  
  64. smtpd_milters = inet:127.0.0.1:8891
  65. non_smtpd_milters = $smtpd_milters
  66. milter_default_action = accept
  67.  
  68. [root@..... ~]# cat /etc/postfix/master.cf | grep -v "^#"
  69. smtp inet n - n - - smtpd
  70. pickup unix n - n 60 1 pickup
  71. cleanup unix n - n - 0 cleanup
  72. qmgr unix n - n 300 1 qmgr
  73. tlsmgr unix - - n 1000? 1 tlsmgr
  74. rewrite unix - - n - - trivial-rewrite
  75. bounce unix - - n - 0 bounce
  76. defer unix - - n - 0 bounce
  77. trace unix - - n - 0 bounce
  78. verify unix - - n - 1 verify
  79. flush unix n - n 1000? 0 flush
  80. proxymap unix - - n - - proxymap
  81. proxywrite unix - - n - 1 proxymap
  82. smtp unix - - n - - smtp
  83. relay unix - - n - - smtp
  84. showq unix n - n - - showq
  85. error unix - - n - - error
  86. retry unix - - n - - error
  87. discard unix - - n - - discard
  88. local unix - n n - - local
  89. virtual unix - n n - - virtual
  90. lmtp unix - - n - - lmtp
  91. anvil unix - - n - 1 anvil
  92. scache unix - - n - 1 scache
  93.  
  94. policy unix - n n - 0 spawn user=nobody argv=/bin/python /usr/libexec/postfix/policyd-spf
  95.  
  96. [root@vps258570 ~]# firewall-cmd --list-all
  97. public (active)
  98. target: default
  99. icmp-block-inversion: no
  100. interfaces: eth0
  101. sources:
  102. services: ftp http pop3s smtp ssh https dhcpv6-client imaps
  103. ports: 110/tcp 465/tcp 10090-10100/tcp 25/tcp 587/tcp 143/tcp 21/tcp 3306/tcp 9000/tcp 993/tcp
  104. protocols:
  105. masquerade: no
  106. forward-ports:
  107. source-ports:
  108. icmp-blocks:
  109. rich rules:
  110.  
  111. cat /etc/postfix/mysql-virtual_forwardings.cf
  112. user = mail_admin
  113. password = ******************
  114. dbname = mail
  115. query = SELECT destination FROM forwardings WHERE source='%s'
  116. hosts = 127.0.0.1
  117.  
  118. cat /etc/postfix/mysql-virtual_email2email.cf
  119. user = mail_admin
  120. password = **********
  121. dbname = mail
  122. query = SELECT email FROM users WHERE email='%s'
  123. hosts = 127.0.0.1
  124.  
  125. cat /etc/postfix/mysql-virtual_domains.cf
  126. user = mail_admin
  127. password = **********
  128. dbname = mail
  129. query = SELECT domain AS virtual FROM domains WHERE domain='%s'
  130. hosts = 127.0.0.1
  131.  
  132. cat /etc/postfix/mysql-virtual_mailboxes.cf
  133. user = mail_admin
  134. password = ****************
  135. dbname = mail
  136. query = SELECT CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/') FROM users WHERE email='%s'
  137. hosts = 127.0.0.1
  138.  
  139. Jun 22 12:31:12 vps258570 postfix/smtpd[12250]: connect from mail-oi0-f50.google.com[------]
  140. Jun 22 12:31:12 vps258570 postfix/trivial-rewrite[12254]: warning: do not list domain paolo9785.com in BOTH mydestination and virtual_alias_domains
  141. Jun 22 12:31:12 vps258570 postfix/smtpd[12250]: NOQUEUE: reject: RCPT from mail-oi0-f50.google.com[-----]: 550 5.1.1 <sal@paolo9785.com>: Recipient address rejected: User unknown in local recipient table; from=<paolo9785@gmail.com> to=<sal@paolo9785.com> proto=ESMTP helo=<mail-oi0-f50.google.com>
  142. Jun 22 12:31:12 vps258570 postfix/smtpd[12250]: disconnect from mail-oi0-f50.google.com[-------]
  143.  
  144. Jun 22 12:40:12 ----------- postfix/smtpd[12331]: connect from mail-oi0-f65.google.com[-----------]
  145. Jun 22 12:40:13 ----------- postfix/trivial-rewrite[12335]: warning: do not list domain paolo9785.com in BOTH mydestination and virtual_alias_domains
  146. Jun 22 12:40:13 ----------- postfix/smtpd[12331]: warning: support for restriction "check_relay_domains" will be removed from Postfix; use "reject_unauth_destination" instead
  147. Jun 22 12:40:13 ----------- postfix/smtpd[12331]: 1B42E2477: client=mail-oi0-f65.google.com[-----------]
  148. Jun 22 12:40:13 ----------- postfix/cleanup[12336]: 1B42E2477: message-id=<CAMPevOntYfFn76uihBhfvahFJi0HZqm3+PKhtzr-nfp+7gi_DQ@mail.gmail.com>
  149. Jun 22 12:40:13 ----------- opendkim[888]: 1B42E2477: mail-oi0-f65.google.com [-----------] not internal
  150. Jun 22 12:40:13 ----------- opendkim[888]: 1B42E2477: not authenticated
  151. Jun 22 12:40:13 ----------- opendkim[888]: 1B42E2477: DKIM verification successful
  152. Jun 22 12:40:13 ----------- postfix/qmgr[12237]: 1B42E2477: from=<-----------@gmail.com>, size=2536, nrcpt=1 (queue active)
  153. Jun 22 12:40:13 ----------- postfix/trivial-rewrite[12335]: warning: do not list domain paolo9785.com in BOTH mydestination and virtual_alias_domains
  154. Jun 22 12:40:13 ----------- postfix/local[12337]: 1B42E2477: to=<postmaster@paolo9785.com>, orig_to=<info@paolo9785.com>, relay=local, delay=0.23, delays=0.18/0.02/0/0.03, dsn=5.4.6, status=bounced (alias database loop for postmaster)
  155. Jun 22 12:40:13 ----------- postfix/cleanup[12336]: 511A9DFB: message-id=<20180622104013.511A9DFB@-----------.ovh.net>
  156. Jun 22 12:40:13 ----------- postfix/qmgr[12237]: 511A9DFB: from=<>, size=4516, nrcpt=1 (queue active)
  157. Jun 22 12:40:13 ----------- postfix/bounce[12338]: 1B42E2477: sender non-delivery notification: 511A9DFB
  158. Jun 22 12:40:13 ----------- postfix/qmgr[12237]: 1B42E2477: removed
  159. Jun 22 12:40:13 ----------- postfix/smtpd[12331]: disconnect from mail-oi0-f65.google.com[-----------]
  160. Jun 22 12:40:13 ----------- postfix/smtp[12339]: 511A9DFB: host gmail-smtp-in.l.google.com[108.177.15.27] said: 421-4.7.0 This message does not have authentication information or fails to pass 421-4.7.0 authentication checks. To best protect our users from spam, the 421-4.7.0 message has been blocked. Please visit 421-4.7.0 https://support.google.com/mail/answer/81126#authentication for more 421 4.7.0 information. f18-v6si7346729wre.357 - gsmtp (in reply to end of DATA command)
  161. Jun 22 12:40:13 ----------- postfix/smtp[12339]: connect to gmail-smtp-in.l.google.com[2a00:1450:400c:c09::1a]:25: Network is unreachable
  162. Jun 22 12:40:13 ----------- postfix/smtp[12339]: connect to alt1.gmail-smtp-in.l.google.com[2a00:1450:4010:c08::1b]:25: Network is unreachable
  163. Jun 22 12:40:14 ----------- postfix/smtp[12339]: 511A9DFB: to=<-----------@gmail.com>, relay=alt1.gmail-smtp-in.l.google.com[64.233.165.27]:25, delay=1.1, delays=0/0.01/0.67/0.45, dsn=4.7.0, status=deferred (host alt1.gmail-smtp-in.l.google.com[64.233.165.27] said: 421-4.7.0 This message does not have authentication information or fails to pass 421-4.7.0 authentication checks. To best protect our users from spam, the 421-4.7.0 message has been blocked. Please visit 421-4.7.0 https://support.google.com/mail/answer/81126#authentication for more 421 4.7.0 information. p186-v6si2956365lfp.402 - gsmtp (in reply to end of DATA command))
  164. Jun 22 12:40:37 ----------- postfix/smtpd[12331]: connect from mail-oi0-f42.google.com[-----------]
  165. Jun 22 12:40:37 ----------- postfix/smtpd[12331]: 6604E24A6: client=mail-oi0-f42.google.com[-----------]
  166. Jun 22 12:40:37 ----------- postfix/cleanup[12336]: 6604E24A6: message-id=<CAMPevOkhjCUZ8_7vzC26w-ryWV3s6NNtGrPjUik1vYV0bM-CAA@mail.gmail.com>
  167. Jun 22 12:40:37 ----------- opendkim[888]: 6604E24A6: mail-oi0-f42.google.com [-----------] not internal
  168. Jun 22 12:40:37 ----------- opendkim[888]: 6604E24A6: not authenticated
  169. Jun 22 12:40:37 ----------- opendkim[888]: 6604E24A6: DKIM verification successful
  170. Jun 22 12:40:37 ----------- postfix/qmgr[12237]: 6604E24A6: from=<-----------@gmail.com>, size=3274, nrcpt=1 (queue active)
  171. Jun 22 12:40:37 ----------- postfix/trivial-rewrite[12335]: warning: do not list domain paolo9785.com in BOTH mydestination and virtual_alias_domains
  172. Jun 22 12:40:37 ----------- postfix/local[12337]: 6604E24A6: to=<postmaster@paolo9785.com>, orig_to=<info@paolo9785.com>, relay=local, delay=0.19, delays=0.17/0/0/0.02, dsn=5.4.6, status=bounced (alias database loop for postmaster)
  173. Jun 22 12:40:37 ----------- postfix/cleanup[12336]: 9484424A7: message-id=<20180622104037.9484424A7@-----------.ovh.net>
  174. Jun 22 12:40:37 ----------- postfix/qmgr[12237]: 9484424A7: from=<>, size=5256, nrcpt=1 (queue active)
  175. Jun 22 12:40:37 ----------- postfix/bounce[12338]: 6604E24A6: sender non-delivery notification: 9484424A7
  176. Jun 22 12:40:37 ----------- postfix/qmgr[12237]: 6604E24A6: removed
  177. Jun 22 12:40:37 ----------- postfix/smtpd[12331]: disconnect from mail-oi0-f42.google.com[-----------]
  178. Jun 22 12:40:38 ----------- postfix/smtp[12339]: 9484424A7: to=<-----------@gmail.com>, relay=gmail-smtp-in.l.google.com[-----------]:25, delay=0.49, delays=0/0/0.2/0.28, dsn=2.0.0, status=sent (250 2.0.0 OK 1529664038 q25-v6si480244wmq.203 - gsmtp)
  179. Jun 22 12:40:38 ----------- postfix/qmgr[12237]: 9484424A7: removed
  180. Jun 22 12:41:02 ----------- postfix/smtpd[12331]: connect from mail-ot0-f196.google.com[-----------]
  181. Jun 22 12:41:03 ----------- postfix/smtpd[12331]: 4CE822477: client=mail-ot0-f196.google.com[-----------]
  182. Jun 22 12:41:05 ----------- postfix/cleanup[12336]: 4CE822477: message-id=<CAMPevOmhuuiNDvzBHf25cCbokqWkJxiiNouXbWr7w=k74MtdAA@mail.gmail.com>
  183. Jun 22 12:41:05 ----------- opendkim[888]: 4CE822477: mail-ot0-f196.google.com [-----------] not internal
  184. Jun 22 12:41:05 ----------- opendkim[888]: 4CE822477: not authenticated
  185. Jun 22 12:41:05 ----------- opendkim[888]: 4CE822477: DKIM verification successful
  186. Jun 22 12:41:05 ----------- postfix/qmgr[12237]: 4CE822477: from=<-----------@gmail.com>, size=2553, nrcpt=1 (queue active)
  187.  
  188. Jun 22 12:41:05 ----------- postfix/local[12337]: 4CE822477: to=<postmaster@paolo9785.com>, orig_to=<info@paolo9785.com>, relay=local, delay=2.1, delays=2.1/0/0/0.02, dsn=5.4.6, status=bounced (alias database loop for postmaster)
  189. Jun 22 12:41:05 ----------- postfix/cleanup[12336]: 6388B24AD: message-id=<20180622104105.6388B24AD@-----------.ovh.net>
  190. Jun 22 12:41:05 ----------- postfix/qmgr[12237]: 6388B24AD: from=<>, size=4535, nrcpt=1 (queue active)
  191. Jun 22 12:41:05 ----------- postfix/bounce[12338]: 4CE822477: sender non-delivery notification: 6388B24AD
  192. Jun 22 12:41:05 ----------- postfix/qmgr[12237]: 4CE822477: removed
  193. Jun 22 12:41:05 ----------- postfix/smtpd[12331]: disconnect from mail-ot0-f196.google.com[-----------]
  194. Jun 22 12:41:05 ----------- postfix/smtp[12339]: 6388B24AD: to=<-----------@gmail.com>, relay=gmail-smtp-in.l.google.com[-----------]:25, delay=0.42, delays=0/0/0.14/0.27, dsn=2.0.0, status=sent (250 2.0.0 OK 1529664065 i62-v6si1280096wmf.142 - gsmtp)
  195. Jun 22 12:41:05 ----------- postfix/qmgr[12237]: 6388B24AD: removed
Add Comment
Please, Sign In to add comment