Bonjour,
Je suis sous Debian wheezy (install neuve il y a quelques jours) et je viens d’installer Dovecot et Postfix (dernieères versions) pour pouvoir envoyer/recevoir des mails.
A priori les installations sont ok, pas de message d’erreur lors du lancement des services, les logs paraissent ok mais aucun mail n’arrive… Et aucun mail d’erreur en retour depuis le compte expéditeur… Je suis un peu perdu, si vous pouviez me donner un coupe de main…
Voici les logs Dovecot:
2013-09-10 09:53:26 pop3-login: Warning: SSL: where=0x10, ret=1: before/accept initialization [83.194.107.182]
2013-09-10 09:53:26 pop3-login: Warning: SSL: where=0x2001, ret=1: before/accept initialization [83.194.107.182]
2013-09-10 09:53:26 pop3-login: Warning: SSL: where=0x2002, ret=-1: unknown state [83.194.107.182]
2013-09-10 09:53:26 pop3-login: Warning: SSL: where=0x2001, ret=1: SSLv3 read client hello A [83.194.107.182]
2013-09-10 09:53:26 pop3-login: Warning: SSL: where=0x2001, ret=1: SSLv3 write server hello A [83.194.107.182]
2013-09-10 09:53:26 pop3-login: Warning: SSL: where=0x2001, ret=1: SSLv3 write certificate A [83.194.107.182]
2013-09-10 09:53:26 pop3-login: Warning: SSL: where=0x2001, ret=1: SSLv3 write key exchange A [83.194.107.182]
2013-09-10 09:53:26 pop3-login: Warning: SSL: where=0x2001, ret=1: SSLv3 write server done A [83.194.107.182]
2013-09-10 09:53:26 pop3-login: Warning: SSL: where=0x2001, ret=1: SSLv3 flush data [83.194.107.182]
2013-09-10 09:53:26 pop3-login: Warning: SSL: where=0x2002, ret=-1: SSLv3 read client certificate A [83.194.107.182]
2013-09-10 09:53:26 pop3-login: Warning: SSL: where=0x2002, ret=-1: SSLv3 read client certificate A [83.194.107.182]
2013-09-10 09:53:26 pop3-login: Warning: SSL: where=0x2001, ret=1: SSLv3 read client key exchange A [83.194.107.182]
2013-09-10 09:53:26 pop3-login: Warning: SSL: where=0x2001, ret=1: SSLv3 read finished A [83.194.107.182]
2013-09-10 09:53:26 pop3-login: Warning: SSL: where=0x2001, ret=1: SSLv3 write session ticket A [83.194.107.182]
2013-09-10 09:53:26 pop3-login: Warning: SSL: where=0x2001, ret=1: SSLv3 write change cipher spec A [83.194.107.182]
2013-09-10 09:53:26 pop3-login: Warning: SSL: where=0x2001, ret=1: SSLv3 write finished A [83.194.107.182]
2013-09-10 09:53:26 pop3-login: Warning: SSL: where=0x2001, ret=1: SSLv3 flush data [83.194.107.182]
2013-09-10 09:53:26 pop3-login: Warning: SSL: where=0x20, ret=1: SSL negotiation finished successfully [83.194.107.182]
2013-09-10 09:53:26 pop3-login: Warning: SSL: where=0x2002, ret=1: SSL negotiation finished successfully [83.194.107.182]
2013-09-10 09:53:26 pop3-login: Warning: SSL alert: where=0x4008, ret=256: warning close notify [83.194.107.182]
2013-09-10 09:53:01 master: Info: Dovecot v2.1.7 starting up (core dumps disabled)
2013-09-10 09:53:26 pop3-login: Info: Login: user=<test.blue-lands>, method=PLAIN, rip=83.194.107.182, lip=5.39.72.228, mpid=10971, TLS, session=<THm+zALm8ABTwmu2>
2013-09-10 09:53:26 pop3(test.blue-lands): Info: Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Mes confs:
Dovecot.conf:
[code]# 2.1.7: /etc/dovecot/dovecot.conf
OS: Linux 3.10.9-xxxx-grs-ipv6-64 x86_64
auth_mechanisms = plain login
base_dir = /var/run/dovecot/
disable_plaintext_auth = no
info_log_path = /var/log/dovecot/dovecot-info.log
log_path = /var/log/dovecot/dovecot.log
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_location = maildir:~/.Maildir
passdb {
args = failure_show_msg=yes
driver = pam
}
plugin {
sieve = ~/.dovecot.sieve
sieve_dir = ~/.Sieve
}
protocols = imap pop3
service auth {
unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0666
user = postfix
}
unix_listener auth-master {
mode = 0666
}
}
service imap-login {
executable = /usr/lib/dovecot/imap-login
inet_listener imap {
address = 5.39.72.228
port = 143
}
inet_listener imaps {
address = 5.39.72.228
port = 993
}
}
service imap {
executable = /usr/lib/dovecot/imap
}
service pop3-login {
executable = /usr/lib/dovecot/pop3-login
inet_listener pop3 {
address = *
port = 110
}
inet_listener pop3s {
address = *
port = 995
}
}
service pop3 {
executable = /usr/lib/dovecot/pop3
}
ssl_ca = </etc/dovecot/ssl_keys/ca.crt
ssl_cert = </etc/dovecot/ssl_keys/imap.crt
ssl_cipher_list = ALL:!LOW:!SSLv2
ssl_key = </etc/dovecot/ssl_keys/imap.key
userdb {
driver = passwd
}
verbose_ssl = yes
protocol imap {
imap_logout_format = bytes ( in=%i : out=%o )
mail_plugin_dir = /usr/lib/dovecot/imap
}
protocol pop3 {
mail_plugin_dir = /usr/lib/dovecot/pop3
pop3_enable_last = no
pop3_logout_format = top=%t/%p, retr=%r/%b, del=%d/%m, size=%s
}
[/code]
Postfix:
[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/postfix/smtp.crt
smtpd_tls_key_file=/etc/postfix/smtp.key
smtp_tls_CAfile = /etc/postfix/ca.crt
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtp_sasl_password_maps = hash:/etc/postfix/relay_passwd
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = domain.lan
See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
information on enabling SSL in the smtp client.
myhostname = serveur.domain.lan
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = serveur.domain.lan, localhost.domain.lan, localhost, domain.lan
relayhost = [smtp.mailoo.org]:225
mynetworks = 127.0.0.0/8, 5.39.72.228
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = 127.0.0.1, 5.39.72.228
inet_protocols = ipv4
mailbox_command = /usr/lib/dovecot/deliver
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
Wait until the RCPT TO command before evaluating restrictions
smtpd_delay_reject = yes
Basics Restrictions
smtpd_helo_required = yes
strict_rfc821_envelopes = yes
Requirements for the connecting server
smtpd_client_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_rbl_client bl.spamcop.net,
reject_rbl_client dnsbl.njabl.org,
reject_rbl_client cbl.abuseat.org,
reject_rbl_client sbl-xbl.spamhaus.org,
reject_rbl_client list.dsbl.org,
permit
Requirements for the HELO statement
smtpd_helo_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_non_fqdn_hostname,
reject_invalid_hostname,
permit
Requirements for the sender address
smtpd_sender_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_non_fqdn_sender,
reject_unknown_sender_domain,
permit
Requirement for the recipient address
smtpd_recipient_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_non_fqdn_recipient,
reject_unknown_recipient_domain,
reject_unauth_destination,
permit
virtual_alias_maps = hash:/etc/postfix/virtual
[/code]
[code]#
Postfix master process configuration file. For details on the format
of the file, see the master(5) manual page (command: “man 5 master”).
Do not forget to execute “postfix reload” after editing this file.
==========================================================================
service type private unpriv chroot wakeup maxproc command + args
(yes) (yes) (yes) (never) (100)
==========================================================================
smtp inet n - - - - smtpd
submission inet n - - - - smtpd
-o smtpd_tls_security_level=encrypt
-o smtpd_sasl_auth_enable=yes
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
-o milter_macro_daemon_name=ORIGINATING
smtps inet n - - - - smtpd
-o smtpd_tls_wrappermode=yes
-o smtpd_sasl_auth_enable=yes
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
-o milter_macro_daemon_name=ORIGINATING
#628 inet n - - - - qmqpd
pickup fifo n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - - 300 1 oqmgr
tlsmgr unix - - - 1000? 1 tlsmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
trace unix - - - - 0 bounce
verify unix - - - - 1 verify
flush unix n - - 1000? 0 flush
proxymap unix - - n - - proxymap
proxywrite unix - - n - 1 proxymap
smtp unix - - - - - smtp
When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - - - - smtp
-o smtp_fallback_relay=
-o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - - - - showq
error unix - - - - - error
retry unix - - - - - error
discard unix - - - - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - - - - lmtp
anvil unix - - - - 1 anvil
scache unix - - - - 1 scache
====================================================================
Interfaces to non-Postfix software. Be sure to examine the manual
pages of the non-Postfix software to find out what options it wants.
Many of the following services use the Postfix pipe(8) delivery
agent. See the pipe(8) man page for information about ${recipient}
and other message envelope options.
====================================================================
maildrop. See the Postfix MAILDROP_README file for details.
Also specify in main.cf: maildrop_destination_recipient_limit=1
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
====================================================================
Recent Cyrus versions can use the existing “lmtp” master.cf entry.
Specify in cyrus.conf:
lmtp cmd=“lmtpd -a” listen=“localhost:lmtp” proto=tcp4
Specify in main.cf one or more of the following:
mailbox_transport = lmtp:inet:localhost
virtual_transport = lmtp:inet:localhost
====================================================================
Cyrus 2.1.5 (Amos Gouaux)
Also specify in main.cf: cyrus_destination_recipient_limit=1
#cyrus unix - n n - - pipe
user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
====================================================================
Old example of delivery via Cyrus.
#old-cyrus unix - n n - - pipe
flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
====================================================================
See the Postfix UUCP_README file for configuration details.
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
Other external delivery methods.
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix - n n - 2 pipe
flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman unix - n n - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}
Dovecot LDA
dovecot unix - n n - - pipe
flags=DRhu user=vmail:mail argv=/usr/lib/dovecot/deliver -d $recipient[/code]