Postfix sasl

Salut la foule.

j’essais de configurer postfix mais j’ai un peu de mal.

Actuellement j’essais de mettre le support SASL mais en vain :frowning:

Voici mon fichier main.cf

[code]# See /usr/share/postfix/main.cf.dist for a commented, more complete version

Debian specific: Specifying a file name will cause the first

line of that file to be used as the name. The Debian default

is /etc/mailname.

#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

appending .domain is the MUA’s job.

append_dot_mydomain = no

Uncomment the next line to generate “delayed mail” warnings

#delay_warning_time = 4h

readme_directory = no

TLS parameters

smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
smtpd_recipient_limit = 100
smtpd_helo_restrictions = reject_invalid_hostname
smtpd_sender_restrictions = reject_unknown_address
smtpd_recipient_restrictions = permit_sasl_authenticated,
permit_mynetworks,
reject_unauth_destination,
reject_unknown_sender_domain,
reject_unknown_client,
reject_rbl_client zen.spamhaus.org,
reject_rbl_client bl.spamcop.net,
reject_rbl_client cbl.abuseat.org,
permit

#sasl
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes

smtpd_sasl_type = cyrus

See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for

information on enabling SSL in the smtp client.

myhostname = squeeze.lifala.org
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = lifala.org, squeeze.lifala.org, localhost.lifala.org, localhost
relayhost =
mynetworks = 127.0.0.0/8, 192.168.0.5
#mailbox_command = procmail -a "$EXTENSION"
home_mailbox = Maildir/
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
[/code]

J’ai créer un fichier dans /etc/postfix/sasl/smtpd.conf qui contient :

pwcheck_method: saslauthd mech_list: plain login

Quand j’essais d’envoyer un mail avec mon smtp il me demande un mot de passe pour l’authentification mais le mot de passe “user” ne fonctionne pas.

Je ne sais pas trop ou chercher la source de ce probleme.

Dans les logs j’ai :

SASL LOGIN authentication failed: authentication failure

Merci d’avance pour votre aide.

As-tu essayé le tuto sur notre wiki ? C’est celui que j’ai suivi, le SASL marche nickel avec ces instructions.
wiki.debian-fr.org/

Salut merci de ta réponse syam

J’ai regarder aussi les tutos du wiki mais j’ai toujours ce problème de mot de passe.

le boitier est defecteux en faite.