Voici pour la conf postfix :
postfix configuration main.cf
# 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 Service ready
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 for incoming connections
# By default, TLS is disabled in the Postfix SMTP server, so no difference to
# plain Postfix is visible. Explicitly switch it on with "smtpd_tls_security_level = may".
smtpd_tls_security_level=may
# Sending AUTH data over an unencrypted channel poses a security risk.
# When TLS layer encryption is optional ("smtpd_tls_security_level = may"), it
# may however still be useful to only offer AUTH when TLS is active. To maintain
# compatibility with non-TLS clients, the default is to accept AUTH without
# encryption. In order to change this behavior, we set "smtpd_tls_auth_only = yes".
smtpd_tls_auth_only=yes
smtpd_tls_cert_file = /etc/yunohost/certs/dynamicslights.ovh/crt.pem
smtpd_tls_key_file = /etc/yunohost/certs/dynamicslights.ovh/key.pem
smtpd_tls_exclude_ciphers = aNULL, MD5, DES, ADH, RC4, 3DES
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_tls_loglevel=1
smtpd_tls_mandatory_protocols=!SSLv2,!SSLv3
smtpd_tls_mandatory_ciphers=high
smtpd_tls_eecdh_grade = ultra
# -- TLS for outgoing connections
# Use TLS if this is supported by the remote SMTP server, otherwise use plaintext.
smtp_tls_security_level=may
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtp_tls_exclude_ciphers = $smtpd_tls_exclude_ciphers
smtp_tls_mandatory_ciphers= $smtpd_tls_mandatory_ciphers
smtp_tls_loglevel=1
# Configure Root CA certificates
# (for example, avoids getting "Untrusted TLS connection established to" messages in logs)
smtpd_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.
myhostname = dynamicslights.ovh
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydomain = dynamicslights.ovh
mydestination = localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
#### Fit to the maximum message size to 30mb, more than allowed by GMail or Yahoo ####
message_size_limit = 31457280
# Virtual Domains Control
virtual_mailbox_domains = ldap:/etc/postfix/ldap-domains.cf
virtual_mailbox_maps = ldap:/etc/postfix/ldap-accounts.cf
virtual_mailbox_base =
virtual_alias_maps = ldap:/etc/postfix/ldap-aliases.cf
virtual_alias_domains =
virtual_minimum_uid = 100
virtual_uid_maps = static:vmail
virtual_gid_maps = static:mail
smtpd_sender_login_maps= ldap:/etc/postfix/ldap-accounts.cf
# Dovecot LDA
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
# Enable SASL authentication for the smtpd daemon
smtpd_sasl_auth_enable = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
# Fix some outlook's bugs
broken_sasl_auth_clients = yes
# Reject anonymous connections
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain =
# 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 cbl.abuseat.org,
reject_rbl_client zen.spamhaus.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 =
reject_sender_login_mismatch,
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
# SRS
sender_canonical_maps = tcp:localhost:10001
sender_canonical_classes = envelope_sender
recipient_canonical_maps = tcp:localhost:10002
recipient_canonical_classes= envelope_recipient,header_recipient
# Ignore some headers
smtp_header_checks = regexp:/etc/postfix/header_checks
smtp_reply_filter = pcre:/etc/postfix/smtp_reply_filter
# Rmilter
milter_mail_macros = i {mail_addr} {client_addr} {client_name} {auth_authen}
milter_protocol = 6
smtpd_milters = inet:localhost:11332
# Skip email without checking if milter has died
milter_default_action = accept
Pour ce qui est des logs, les voici :
Extrait mail.log
Jun 17 18:46:17 dynamicslights postfix/smtp[21726]: 5053380B28: to=<benjamin.traissard@startinsaclay.fr>, relay=none, delay=74116, delays=7$
Jun 17 19:08:47 dynamicslights postfix/qmgr[8466]: 7D05F80A9A: from=<benjamin@dynamicslights.ovh>, size=1137, nrcpt=1 (queue active)
Jun 17 19:08:47 dynamicslights postfix/qmgr[8466]: 3310780A83: from=<benjamin@dynamicslights.ovh>, size=1166, nrcpt=1 (queue active)
Jun 17 19:09:17 dynamicslights postfix/smtp[21831]: connect to gmail-smtp-in.l.google.com[173.194.76.27]:25: Connection timed out
Jun 17 19:09:17 dynamicslights postfix/smtp[21830]: connect to gmail-smtp-in.l.google.com[2a00:1450:400c:c06::1a]:25: Connection timed out
Jun 17 19:09:47 dynamicslights postfix/smtp[21831]: connect to gmail-smtp-in.l.google.com[2a00:1450:400c:c06::1a]:25: Connection timed out
Jun 17 19:09:47 dynamicslights postfix/smtp[21830]: connect to gmail-smtp-in.l.google.com[173.194.76.27]:25: Connection timed out
Jun 17 19:10:17 dynamicslights postfix/smtp[21831]: connect to alt1.gmail-smtp-in.l.google.com[108.177.14.27]:25: Connection timed out
Jun 17 19:10:17 dynamicslights postfix/smtp[21830]: connect to alt1.gmail-smtp-in.l.google.com[2a00:1450:4010:c0f::1a]:25: Connection timed$
Jun 17 19:10:47 dynamicslights postfix/smtp[21831]: connect to alt1.gmail-smtp-in.l.google.com[2a00:1450:4010:c0f::1a]:25: Connection timed$
Jun 17 19:10:47 dynamicslights postfix/smtp[21830]: connect to alt1.gmail-smtp-in.l.google.com[108.177.14.27]:25: Connection timed out
Jun 17 19:11:17 dynamicslights postfix/smtp[21831]: connect to alt2.gmail-smtp-in.l.google.com[74.125.200.26]:25: Connection timed out
Jun 17 19:11:17 dynamicslights postfix/smtp[21830]: connect to alt2.gmail-smtp-in.l.google.com[74.125.200.26]:25: Connection timed out
Jun 17 19:11:17 dynamicslights postfix/smtp[21831]: 3310780A83: to=<benjamintraissard@gmail.com>, relay=none, delay=75777, delays=75626/0.1$
Jun 17 19:11:17 dynamicslights postfix/smtp[21830]: 7D05F80A9A: to=<btraissard@gmail.com>, relay=none, delay=75760, delays=75610/0.16/150/0$
Jun 17 19:13:47 dynamicslights postfix/qmgr[8466]: 6B12B80A51: from=<benjamin@dynamicslights.ovh>, size=1180, nrcpt=1 (queue active)
Jun 17 19:14:17 dynamicslights postfix/smtp[21912]: connect to aspmx.l.google.com[2a00:1450:400c:c00::1a]:25: Connection timed out
Jun 17 19:14:47 dynamicslights postfix/smtp[21912]: connect to aspmx.l.google.com[64.233.166.26]:25: Connection timed out
Jun 17 19:15:17 dynamicslights postfix/smtp[21912]: connect to alt1.aspmx.l.google.com[2a00:1450:4010:c0f::1a]:25: Connection timed out
Jun 17 19:15:47 dynamicslights postfix/smtp[21912]: connect to alt1.aspmx.l.google.com[108.177.14.26]:25: Connection timed out
Jun 17 19:16:17 dynamicslights postfix/smtp[21912]: connect to alt2.aspmx.l.google.com[74.125.200.26]:25: Connection timed out
Jun 17 19:16:17 dynamicslights postfix/smtp[21912]: 6B12B80A51: to=<benjamin.traissard@startinsaclay.fr>, relay=none, delay=75807, delays=7$
Jun 17 19:18:47 dynamicslights postfix/qmgr[8466]: 47C38805D9: from=<benjamin@dynamicslights.ovh>, size=1148, nrcpt=2 (queue active)
Jun 17 19:19:17 dynamicslights postfix/smtp[21953]: connect to gmail-smtp-in.l.google.com[2a00:1450:400c:c00::1a]:25: Connection timed out
Jun 17 19:19:47 dynamicslights postfix/smtp[21953]: connect to gmail-smtp-in.l.google.com[173.194.76.27]:25: Connection timed out
Jun 17 19:20:17 dynamicslights postfix/smtp[21953]: connect to alt1.gmail-smtp-in.l.google.com[2a00:1450:4010:c0f::1a]:25: Connection timed$
Je ne vous ai mis qu’un extrait car c’est comme ça sur tous les logs.
Encore merci de m’accorder du temps ^^