Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1610 connectés 

  FORUM HardWare.fr
  Linux et OS Alternatifs
  Installation

  [Résolu] [Postfix/Dovecot] Mise en place de mon serveur Mail

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[Résolu] [Postfix/Dovecot] Mise en place de mon serveur Mail

n°1379180
dracstudio
Posté le 24-07-2015 à 13:51:05  profilanswer
 

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 :
  1. Final-Recipient: rfc822; test@loixxx.xyz
  2. Original-Recipient: rfc822;test@loixxx.xyz
  3. Action: failed
  4. Status: 5.1.1
  5. Diagnostic-Code: X-Postfix; unknown user: "test"


 
et dans les logs de mon serveur :  
 

Code :
  1. cat /var/log/mail.info
  2. Jul 24 12:17:18 mail postfix/smtpd[8814]: connect from mail-wi0-f181.google.com[209.85.212.181]
  3. 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)
  4. Jul 24 12:17:18 mail postfix/trivial-rewrite[8819]: warning: do not list domain loixxx.xyz in BOTH mydestination and virtual_mailbox_domains
  5. Jul 24 12:17:18 mail postfix/smtpd[8814]: 7EA4840961: client=mail-wi0-f181.google.com[209.85.212.181]
  6. Jul 24 12:17:18 mail postfix/cleanup[8822]: 7EA4840961: message-id=<55B210E0.30701@gmail.com>
  7. Jul 24 12:17:18 mail postfix/qmgr[8690]: 7EA4840961: from=<romain.loixxx@gmail.com>, size=1908, nrcpt=1 (queue active)
  8. Jul 24 12:17:18 mail postfix/trivial-rewrite[8819]: warning: do not list domain loixxx.xyz in BOTH mydestination and virtual_mailbox_domains
  9. 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" )
  10. Jul 24 12:17:18 mail postfix/cleanup[8822]: 9A3C440C68: message-id=<20150724101718.9A3C440C68@mail.loichot.xyz>
  11. Jul 24 12:17:18 mail postfix/qmgr[8690]: 9A3C440C68: from=<>, size=3680, nrcpt=1 (queue active)
  12. Jul 24 12:17:18 mail postfix/bounce[8825]: 7EA4840961: sender non-delivery notification: 9A3C440C68
  13. Jul 24 12:17:18 mail postfix/qmgr[8690]: 7EA4840961: removed
  14. Jul 24 12:17:18 mail postfix/smtpd[8814]: disconnect from mail-wi0-f181.google.com[209.85.212.181]
  15. 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)
  16. 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))
  17. Jul 24 12:17:24 mail postfix/qmgr[8690]: 9A3C440C68: removed


 
Donc un postconf -n :
 

Code :
  1. alias_database = hash:/etc/aliases
  2. alias_maps = hash:/etc/aliases
  3. append_dot_mydomain = no
  4. biff = no
  5. broken_sasl_auth_clients = yes
  6. config_directory = /etc/postfix
  7. delay_warning_time = 4h
  8. disable_vrfy_command = yes
  9. inet_protocols = ipv4
  10. lmtp_tls_session_cache_database = btree:${data_directory}/lmtp_scache
  11. mailbox_command = procmail -a "$EXTENSION"
  12. mailbox_size_limit = 1024000000
  13. message_size_limit = 502400000
  14. mydestination = loixxx.xyz, mail.loixxx.xyz, localhost, localhost.localdomain
  15. mydomain = loixxx.xyz
  16. myhostname = mail.loixxx.xyz
  17. mynetworks = 127.0.0.0/8
  18. myorigin = $mydomain
  19. readme_directory = no
  20. recipient_delimiter = +
  21. relayhost =
  22. smtp_tls_CAfile = /etc/ssl/certs/CAroot.crt
  23. 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
  24. smtp_tls_loglevel = 1
  25. smtp_tls_mandatory_ciphers = high
  26. smtp_tls_mandatory_protocols = !SSLv2, !SSLv3, TLSv1
  27. smtp_tls_protocols = !SSLv2, !SSLv3, TLSv1
  28. smtp_tls_security_level = may
  29. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  30. smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
  31. smtpd_client_restrictions = permit_mynetworks, permit_inet_interfaces, permit_sasl_authenticated,
  32. smtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_invalid_helo_hostname, reject_non_fqdn_helo_hostname,
  33. 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
  34. smtpd_sasl_auth_enable = yes
  35. smtpd_sasl_authenticated_header = yes
  36. smtpd_sasl_local_domain = $mydomain
  37. smtpd_sasl_path = private/auth
  38. smtpd_sasl_security_options = noanonymous
  39. smtpd_sasl_tls_security_options = $smtpd_sasl_security_options
  40. smtpd_sasl_type = dovecot
  41. smtpd_sender_restrictions = reject_non_fqdn_sender, reject_unknown_sender_domain
  42. smtpd_tls_CAfile = /etc/ssl/certs/CAroot.crt
  43. smtpd_tls_auth_only = yes
  44. smtpd_tls_cert_file = /etc/ssl/certs/mailserver.crt
  45. smtpd_tls_dh1024_param_file = /etc/postfix/dh2048.pem
  46. smtpd_tls_dh512_param_file = /etc/postfix/dh512.pem
  47. smtpd_tls_eecdh_grade = ultra
  48. 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
  49. smtpd_tls_key_file = /etc/ssl/private/mailserver.key
  50. smtpd_tls_loglevel = 1
  51. smtpd_tls_mandatory_ciphers = high
  52. smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3, TLSv1
  53. smtpd_tls_protocols = !SSLv2, !SSLv3, TLSv1
  54. smtpd_tls_received_header = yes
  55. smtpd_tls_security_level = may
  56. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  57. tls_eecdh_strong_curve = prime256v1
  58. tls_eecdh_ultra_curve = secp521r1
  59. tls_preempt_cipherlist = yes
  60. tls_random_source = dev:/dev/urandom
  61. virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf
  62. virtual_gid_maps = static:5000
  63. virtual_mailbox_base = /var/mail
  64. virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
  65. virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
  66. virtual_minimum_uid = 5000
  67. virtual_transport = lmtp:unix:private/dovecot-lmtp
  68. 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.


Message édité par dracstudio le 27-07-2015 à 09:54:11
mood
Publicité
Posté le 24-07-2015 à 13:51:05  profilanswer
 

n°1379286
dracstudio
Posté le 27-07-2015 à 09:53:36  profilanswer
 

Problème résolu suite à la modification des paramêtres de base dans le main.cf.
 

n°1383116
Mac Gyver ​974
Posté le 04-11-2015 à 20:33:45  profilanswer
 

dracstudio a écrit :

Problème résolu suite à la modification des paramêtres de base dans le main.cf.
 


 
Bonsoir, je cherche moi aussi à configurer dovecot et postfix. Mon but est d'avoir des adresses mail sur le nom de domaine de mon serveur LAMP, et bien sur les mails reçus sur ce serveur, qui est un serveur "at  home". Déjà est-ce que pour ce que je veux faire ces logiciels sont réellement appropriés ?
 
J'ai installé postfixadmin et je suis  arrivé au stade où je peux me connecter à son interface d'administration, mais je ne comprends pas du tout ce que je dois y faire pour atteindre mon but indiqué plus haut.
 
Quand à dovecot ma foi il est installé mais je me perds dans tout ces tutos obsolètes/en anglais avec trop de blabla/qui n'explique pas comment "interfacer" dovecot et postfix...
 
La distrib est une Gentoo.
 
Si tu pouvais m'indiquer des tutos valables pour ce que je veux faire, m'expliquer un peu, toussa...Et peut-etre plus simple balancer tes fichiers de conf  :o  
 
Merci d'avance en tout cas  :jap:


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Linux et OS Alternatifs
  Installation

  [Résolu] [Postfix/Dovecot] Mise en place de mon serveur Mail

 

Sujets relatifs
Serveur FTP (Users AD Server 2012)Serveur ftp : configuration
[Resolu][CENTOS][KIMSUFI] mise à jour noyauServeur RedHat 5.7 Tikanga et install GCC
Mise à jour de dd-wrt [Résolu]Fichiers de configuration Postfix partagés
Problème smtp ou fonction mail avec phpbbAide pour le choix d'un serveur linux (Materiel et Distribution)
Plus de sujets relatifs à : [Résolu] [Postfix/Dovecot] Mise en place de mon serveur Mail


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR