| dracstudio |
Bonjour,
pendant mon installation j'ai rencontré plusieurs problèmes que j'ai pu résoudre en cherchant, mais là je bloque.
Quand j’envoie un mail à test@loixxx.xyz le mail part mais en retour j'ai un message d'erreur :
Code :
- Final-Recipient: rfc822; test@loixxx.xyz
- Original-Recipient: rfc822;test@loixxx.xyz
- Action: failed
- Status: 5.1.1
- Diagnostic-Code: X-Postfix; unknown user: "test"
|
et dans les logs de mon serveur :
Code :
- cat /var/log/mail.info
- Jul 24 12:17:18 mail postfix/smtpd[8814]: connect from mail-wi0-f181.google.com[209.85.212.181]
- Jul 24 12:17:18 mail postfix/smtpd[8814]: Anonymous TLS connection established from mail-wi0-f181.google.com[209.85.212.181]: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)
- Jul 24 12:17:18 mail postfix/trivial-rewrite[8819]: warning: do not list domain loixxx.xyz in BOTH mydestination and virtual_mailbox_domains
- Jul 24 12:17:18 mail postfix/smtpd[8814]: 7EA4840961: client=mail-wi0-f181.google.com[209.85.212.181]
- Jul 24 12:17:18 mail postfix/cleanup[8822]: 7EA4840961: message-id=<55B210E0.30701@gmail.com>
- Jul 24 12:17:18 mail postfix/qmgr[8690]: 7EA4840961: from=<romain.loixxx@gmail.com>, size=1908, nrcpt=1 (queue active)
- Jul 24 12:17:18 mail postfix/trivial-rewrite[8819]: warning: do not list domain loixxx.xyz in BOTH mydestination and virtual_mailbox_domains
- Jul 24 12:17:18 mail postfix/local[8824]: 7EA4840961: to=<test@loixxx.xyz>, relay=local, delay=0.14, delays=0.14/0/0/0, dsn=5.1.1, status=bounced (unknown user: "test" )
- Jul 24 12:17:18 mail postfix/cleanup[8822]: 9A3C440C68: message-id=<20150724101718.9A3C440C68@mail.loichot.xyz>
- Jul 24 12:17:18 mail postfix/qmgr[8690]: 9A3C440C68: from=<>, size=3680, nrcpt=1 (queue active)
- Jul 24 12:17:18 mail postfix/bounce[8825]: 7EA4840961: sender non-delivery notification: 9A3C440C68
- Jul 24 12:17:18 mail postfix/qmgr[8690]: 7EA4840961: removed
- Jul 24 12:17:18 mail postfix/smtpd[8814]: disconnect from mail-wi0-f181.google.com[209.85.212.181]
- Jul 24 12:17:23 mail postfix/smtp[8827]: Untrusted TLS connection established to gmail-smtp-in.l.google.com[64.233.167.27]:25: TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)
- Jul 24 12:17:24 mail postfix/smtp[8827]: 9A3C440C68: to=<romain.loixxx@gmail.com>, relay=gmail-smtp-in.l.google.com[64.233.167.27]:25, delay=5.7, delays=0/0.01/5.2/0.54, dsn=5.7.1, status=bounced (host gmail-smtp-in.l.google.com[64.233.167.27] said: 550-5.7.1 [91.121.39.163 12] Our system has detected that this message is 550-5.7.1 likely unsolicited mail. To reduce the amount of spam sent to Gmail, 550-5.7.1 this message has been blocked. Please visit 550 5.7.1 https://support.google.com/mail/answer/188131 for more information. ja14si3454759wic.18 - gsmtp (in reply to end of DATA command))
- Jul 24 12:17:24 mail postfix/qmgr[8690]: 9A3C440C68: removed
|
Donc un postconf -n :
Code :
- 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
- delay_warning_time = 4h
- disable_vrfy_command = yes
- inet_protocols = ipv4
- lmtp_tls_session_cache_database = btree:${data_directory}/lmtp_scache
- mailbox_command = procmail -a "$EXTENSION"
- mailbox_size_limit = 1024000000
- message_size_limit = 502400000
- mydestination = loixxx.xyz, mail.loixxx.xyz, localhost, localhost.localdomain
- mydomain = loixxx.xyz
- myhostname = mail.loixxx.xyz
- mynetworks = 127.0.0.0/8
- myorigin = $mydomain
- readme_directory = no
- recipient_delimiter = +
- relayhost =
- smtp_tls_CAfile = /etc/ssl/certs/CAroot.crt
- smtp_tls_exclude_ciphers = aNULL, eNULL, EXPORT, DES, RC4, MD5, PSK, aECDH, EDH-DSS-DES-CBC3-SHA, EDH-RSA-DES-CDC3-SHA, KRB5-DE5, CBC3-SHA
- smtp_tls_loglevel = 1
- smtp_tls_mandatory_ciphers = high
- smtp_tls_mandatory_protocols = !SSLv2, !SSLv3, TLSv1
- smtp_tls_protocols = !SSLv2, !SSLv3, TLSv1
- smtp_tls_security_level = may
- smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
- smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
- smtpd_client_restrictions = permit_mynetworks, permit_inet_interfaces, permit_sasl_authenticated,
- smtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_invalid_helo_hostname, reject_non_fqdn_helo_hostname,
- smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_recipient, reject_unauth_destination, reject_unknown_recipient_domain, reject_rbl_client zen.spamhaus.org
- smtpd_sasl_auth_enable = yes
- smtpd_sasl_authenticated_header = yes
- smtpd_sasl_local_domain = $mydomain
- smtpd_sasl_path = private/auth
- smtpd_sasl_security_options = noanonymous
- smtpd_sasl_tls_security_options = $smtpd_sasl_security_options
- smtpd_sasl_type = dovecot
- smtpd_sender_restrictions = reject_non_fqdn_sender, reject_unknown_sender_domain
- smtpd_tls_CAfile = /etc/ssl/certs/CAroot.crt
- smtpd_tls_auth_only = yes
- smtpd_tls_cert_file = /etc/ssl/certs/mailserver.crt
- smtpd_tls_dh1024_param_file = /etc/postfix/dh2048.pem
- smtpd_tls_dh512_param_file = /etc/postfix/dh512.pem
- smtpd_tls_eecdh_grade = ultra
- smtpd_tls_exclude_ciphers = aNULL, eNULL, EXPORT, DES, RC4, MD5, PSK, aECDH, EDH-DSS-DES-CBC3-SHA, EDH-RSA-DES-CDC3-SHA, KRB5-DE5, CBC3-SHA
- smtpd_tls_key_file = /etc/ssl/private/mailserver.key
- smtpd_tls_loglevel = 1
- smtpd_tls_mandatory_ciphers = high
- smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3, TLSv1
- smtpd_tls_protocols = !SSLv2, !SSLv3, TLSv1
- smtpd_tls_received_header = yes
- smtpd_tls_security_level = may
- smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
- tls_eecdh_strong_curve = prime256v1
- tls_eecdh_ultra_curve = secp521r1
- tls_preempt_cipherlist = yes
- tls_random_source = dev:/dev/urandom
- virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf
- virtual_gid_maps = static:5000
- virtual_mailbox_base = /var/mail
- virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
- virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
- virtual_minimum_uid = 5000
- virtual_transport = lmtp:unix:private/dovecot-lmtp
- virtual_uid_maps = static:5000
|
Je pense que le souci vient de "(unknown user: "test" )" dans les logs, mais j'ai beau chercher je trouve pas pourquoi, alors que mon utilisateur existe bien.
Je voudrais bien une petite d'aide, savoir ou chercher.
Merci. |