[Résolu] Postfix + SASL

Postfix + SASL [Résolu] - réseaux et sécurité - Linux et OS Alternatifs

Marsh Posté le 30-10-2015 à 12:00:26    

Bonjour,
 
Je ne comprend pas ce que j'ai raté dans la configuration SASL pour avoir cette ligne dans les logs... :
 

Code :
  1. SASL CRAM-MD5 authentication failed: no mechanism available


 
/etc/sasl2/smtpd.conf

Code :
  1. pwcheck_method: saslauthd
  2. mech_list: plain login


 
/etc/sysconfig/saslauthd

Code :
  1. # Directory in which to place saslauthd's listening socket, pid file, and so
  2. # on.  This directory must already exist.
  3. SOCKETDIR=/var/run/saslauthd
  4. # Mechanism to use when checking passwords.  Run "saslauthd -v" to get a list
  5. # of which mechanism your installation was compiled with the ablity to use.
  6. MECH=ldap
  7. # Options sent to the saslauthd. If the MECH is other than "pam" uncomment the next line.
  8. # DAEMONOPTS=--user saslauth
  9. # Additional flags to pass to saslauthd on the command line.  See saslauthd(8)
  10. # for the list of accepted flags.
  11. FLAGS=


 
main.cf

Code :
  1. ######################################################
  2. ## Definition des parametres de chiffrement via TLS ##
  3. ######################################################
  4. # Smtp ( OUTGOING )
  5. smtp_tls_loglevel            = 1
  6. smtp_tls_security_level      = may
  7. smtp_tls_CAfile              = /configuration/ssl/DigiCertCA.crt
  8. smtp_tls_protocols           = !SSLv2, !SSLv3, TLSv1
  9. smtp_tls_mandatory_protocols = !SSLv2, !SSLv3, TLSv1
  10. smtp_tls_mandatory_ciphers   = high
  11. smtp_tls_exclude_ciphers     = aNULL, eNULL, EXPORT, DES, RC4, MD5, PSK, aECDH, EDH-DSS-DES-CBC3-SHA, EDH-RSA-DES-CDC3-SHA, KRB5-DE5, CBC3-SHA
  12. # ---------------------------------------------------------------------------------------------------
  13. # Smtpd ( INCOMING )
  14. smtpd_tls_loglevel            = 1
  15. smtpd_use_tls                 = yes
  16. smtpd_tls_security_level      = may
  17. smtpd_tls_received_header     = yes
  18. smtpd_tls_protocols           = !SSLv2, !SSLv3, TLSv1
  19. smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3, TLSv1
  20. smtpd_tls_mandatory_ciphers   = high
  21. smtpd_tls_exclude_ciphers     = aNULL, eNULL, EXPORT, DES, RC4, MD5, PSK, aECDH, EDH-DSS-DES-CBC3-SHA, EDH-RSA-DES-CDC3-SHA, KRB5-DE5, CBC3-SHA
  22. smtpd_tls_CAfile              = /configuration/ssl/DigiCertCA.crt
  23. smtpd_tls_cert_file           = /configuration/ssl/smtp.mondomaine.fr.crt
  24. smtpd_tls_key_file            = /configuration/ssl/smtp.mondomaine.fr.nopass.key
  25. smtpd_tls_eecdh_grade         = ultra
  26. tls_eecdh_strong_curve = prime256v1
  27. tls_eecdh_ultra_curve  = secp521r1
  28. tls_preempt_cipherlist = yes
  29. tls_random_source      = dev:/dev/urandom
  30. smtp_tls_session_cache_database  = btree:${data_directory}/smtp_scache
  31. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  32. lmtp_tls_session_cache_database  = btree:${data_directory}/lmtp_scache
  33. smtpd_tls_session_cache_timeout = 3600s
  34. ##################################
  35. ## Parametres de connexion SASL ##
  36. ##################################
  37. smtpd_sasl_auth_enable          = yes
  38. smtpd_sasl_path                 = smtpd
  39. smtpd_sasl_security_options     = noanonymous
  40. smtpd_sasl_tls_security_options = $smtpd_sasl_security_options
  41. smtpd_sasl_local_domain         = $mydomain
  42. smtpd_sasl_authenticated_header = no
  43. broken_sasl_auth_clients = yes


 
 
Merci d'avance pour votre aide ! :)


Message édité par K-ny13 le 12-11-2015 à 15:56:08
Reply

Marsh Posté le 30-10-2015 à 12:00:26   

Reply

Marsh Posté le 09-11-2015 à 16:54:50    

Je suis pas sur mais dans smtpd.conf met les mechanisme en majuscules (PLAIN LOGIN).


---------------
sheep++
Reply

Marsh Posté le 12-11-2015 à 15:55:17    

Bonjour h3bus,
 
Ça a l'air de fonctionner. Merci !

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed