Erreur dovecot après install postfix

Bonjour

J’ai tenté d’installer postfix en suivant le tuto suivant : tutodidacte.com/debian-7-whe … x#forum351

ET j’ai des erreurs au redemarrrage de dovecot

Voici les errreurs

doveconf: Warning: NOTE: You can get a new clean config file with: doveconf -n > dovecot-new.conf
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:1: ‘imaps’ protocol is no longer necessary, remove it
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:1: ‘pop3s’ protocol is no longer necessary, remove it
doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf line 32: Unknown setting: socket
[…] Restarting IMAP/POP3 mail server: dovecotdoveconf: Warning: NOTE: You can get a new clean config file with: doveconf -n > dovecot-new.conf
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:1: ‘imaps’ protocol is no longer necessary, remove it
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:1: ‘pop3s’ protocol is no longer necessary, remove it
doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf line 32: Unknown setting: socket

Voici mon fichier dovecot.conf

[code]protocols = imap imaps pop3 pop3s
log_timestamp = "%Y-%m-%d %H:%M:%S "

mail_privileged_group = vmail
log_path = /var/log/dovecot

disable_plaintext_auth = no
auth_mechanisms = plain

mail_home = /home/vmail/%d/%u
mail_location = maildir:/home/vmail/%d/%n:INDEX=/home/vmail/%d/%n/indexes

protocol imap {
#ssl_listen = *:993
}

protocol pop3 {
}
protocol managesieve {
}
protocol lda {
postmaster_address = contact@mondomain.com
mail_plugin_dir = /usr/lib/dovecot/modules/lda
auth_socket_path = /var/run/dovecot/auth-master
}
auth default {
userdb sql {
args = /etc/dovecot/dovecot-mysql.conf
}
passdb sql {
args = /etc/dovecot/dovecot-mysql.conf
}
socket listen {
master {
path = /var/run/dovecot/auth-master
mode = 0600
user = vmail
}
client {
path = /var/spool/postfix/private/auth
mode = 0660
user = postfix
group = postfix
}
}
}
dict {
}
plugin {
}
ssl = yes
ssl_cert = </etc/dovecot/private/dovecot.pem
ssl_key = </etc/dovecot/dovecot.pem[/code]

Quelqu’un aurait une idée ?

Merci

J’ai réussi a réparer mes erreurs dovecot en désactivant ssl mais maintenant j’ai postfix qui 'indique une errreur SASL

Les erreurs dans les logs :

Sep 23 06:40:39 ns3001448 postfix/submission/smtpd[5796]: warning: SASL: Connect to private/auth failed: Connection refused Sep 23 06:40:39 ns3001448 postfix/submission/smtpd[5796]: fatal: no SASL authentication mechanisms Sep 23 06:40:40 ns3001448 postfix/submission/smtpd[5797]: warning: SASL: Connect to private/auth failed: Connection refused Sep 23 06:40:40 ns3001448 postfix/submission/smtpd[5797]: fatal: no SASL authentication mechanisms Sep 23 06:40:40 ns3001448 postfix/master[5671]: warning: process /usr/lib/postfix/smtpd pid 5796 exit status 1 Sep 23 06:40:40 ns3001448 postfix/master[5671]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling Sep 23 06:40:41 ns3001448 postfix/master[5671]: warning: process /usr/lib/postfix/smtpd pid 5797 exit status 1 Sep 23 06:40:55 ns3001448 postfix/master[5671]: terminating on signal 15

postconf -n

alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases append_dot_mydomain = no biff = no broken_sasl_auth_clients = yes config_directory = /etc/postfix inet_interfaces = all mailbox_command = mailbox_size_limit = 0 mydestination = mail.mondomaine.com, mondomaine.com, ns30xxxxxxxxxxx, localhost.ip-x-xx-xx.eu, localhost mydomain = mondomaine.com myhostname = mail.mondomaine.com mynetworks = 127.0.0.0/8 xx.xx.xx.xx myorigin = mondomaine.com readme_directory = no recipient_delimiter = + relay_domains = mysql:/etc/postfix/mysql_relay_domains.cf relayhost = smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination smtpd_sasl_auth_enable = yes smtpd_sasl_exceptions_networks = $mynetworks smtpd_sasl_local_domain = $myhostname smtpd_sasl_path = private/auth smtpd_sasl_security_options = noanonymous smtpd_sasl_type = dovecot smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtpd_use_tls = yes virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf virtual_gid_maps = static:5000 virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_mailbox_domains.cf virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf virtual_transport = dovecot virtual_uid_maps = static:5000

Mon dovecot.conf :

[code]
protocols = imap pop3
log_timestamp = "%Y-%m-%d %H:%M:%S "

mail_privileged_group = vmail
log_path = /var/log/dovecot

disable_plaintext_auth = no
auth_mechanisms = plain

mail_home = /home/vmail/%d/%u
mail_location = maildir:/home/vmail/%d/%n:INDEX=/home/vmail/%d/%n/indexes

protocol imap {
#ssl_listen = *:993
}

protocol pop3 {
}
protocol sieve {
}
protocol lda {
postmaster_address = contact@mondomaine.com
mail_plugin_dir = /usr/lib/dovecot/modules/lda
auth_socket_path = /var/run/dovecot/auth-master
}
#service auth {
#auth default {

userdb {

args = /etc/dovecot/dovecot-mysql.conf

}

userdb {
args = /etc/dovecot/dovecot-mysql.conf
driver = sql
}

passdb {

args = /etc/dovecot/dovecot-mysql.conf

}

passdb {
args = /etc/dovecot/dovecot-mysql.conf
driver = sql
#socket listen {

master {

path = /var/run/dovecot/auth-master

mode = 0600

user = vmail

}

client {

path = /var/spool/postfix/private/auth

mode = 0660

user = postfix

group = postfix

}

}

}
dict {
}
plugin {
}
ssl = no
ssl_cert = </etc/dovecot/private/dovecot.pem
ssl_key = </etc/dovecot/dovecot.pem[/code]

IL me mets celà aussi dans les logs syslog :

Sep 23 06:52:46 ns3001448 postfix/master[5938]: warning: process /usr/lib/postfix/smtpd pid 6528 exit status 1 Sep 23 06:52:46 ns3001448 postfix/master[5938]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling Sep 23 06:52:46 ns3001448 postfix/submission/smtpd[6531]: warning: SASL: Connect to private/auth failed: Connection refused Sep 23 06:52:46 ns3001448 postfix/submission/smtpd[6531]: fatal: no SASL authentication mechanisms Sep 23 06:52:47 ns3001448 postfix/master[5938]: warning: process /usr/lib/postfix/smtpd pid 6531 exit status 1

ps ax | grep sasl

6718 ? Ss 0:00 /usr/sbin/saslauthd -a rimap -O localhost -c -m /var/run/saslauthd -n 5 6719 ? S 0:00 /usr/sbin/saslauthd -a rimap -O localhost -c -m /var/run/saslauthd -n 5 6720 ? S 0:00 /usr/sbin/saslauthd -a rimap -O localhost -c -m /var/run/saslauthd -n 5 6721 ? S 0:00 /usr/sbin/saslauthd -a rimap -O localhost -c -m /var/run/saslauthd -n 5 6723 ? S 0:00 /usr/sbin/saslauthd -a rimap -O localhost -c -m /var/run/saslauthd -n 5 8177 pts/0 S+ 0:00 grep sasl

J’ai suivis ce tuto : tutodidacte.com/debian-7-whe … x#forum351

merci à vous

J’ai reussi a corriger certanes erreurs mais ce coup ci quand j’envois un mail depuis hotmail vers mon serveur email j’ai cette erreur

Sep 23 11:41:46 ns3001448 postfix/trivial-rewrite[3371]: warning: do not list domain mondomaine.com in BOTH mydestination and virtual_mailbox_domains Sep 23 11:41:46 ns3001448 postfix/submission/smtpd[3367]: NOQUEUE: reject: RCPT from snt004-omc1s44.hotmail.com[65.54.61.81]: 554 5.7.1 <snt004-omc1s44.hotmail.com[65.54.61.81]>: Client host rejected: Access denied; from=<moi@live.fr> to=<contact@mondomaine.com> proto=ESMTP helo=<SNT004-OMC1S44.hotmail.com>

Comme vous le voyez j’ai Client host rejected: Access denied
Une idée ?

D’après le message d’erreur, ton domaine n’est pas présent dans ta table de domaines virtuels (/etc/postfix/mysql_virtual_mailbox_domains.cf dans ta conf).