[Postfix - Dovecot] mauvaise authentification

Applications, problèmes de configuration réseau
tonio_31
Hankyu
Messages : 24
Inscription : jeu. 28 juil. 2016, 21:39

[Postfix - Dovecot] mauvaise authentification

Message par tonio_31 »

Hello,

J'ai installé une solution postfix / dovecot. J'envoie bien des mails et je souhaite en recevoir sur mon pc ou mon téléphone.
Hors quand j'essaie de paramétrer sur mon appli mail :
user : tonio@toniozz75.fr
mdp : *****
Entrant : imap.toniozz75.fr
Sortant : smtp.toniozz75.fr
Cela échoue et j'ai dans journalctl :

Code : Tout sélectionner

févr. 15 23:18:21 tonio-server postfix/smtpd[14966]: connect from bbox.lan[192.168.1.254]
févr. 15 23:18:21 tonio-server postfix/smtpd[14966]: disconnect from bbox.lan[192.168.1.254] ehlo=1 quit=1 commands=2
févr. 15 23:18:21 tonio-server postfix/smtpd[14979]: connect from bbox.lan[192.168.1.254]
févr. 15 23:18:21 tonio-server auth[15013]: pam_unix(dovecot:auth): check pass; user unknown
févr. 15 23:18:21 tonio-server auth[15013]: pam_unix(dovecot:auth): authentication failure; logname= uid=0 euid=0 tty=dovecot ruser=tonio@toniozz75.fr rhost=192.168.1.2
févr. 15 23:18:25 tonio-server postfix/smtpd[14979]: warning: bbox.lan[192.168.1.254]: SASL PLAIN authentication failed:
févr. 15 23:18:29 tonio-server auth[15013]: pam_unix(dovecot:auth): check pass; user unknown
févr. 15 23:18:29 tonio-server auth[15013]: pam_unix(dovecot:auth): authentication failure; logname= uid=0 euid=0 tty=dovecot ruser=tonio@toniozz75.fr rhost=192.168.1.2
févr. 15 23:18:32 tonio-server postfix/smtpd[14979]: warning: bbox.lan[192.168.1.254]: SASL PLAIN authentication failed:
févr. 15 23:18:36 tonio-server postfix/smtpd[14979]: disconnect from bbox.lan[192.168.1.254] ehlo=1 auth=1/3 quit=1 commands=3/5
Je suis sur une authentification via PAM.

Dovecot -n :

Code : Tout sélectionner

passdb {
  driver = pam
}
service auth {
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0666
    user = postfix
  }
}
service imap-login {
  inet_listener imap {
    port = 143
  }
}
service pop3-login {
  inet_listener pop3 {
    port = 110
  }
}
ssl = no
userdb {
  driver = passwd
}

Et mon postconf -n :

Code : Tout sélectionner

alias_database = $alias_maps
alias_maps = hash:/etc/postfix/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/bin
compatibility_level = 2
daemon_directory = /usr/lib/postfix/bin
data_directory = /var/lib/postfix
debug_peer_level = 2
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5
home_mailbox = Maildir/
html_directory = no
inet_protocols = ipv4
mail_owner = postfix
mailbox_size_limit = 51200000
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
message_size_limit = 10240000
meta_directory = /etc/postfix
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydomain = toniozz75.fr
myhostname = smtp.toniozz75.fr
mynetworks_style = host
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix
relay_domains =
sample_directory = /etc/postfix
sendmail_path = /usr/bin/sendmail
setgid_group = postdrop
shlib_directory = /usr/lib/postfix
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated
smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
unknown_local_recipient_reject_code = 550
Voilà si quelqu'un a une idée.

Antoine
tonio_31
Hankyu
Messages : 24
Inscription : jeu. 28 juil. 2016, 21:39

Re: [Postfix - Dovecot] mauvaise authentification

Message par tonio_31 »

Bonsoir,

J'ajoute que la configuration avec SASL de Postfix fonctionne bien. J'ai pu faire un telnet pour la tester.

Antoine
Répondre