Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
586
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.02 KB | None | 0 0
  1. PROBLEM : sasl authentication for this user doesn t work . All the others usernames work. Maybe for the @ in the username ? I used useradd info-re-artu.it then edited /etc/passw and /etc/shadow changing the - with @
  2. testsaslauthd works.
  3.  
  4. postconf -n
  5.  
  6. [root@lnx01 info-re-artu.it]# postconf -n | grep sasl
  7. broken_sasl_auth_clients = yes
  8. smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_rbl_client bl.spamcop.net
  9. smtpd_sasl_auth_enable = yes
  10. smtpd_sasl_authenticated_header = yes
  11. [root@lnx01 info-re-artu.it]# postconf -n
  12. alias_database = hash:/etc/aliases
  13. alias_maps = hash:/etc/aliases
  14. bounce_template_file = /etc/postfix/bounce.cf
  15. broken_sasl_auth_clients = yes
  16. command_directory = /usr/sbin
  17. compatibility_level = 2
  18. daemon_directory = /usr/libexec/postfix
  19. data_directory = /var/lib/postfix
  20. debug_peer_level = 2
  21. debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin xxgdb $daemon_directory/$process_name $process_id & sleep 5
  22. default_process_limit = 100
  23. home_mailbox = Maildir/
  24. html_directory = no
  25. inet_interfaces = all
  26. inet_protocols = all
  27. local_destination_concurrency_limit = 2
  28. local_destination_recipient_limit = 1
  29. mail_owner = postfix
  30. mailbox_size_limit = 1024000000
  31. mailq_path = /usr/bin/mailq
  32. manpage_directory = /usr/local/man
  33. message_size_limit = 102400000
  34. meta_directory = /etc/postfix
  35. mydestination = lnx01.sntinformatica.it, localhost, localhost.localdomain
  36. mydomain = sntinformatica.it
  37. myhostname = lnx01.sntinformatica.it
  38. mynetworks = 185.53.70.197/32, 127.0.0.0/8, [::1]/128
  39. newaliases_path = /usr/bin/newaliases
  40. proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
  41. queue_directory = /var/spool/postfix
  42. readme_directory = no
  43. sample_directory = /etc/postfix
  44. sendmail_path = /usr/sbin/sendmail
  45. setgid_group = postdrop
  46. shlib_directory = no
  47. smtp_send_xforward_command = yes
  48. smtpd_authorized_xforward_hosts = 127.0.0.0/8
  49. smtpd_banner = $myhostname ESMTP
  50. smtpd_client_restrictions = check_client_access hash:/etc/postfix/rbl_override, permit
  51. smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_rbl_client bl.spamcop.net
  52. smtpd_sasl_auth_enable = yes
  53. smtpd_sasl_authenticated_header = yes
  54. smtpd_sender_login_maps = hash:/etc/postfix/sender_access
  55. smtpd_tls_cert_file = /etc/postfix/smtpd.cert
  56. smtpd_tls_key_file = /etc/postfix/smtpd.key
  57. spamfilter_destination_recipient_limit = 1
  58. transport_maps = hash:/etc/postfix/virtual_transports
  59. unknown_local_recipient_reject_code = 550
  60. virtual_alias_maps = hash:/etc/postfix/virtual_forwardings, hash:/etc/postfix/virtual_email2email
  61. virtual_gid_maps = static:5000
  62. virtual_mailbox_base = /home/vmail
  63. virtual_mailbox_domains = hash:/etc/postfix/virtual_domains
  64. virtual_mailbox_limit = 1024000000
  65. virtual_mailbox_limit_maps = hash:/etc/postfix/virtual_email2email
  66. virtual_uid_maps = static:5000
  67.  
  68.  
  69. ===============================================================================================================================
  70.  
  71. MAILLOG
  72.  
  73.  
  74. Jul 20 12:27:58 lnx01 postfix/smtpd[6189]: > host54-26-static.93-94-b.business.telecomitalia.it[94.93.26.54]: 220 lnx01.sntinformatica.it ESMTP
  75. Jul 20 12:27:58 lnx01 postfix/smtpd[6189]: xsasl_cyrus_server_create: SASL service=smtp, realm=(null)
  76. Jul 20 12:27:58 lnx01 postfix/smtpd[6189]: name_mask: noanonymous
  77. Jul 20 12:27:59 lnx01 postfix/smtpd[6189]: < host54-26-static.93-94-b.business.telecomitalia.it[94.93.26.54]: EHLO ROBY10
  78. Jul 20 12:27:59 lnx01 postfix/smtpd[6189]: match_list_match: host54-26-static.93-94-b.business.telecomitalia.it: no match
  79. Jul 20 12:27:59 lnx01 postfix/smtpd[6189]: match_list_match: 94.93.26.54: no match
  80. Jul 20 12:27:59 lnx01 postfix/smtpd[6189]: > host54-26-static.93-94-b.business.telecomitalia.it[94.93.26.54]: 250-lnx01.sntinformatica.it
  81. Jul 20 12:27:59 lnx01 postfix/smtpd[6189]: > host54-26-static.93-94-b.business.telecomitalia.it[94.93.26.54]: 250-PIPELINING
  82. Jul 20 12:27:59 lnx01 postfix/smtpd[6189]: > host54-26-static.93-94-b.business.telecomitalia.it[94.93.26.54]: 250-SIZE 102400000
  83. Jul 20 12:27:59 lnx01 postfix/smtpd[6189]: > host54-26-static.93-94-b.business.telecomitalia.it[94.93.26.54]: 250-VRFY
  84. Jul 20 12:27:59 lnx01 postfix/smtpd[6189]: > host54-26-static.93-94-b.business.telecomitalia.it[94.93.26.54]: 250-ETRN
  85. Jul 20 12:27:59 lnx01 postfix/smtpd[6189]: > host54-26-static.93-94-b.business.telecomitalia.it[94.93.26.54]: 250-AUTH PLAIN LOGIN
  86. Jul 20 12:27:59 lnx01 postfix/smtpd[6189]: > host54-26-static.93-94-b.business.telecomitalia.it[94.93.26.54]: 250-AUTH=PLAIN LOGIN
  87. Jul 20 12:27:59 lnx01 postfix/smtpd[6189]: > host54-26-static.93-94-b.business.telecomitalia.it[94.93.26.54]: 250-ENHANCEDSTATUSCODES
  88. Jul 20 12:27:59 lnx01 postfix/smtpd[6189]: > host54-26-static.93-94-b.business.telecomitalia.it[94.93.26.54]: 250-8BITMIME
  89. Jul 20 12:27:59 lnx01 postfix/smtpd[6189]: > host54-26-static.93-94-b.business.telecomitalia.it[94.93.26.54]: 250-DSN
  90. Jul 20 12:27:59 lnx01 postfix/smtpd[6189]: > host54-26-static.93-94-b.business.telecomitalia.it[94.93.26.54]: 250 SMTPUTF8
  91. Jul 20 12:27:59 lnx01 postfix/smtpd[6189]: < host54-26-static.93-94-b.business.telecomitalia.it[94.93.26.54]: AUTH LOGIN
  92. Jul 20 12:27:59 lnx01 postfix/smtpd[6189]: xsasl_cyrus_server_first: sasl_method LOGIN
  93. Jul 20 12:27:59 lnx01 postfix/smtpd[6189]: xsasl_cyrus_server_auth_response: uncoded server challenge: Username:
  94. Jul 20 12:27:59 lnx01 postfix/smtpd[6189]: > host54-26-static.93-94-b.business.telecomitalia.it[94.93.26.54]: 334 VXNlcm5hbWU6
  95. Jul 20 12:27:59 lnx01 postfix/smtpd[6189]: < host54-26-static.93-94-b.business.telecomitalia.it[94.93.26.54]: aW5mb0ByZS1hcnR1Lml0
  96. Jul 20 12:27:59 lnx01 postfix/smtpd[6189]: xsasl_cyrus_server_next: decoded response: info@re-artu.it
  97. Jul 20 12:27:59 lnx01 postfix/smtpd[6189]: xsasl_cyrus_server_auth_response: uncoded server challenge: Password:
  98. Jul 20 12:27:59 lnx01 postfix/smtpd[6189]: > host54-26-static.93-94-b.business.telecomitalia.it[94.93.26.54]: 334 UGFzc3dvcmQ6
  99. Jul 20 12:27:59 lnx01 postfix/smtpd[6189]: < host54-26-static.93-94-b.business.telecomitalia.it[94.93.26.54]: MzNCaGJ1VjdBUzl4RUM/eQ==
  100. Jul 20 12:27:59 lnx01 postfix/smtpd[6189]: xsasl_cyrus_server_next: decoded response: XXXXXXXXXXXXXXXXXX
  101. Jul 20 12:27:59 lnx01 postfix/smtpd[6189]: warning: host54-26-static.93-94-b.business.telecomitalia.it[94.93.26.54]: SASL LOGIN authentication failed: authentication failure
  102. Jul 20 12:27:59 lnx01 postfix/smtpd[6189]: > host54-26-static.93-94-b.business.telecomitalia.it[94.93.26.54]: 535 5.7.8 Error: authentication failed: authentication failure
  103. Jul 20 12:27:59 lnx01 postfix/smtpd[6189]: smtp_get: EOF
  104. Jul 20 12:27:59 lnx01 postfix/smtpd[6189]: match_hostname: smtpd_client_event_limit_exceptions: host54-26-static.93-94-b.business.telecomitalia.it ~? 185.53.70.197/32
  105. Jul 20 12:27:59 lnx01 postfix/smtpd[6189]: match_hostaddr: smtpd_client_event_limit_exceptions: 94.93.26.54 ~? 185.53.70.197/32
  106. Jul 20 12:27:59 lnx01 postfix/smtpd[6189]: match_hostname: smtpd_client_event_limit_exceptions: host54-26-static.93-94-b.business.telecomitalia.it ~? 127.0.0.0/8
  107. Jul 20 12:27:59 lnx01 postfix/smtpd[6189]: match_hostaddr: smtpd_client_event_limit_exceptions: 94.93.26.54 ~? 127.0.0.0/8
  108. Jul 20 12:27:59 lnx01 postfix/smtpd[6189]: match_hostname: smtpd_client_event_limit_exceptions: host54-26-static.93-94-b.business.telecomitalia.it ~? [::1]/128
  109. Jul 20 12:27:59 lnx01 postfix/smtpd[6189]: match_hostaddr: smtpd_client_event_limit_exceptions: 94.93.26.54 ~? [::1]/128
  110. Jul 20 12:27:59 lnx01 postfix/smtpd[6189]: match_list_match: host54-26-static.93-94-b.business.telecomitalia.it: no match
  111.  
  112. =========================================================================================================================
  113.  
  114. [root@lnx01 info-re-artu.it]# testsaslauthd -u info@re-artu.it -p XXXXXXXXXXXXXXXXXXXXX
  115. 0: OK "Success."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement