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

 


 Mot :   Pseudo :  
 
 Page :   1  2
Page Suivante
Auteur Sujet :

[Postfix] Can't connect to mysql server

n°886844
mikala
Souviens toi du 5 Novembre...
Posté le 15-02-2007 à 12:12:26  profilanswer
 

Reprise du message précédent :

Doudos a écrit :

j'étais entrain de regarder comment mettre le support mysql dans maildrop... misère... :sweat:
 
mettre à jour courier va régler le pb de création de dossier dans /var/spool/vmail tu penses ?


quel peut etre l'interet de mettre maildrop  dans ton cas ?
-> le support du quota ?  
non tu t'es déja fait chier a patcher postfix pour le support des quotas
-> utiliser des filtres ?
je doute que tu y penses actuellement vu que tu sembles déja présenter des soucis a poser tes mails.
Ce a quoi on rajoutes le fait que maildrop ne crees pas les boites mail ( Maildir ) pour la simple raison que ce n'est pas son taf ( cf documentation de maildrop )
ce qui va encore t'entrainer dans un certain nombre de soucis
Bref dans ton cas tu devrais t'en tenir a l'utilisation de virtual qui lui sait créer les boites mails.
Ton souci est un problème de droits. tu devrais pouvoir le résoudre simplement ( le fait qu'un répoertoire appartienne a un user n'implique pas forcément que ce dit user dispose des droits nécessaires pour écrire .
(a noter pour l'histoire que recompiler maildrop pour le support mysql+quota est trivial , un simplement changement dans le debian/rules et on n'en parle plus :o )


---------------
Intermittent du GNU
mood
Publicité
Posté le 15-02-2007 à 12:12:26  profilanswer
 

n°886845
mikala
Souviens toi du 5 Novembre...
Posté le 15-02-2007 à 12:13:49  profilanswer
 

toniotonio a écrit :

ou alors tu compiles le tout : courier-imap, maildrop...
 
.


c'est a mon avis un peu osé de lui demander d'installer/compiler tout ceci .


---------------
Intermittent du GNU
n°886859
toniotonio
Posté le 15-02-2007 à 12:45:45  profilanswer
 

certes on peut se passer de maildrop (effectivement pour le support des quotas c'est pas la peine), mais le reste est plutot utile, peut etre pas tt de suite mais plus tard.
apres c'est une question de choix
la creation des maildir se regle par 2 lignes dans le maildroprc
 


Message édité par toniotonio le 15-02-2007 à 12:49:09
n°886862
mikala
Souviens toi du 5 Novembre...
Posté le 15-02-2007 à 12:52:03  profilanswer
 

lorsque la boite mail n'existe pas a l'origine ? :)


---------------
Intermittent du GNU
n°886864
toniotonio
Posté le 15-02-2007 à 12:53:53  profilanswer
 

:??:

n°886866
Doudos
Guns 4 Show Knives 4 a Pro
Posté le 15-02-2007 à 13:00:27  profilanswer
 

mikala a écrit :

quel peut etre l'interet de mettre maildrop  dans ton cas ?
-> le support du quota ?  
non tu t'es déja fait chier a patcher postfix pour le support des quotas
-> utiliser des filtres ?
je doute que tu y penses actuellement vu que tu sembles déja présenter des soucis a poser tes mails.
Ce a quoi on rajoutes le fait que maildrop ne crees pas les boites mail ( Maildir ) pour la simple raison que ce n'est pas son taf ( cf documentation de maildrop )
ce qui va encore t'entrainer dans un certain nombre de soucis
Bref dans ton cas tu devrais t'en tenir a l'utilisation de virtual qui lui sait créer les boites mails.
Ton souci est un problème de droits. tu devrais pouvoir le résoudre simplement ( le fait qu'un répoertoire appartienne a un user n'implique pas forcément que ce dit user dispose des droits nécessaires pour écrire .
(a noter pour l'histoire que recompiler maildrop pour le support mysql+quota est trivial , un simplement changement dans le debian/rules et on n'en parle plus :o )


Pourtant, dans mon cas l'user vmail a bien les droits d'écritures non ?

Code :
  1. #ls -la /var/spool/vmail
  2. total 16
  3. drw-r-----  2 vmail   vmail   4096 2007-02-14 21:30 .
  4. drwxr-xr-x  7 root    root    4096 2007-02-14 15:24 ..
  5. -rw-r--r--  1 postfix postfix  567 2007-02-06 14:58 .bash_profile
  6. -rw-r--r--  1 postfix postfix 1834 2007-02-06 14:58 .bashrc


j'ai du loupé quelque chose...

Message cité 1 fois
Message édité par Doudos le 15-02-2007 à 13:01:09
n°886869
toniotonio
Posté le 15-02-2007 à 13:05:07  profilanswer
 

drwxrwx---   ce serait mieux sur le repertoire :)

n°886870
mikala
Souviens toi du 5 Novembre...
Posté le 15-02-2007 à 13:08:03  profilanswer
 

disons que tu rajoutes ( on peut en parler sur jabber ou en pm si tu veux ) un compte email dans ta base mysql.
Ensuite postfix récuperes les mails a destination de ce compte et les refiles a maildrop.
le comportement de maildrop avant la 1.8 (et l'apparition d'authlib )était de se placer dans la maildir en question avant de lire son fichier de configuration si je n'abuses , la maildir n'existant pas , il avait une forte tendance a s'arreter au milieu du gué :).
Comment procèdes tu afin de creer cette maildir a l'aide de maildrop ?


---------------
Intermittent du GNU
n°886872
mikala
Souviens toi du 5 Novembre...
Posté le 15-02-2007 à 13:10:24  profilanswer
 

Doudos a écrit :

Pourtant, dans mon cas l'user vmail a bien les droits d'écritures non ?

Code :
  1. #ls -la /var/spool/vmail
  2. total 16
  3. drw-r-----  2 vmail   vmail   4096 2007-02-14 21:30 .
  4. drwxr-xr-x  7 root    root    4096 2007-02-14 15:24 ..
  5. -rw-r--r--  1 postfix postfix  567 2007-02-06 14:58 .bash_profile
  6. -rw-r--r--  1 postfix postfix 1834 2007-02-06 14:58 .bashrc


j'ai du loupé quelque chose...


il pourrait écrire mais ne peut entrer dans le répertoire ;)
 


---------------
Intermittent du GNU
n°886873
toniotonio
Posté le 15-02-2007 à 13:11:29  profilanswer
 

mikala a écrit :

disons que tu rajoutes ( on peut en parler sur jabber ou en pm si tu veux ) un compte email dans ta base mysql.
Ensuite postfix récuperes les mails a destination de ce compte et les refiles a maildrop.
le comportement de maildrop avant la 1.8 (et l'apparition d'authlib )était de se placer dans la maildir en question avant de lire son fichier de configuration si je n'abuses , la maildir n'existant pas , il avait une forte tendance a s'arreter au milieu du gué :).
Comment procèdes tu afin de creer cette maildir a l'aide de maildrop ?


 
je comprends mieux ce que tu voulais dire
j'ai longtemps utilisé la 1.6.3 avec un script de creation du maildir dans le fichier de conf
lors de la livraison du 1er mail le maildir etait crée.
le souci etait si aucun mail n'etait envoyé le user ne pouvait pas voir sa boite par imap ou pop. (maildr inexistant)
 
un truc du style:

Code :
  1. `[ -d $DEFAULT ] || (maildirmake $DEFAULT && maildirmake -f Spam $DEFAULT && maildirmake -f sent-mail $DEFAULT)`

mood
Publicité
Posté le 15-02-2007 à 13:11:29  profilanswer
 

n°886874
Doudos
Guns 4 Show Knives 4 a Pro
Posté le 15-02-2007 à 13:13:02  profilanswer
 

toniotonio a écrit :

drwxrwx---   ce serait mieux sur le repertoire :)


merci pour ton aide tonio ! :jap:
 
ça fonctionne, les dossiers ont bien été créés dans /var/spool/vmail !! :D
 
maintenant, faut que j'attaque squirrelmail ...

n°886876
mikala
Souviens toi du 5 Novembre...
Posté le 15-02-2007 à 13:16:10  profilanswer
 

toniotonio a écrit :

je comprends mieux ce que tu voulais dire
j'ai longtemps utilisé la 1.6.3 avec un script de creation du maildir dans le fichier de conf
lors de la livraison du 1er mail le maildir etait crée.
le souci etait si aucun mail n'etait envoyé le user ne pouvait pas voir sa boite par imap ou pop. (maildr inexistant)
 
un truc du style:

Code :
  1. `[ -d $DEFAULT ] || (maildirmake $DEFAULT && maildirmake -f Spam $DEFAULT && maildirmake -f sent-mail $DEFAULT)`



cela n'a jamais marché chez moi :/ ( j'avais opté pour un petit hack au niveau de postfixadmin pour créer les boites )
je vais retester tiens .


---------------
Intermittent du GNU
n°886877
toniotonio
Posté le 15-02-2007 à 13:18:53  profilanswer
 

tu utilisais quoi comme hack pour PA ?

n°886879
mikala
Souviens toi du 5 Novembre...
Posté le 15-02-2007 à 13:25:24  profilanswer
 

toniotonio a écrit :

tu utilisais quoi comme hack pour PA ?


un truc horrible :D
 

Code :
  1. system("sudo /usr/sbin/maildirmake.sh ".$fDomain." ".$_POST['fUsername']." ".$quota);


au niveau des create-mailbox.php

Code :
  1. cat /usr/sbin/maildirmake.sh
  2. #!/bin/bash
  3. set -e
  4. test -e /data/virtual/$1 || mkdir /data/virtual/$1
  5. cd "/data/virtual/$1"
  6. maxquota="$3""S"
  7. nomboite="$2@$1"
  8. #echo $maxquota $nomboite
  9. maildirmake $nomboite
  10. maildirmake -q $maxquota $nomboite
  11. chown -R 1029:1029 /data/virtual/$1/$2@$1
  12. chmod -R g-s /data/virtual/$1/$2@$1


pour le maildirmake.sh
et un sudo adapté ;)
 


---------------
Intermittent du GNU
n°886880
toniotonio
Posté le 15-02-2007 à 13:27:33  profilanswer
 

:)  pas mal  !

n°886970
Doudos
Guns 4 Show Knives 4 a Pro
Posté le 15-02-2007 à 16:47:50  profilanswer
 

telnet localhost 25/110/143 fonctionnent nikel... j'peux me loguer sans pb apparemment...
 
par contre j'ai essayé de mettre Squirrelmail (sans passer par apt-get install), donc j'ai mis direct les fichiers dans un dossier à la racine web d'apache : /www/squirrelmail
 
maintenant quand j'essai de me loguer ça a l'air de marcher mais j'ai cette erreur ensuite :

Citation :

ERROR
Could not create initial preference file!
/var/local/squirrelmail/data/ should be writable by user www-data
Please contact your system administrator and report this error.


mais bon, /var/local/squirrelmail/data/ n'existe pas sur le système.
où faut-il renseigner le chemin correct vers le dossier de squirrelmail ? (je n'ai rien vu dans les fichiers de config)

n°886976
M300A
Posté le 15-02-2007 à 17:06:01  profilanswer
 

Et si tu utilisais le paquet Debian ? :D

n°886995
Doudos
Guns 4 Show Knives 4 a Pro
Posté le 15-02-2007 à 18:04:23  profilanswer
 

M300A a écrit :

Et si tu utilisais le paquet Debian ? :D


OK, c'est fait.
 
j'arrive à me loguer en interne (à partir d'une machine du réseau local) par contre de l'extérieur je sais pas si ça fonctionne ?
 
https://mail.[nomdedomaine].fr
 
faut encore toucher à la config de postfix parce que l'envoi de mail ne se fait plus :(
 

Code :
  1. Feb 15 18:05:49 samatan postfix/proxymap[25209]: warning: request for unapproved table: "unix:passwd.byname"
  2. Feb 15 18:05:49 samatan postfix/proxymap[25209]: warning: to approve this table for proxymap access, list proxy:unix:passwd.byname in main.cf:proxy_read_maps
  3. Feb 15 18:05:49 samatan postfix/smtpd[25208]: fatal: proxymap service is not configured for table "unix:passwd.byname"
  4. Feb 15 18:05:50 samatan postfix/master[24891]: warning: process /usr/libexec/postfix/smtpd pid 25208 exit status 1
  5. Feb 15 18:05:50 samatan postfix/master[24891]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
  6. Feb 15 18:06:50 samatan postfix/proxymap[25212]: warning: request for unapproved table: "unix:passwd.byname"
  7. Feb 15 18:06:50 samatan postfix/proxymap[25212]: warning: to approve this table for proxymap access, list proxy:unix:passwd.byname in main.cf:proxy_read_maps
  8. Feb 15 18:06:50 samatan postfix/smtpd[25211]: fatal: proxymap service is not configured for table "unix:passwd.byname"
  9. Feb 15 18:06:51 samatan postfix/master[24891]: warning: process /usr/libexec/postfix/smtpd pid 25211 exit status 1
  10. Feb 15 18:06:51 samatan postfix/master[24891]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling


Message édité par Doudos le 14-09-2014 à 10:21:59
n°887126
toniotonio
Posté le 16-02-2007 à 09:33:32  profilanswer
 

c'est visiblement le meme pb qu'avant: il faut specifier la table dans proxy_reads_maps


Message édité par toniotonio le 16-02-2007 à 09:33:51
n°887132
Doudos
Guns 4 Show Knives 4 a Pro
Posté le 16-02-2007 à 10:08:48  profilanswer
 

OK, j'ai ajouté une ligne dans le main.cf de postfix :

Code :
  1. local_recipient_maps = unix:passwd.byname $virtual_alias_maps


J'ai testé un envoi de mail à partir d'une machine du réseau local sur 3 adresses email externes hotmail, yahoo, et free, et j'ai seulement reçu le mail sur l'adresse de free. Et à l'inverse, d'une adresse externe sur une adresse @[monnomdedomaine].fr, je ne reçois rien... :(

 

Il doit me manquer quelque chose niveau config, j'ai vu sur différents guides qu'il y avait 2 façons de paramétrer un serveur SMTP (soit un SMTP relais, soit un SMTP principal), comment savoir quel est le mieux adapté dans mon cas ? sachant que le serveur web/mail se trouve sur un réseau local derrière un routeur lui même relié à une freebox.

 

Et pourquoi postfix cherche t-il à se connecter au SMTP de yahoo ?

 
Code :
  1. Feb 16 09:27:42 samatan postfix/smtp[3700]: 5ED81E40DA: to=<dxxxxxx_at_hotmail.com>, relay=none, delay=37536, delays=37386/0.03/150/0, dsn=4.4.1, status=deferred (connect to mx1.hotmail.com[65.54.244.136]: Connection timed out)
  2. Feb 16 09:27:42 samatan postfix/smtp[3701]: connect to d.mx.mail.yahoo.com[216.39.53.2]: Connection timed out (port 25)
  3. Feb 16 09:27:42 samatan postfix/smtp[3701]: 141C6E40DB: to=<e_mxrxrx_at_yahoo.fr>, relay=none, delay=37325, delays=37174/0.02/150/0, dsn=4.4.1, status=deferred (connect to d.mx.mail.yahoo.com[216.39.53.2]: Connection timed out)
  4. Feb 16 09:58:32 samatan postfix/qmgr[3030]: 3583BE40CE: from=<test_at_[monnomdedomaine].fr>, size=385, nrcpt=1 (queue active)
  5. Feb 16 09:59:04 samatan postfix/smtp[3714]: connect to f.mx.mail.yahoo.com[209.191.88.247]: Connection timed out (port 25)
  6. Feb 16 09:59:34 samatan postfix/smtp[3714]: connect to g.mx.mail.yahoo.com[206.190.53.191]: Connection timed out (port 25)
  7. Feb 16 10:00:04 samatan postfix/smtp[3714]: connect to a.mx.mail.yahoo.com[209.191.118.103]: Connection timed out (port 25)
  8. Feb 16 10:00:34 samatan postfix/smtp[3714]: connect to g.mx.mail.yahoo.com[209.191.88.239]: Connection timed out (port 25)
  9. Feb 16 10:01:04 samatan postfix/smtp[3714]: connect to f.mx.mail.yahoo.com[68.142.202.247]: Connection timed out (port 25)
  10. Feb 16 10:01:04 samatan postfix/smtp[3714]: 3583BE40CE: to=<e_mxrxrx_at_yahoo.fr>, relay=none, delay=40109, delays=39957/0.03/151/0, dsn=4.4.1, status=deferred (connect to f.mx.mail.yahoo.com[68.142.202.247]: Connection timed out)


Message édité par Doudos le 14-09-2014 à 10:27:41
n°887136
toniotonio
Posté le 16-02-2007 à 10:29:56  profilanswer
 

non ce n'est pas cette ligne qu'il faut modifier
il faut specifier a postfix pour quelle table il a le droit d'utiliser le demon proxymap
c'est la ligne proxy_reads_maps qui donne cette config.
 
poste un postconf -d pour avoir ta conf par defaut de postfix
 
puis un postconf -n pour avoir les modifs inscrites a ton main.cf
 
pour la facon de parametrer le serveur c'est le parametre relayhost.  
Tu specifies si ton serveur doit se connecter en direct sur le smtp du destinataire ou bien si tu passes par un smarthost, c'est à dire le smtp de ton provider par exemple qui s'occupe de faire le relais.  
Lorsqu'on a une ip publique ADSL,  il est preferable d'utiliser un smarthost.  (Le range de ton ip publique est certainement blacklisté par de nombreuses RBL et tes mails seront refusés suivant les destinataires .)
 
 
 
sinon postfix cherche a se connecter a un smtp de yahoo car tout simplemetn tu envoies un mail a une adresse de Yahoo !


Message édité par toniotonio le 16-02-2007 à 10:31:40
n°887141
Doudos
Guns 4 Show Knives 4 a Pro
Posté le 16-02-2007 à 10:40:43  profilanswer
 

postconf -d

Code :
  1. 2bounce_notice_recipient = postmaster
  2. access_map_reject_code = 554
  3. address_verify_default_transport = $default_transport
  4. address_verify_local_transport = $local_transport
  5. address_verify_map =
  6. address_verify_negative_cache = yes
  7. address_verify_negative_expire_time = 3d
  8. address_verify_negative_refresh_time = 3h
  9. address_verify_poll_count = 3
  10. address_verify_poll_delay = 3s
  11. address_verify_positive_expire_time = 31d
  12. address_verify_positive_refresh_time = 7d
  13. address_verify_relay_transport = $relay_transport
  14. address_verify_relayhost = $relayhost
  15. address_verify_sender = postmaster
  16. address_verify_sender_dependent_relayhost_maps = $sender_dependent_relayhost_maps
  17. address_verify_service_name = verify
  18. address_verify_transport_maps = $transport_maps
  19. address_verify_virtual_transport = $virtual_transport
  20. alias_database = hash:/etc/aliases
  21. alias_maps = hash:/etc/aliases, nis:mail.aliases
  22. allow_mail_to_commands = alias, forward
  23. allow_mail_to_files = alias, forward
  24. allow_min_user = no
  25. allow_percent_hack = yes
  26. allow_untrusted_routing = no
  27. alternate_config_directories =
  28. always_bcc =
  29. anvil_rate_time_unit = 60s
  30. anvil_status_update_time = 600s
  31. append_at_myorigin = yes
  32. append_dot_mydomain = yes
  33. application_event_drain_time = 100s
  34. authorized_flush_users = static:anyone
  35. authorized_mailq_users = static:anyone
  36. authorized_submit_users = static:anyone
  37. backwards_bounce_logfile_compatibility = yes
  38. berkeley_db_create_buffer_size = 16777216
  39. berkeley_db_read_buffer_size = 131072
  40. best_mx_transport =
  41. biff = yes
  42. body_checks =
  43. body_checks_size_limit = 51200
  44. bounce_notice_recipient = postmaster
  45. bounce_queue_lifetime = 5d
  46. bounce_service_name = bounce
  47. bounce_size_limit = 50000
  48. bounce_template_file =
  49. broken_sasl_auth_clients = no
  50. canonical_classes = envelope_sender, envelope_recipient, header_sender, header_recipient
  51. canonical_maps =
  52. cleanup_service_name = cleanup
  53. command_directory = /usr/sbin
  54. command_execution_directory =
  55. command_expansion_filter = 1234567890!@%-_=+:,./abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
  56. command_time_limit = 1000s
  57. config_directory = /etc/postfix
  58. connection_cache_protocol_timeout = 5s
  59. connection_cache_service_name = scache
  60. connection_cache_status_update_time = 600s
  61. connection_cache_ttl_limit = 2s
  62. content_filter =
  63. daemon_directory = /usr/libexec/postfix
  64. daemon_timeout = 18000s
  65. debug_peer_level = 2
  66. debug_peer_list =
  67. default_database_type = hash
  68. default_delivery_slot_cost = 5
  69. default_delivery_slot_discount = 50
  70. default_delivery_slot_loan = 3
  71. default_destination_concurrency_limit = 20
  72. default_destination_recipient_limit = 50
  73. default_extra_recipient_limit = 1000
  74. default_minimum_delivery_slots = 3
  75. default_privs = nobody
  76. default_process_limit = 100
  77. default_rbl_reply = $rbl_code Service unavailable; $rbl_class [$rbl_what] blocked using $rbl_domain${rbl_reason?; $rbl_reason}
  78. default_recipient_limit = 10000
  79. default_transport = smtp
  80. default_verp_delimiters = +=
  81. defer_code = 450
  82. defer_service_name = defer
  83. defer_transports =
  84. delay_logging_resolution_limit = 2
  85. delay_notice_recipient = postmaster
  86. delay_warning_time = 0h
  87. deliver_lock_attempts = 20
  88. deliver_lock_delay = 1s
  89. disable_dns_lookups = no
  90. disable_mime_input_processing = no
  91. disable_mime_output_conversion = no
  92. disable_verp_bounces = no
  93. disable_vrfy_command = no
  94. dont_remove = 0
  95. double_bounce_sender = double-bounce
  96. duplicate_filter_limit = 1000
  97. empty_address_recipient = MAILER-DAEMON
  98. enable_original_recipient = yes
  99. error_notice_recipient = postmaster
  100. error_service_name = error
  101. execution_directory_expansion_filter = 1234567890!@%-_=+:,./abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
  102. expand_owner_alias = no
  103. export_environment = TZ MAIL_CONFIG LANG
  104. fallback_transport =
  105. fallback_transport_maps =
  106. fast_flush_domains = $relay_domains
  107. fast_flush_purge_time = 7d
  108. fast_flush_refresh_time = 12h
  109. fault_injection_code = 0
  110. flush_service_name = flush
  111. fork_attempts = 5
  112. fork_delay = 1s
  113. forward_expansion_filter = 1234567890!@%-_=+:,./abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
  114. forward_path = $home/.forward${recipient_delimiter}${extension}, $home/.forward
  115. frozen_delivered_to = yes
  116. hash_queue_depth = 1
  117. hash_queue_names = deferred, defer
  118. header_address_token_limit = 10240
  119. header_checks =
  120. header_size_limit = 102400
  121. helpful_warnings = yes
  122. home_mailbox =
  123. hopcount_limit = 50
  124. html_directory = no
  125. ignore_mx_lookup_error = no
  126. import_environment = MAIL_CONFIG MAIL_DEBUG MAIL_LOGTAG TZ XAUTHORITY DISPLAY LANG=C
  127. in_flow_delay = 1s
  128. inet_interfaces = all
  129. inet_protocols = ipv4
  130. initial_destination_concurrency = 5
  131. internal_mail_filter_classes =
  132. invalid_hostname_reject_code = 501
  133. ipc_idle = 100s
  134. ipc_timeout = 3600s
  135. ipc_ttl = 1000s
  136. line_length_limit = 2048
  137. lmtp_bind_address =
  138. lmtp_bind_address6 =
  139. lmtp_cname_overrides_servername = no
  140. lmtp_connect_timeout = 0s
  141. lmtp_connection_cache_destinations =
  142. lmtp_connection_cache_on_demand = yes
  143. lmtp_connection_cache_time_limit = 2s
  144. lmtp_connection_reuse_time_limit = 300s
  145. lmtp_data_done_timeout = 600s
  146. lmtp_data_init_timeout = 120s
  147. lmtp_data_xfer_timeout = 180s
  148. lmtp_defer_if_no_mx_address_found = no
  149. lmtp_destination_concurrency_limit = $default_destination_concurrency_limit
  150. lmtp_destination_recipient_limit = $default_destination_recipient_limit
  151. lmtp_discard_lhlo_keyword_address_maps =
  152. lmtp_discard_lhlo_keywords =
  153. lmtp_enforce_tls = no
  154. lmtp_generic_maps =
  155. lmtp_host_lookup = dns
  156. lmtp_lhlo_name = $myhostname
  157. lmtp_lhlo_timeout = 300s
  158. lmtp_line_length_limit = 990
  159. lmtp_mail_timeout = 300s
  160. lmtp_mx_address_limit = 5
  161. lmtp_mx_session_limit = 2
  162. lmtp_pix_workaround_delay_time = 10s
  163. lmtp_pix_workaround_threshold_time = 500s
  164. lmtp_quit_timeout = 300s
  165. lmtp_quote_rfc821_envelope = yes
  166. lmtp_randomize_addresses = yes
  167. lmtp_rcpt_timeout = 300s
  168. lmtp_rset_timeout = 20s
  169. lmtp_sasl_auth_enable = no
  170. lmtp_sasl_mechanism_filter =
  171. lmtp_sasl_password_maps =
  172. lmtp_sasl_path =
  173. lmtp_sasl_security_options = noplaintext, noanonymous
  174. lmtp_sasl_tls_security_options = $lmtp_sasl_security_options
  175. lmtp_sasl_tls_verified_security_options = $lmtp_sasl_tls_security_options
  176. lmtp_sasl_type = cyrus
  177. lmtp_send_xforward_command = no
  178. lmtp_sender_dependent_authentication = no
  179. lmtp_skip_5xx_greeting = yes
  180. lmtp_starttls_timeout = 300s
  181. lmtp_tcp_port = 24
  182. lmtp_tls_CAfile =
  183. lmtp_tls_CApath =
  184. lmtp_tls_cert_file =
  185. lmtp_tls_dcert_file =
  186. lmtp_tls_dkey_file = $lmtp_tls_dcert_file
  187. lmtp_tls_enforce_peername = yes
  188. lmtp_tls_exclude_ciphers =
  189. lmtp_tls_key_file = $lmtp_tls_cert_file
  190. lmtp_tls_loglevel = 0
  191. lmtp_tls_mandatory_ciphers = medium
  192. lmtp_tls_mandatory_exclude_ciphers =
  193. lmtp_tls_mandatory_protocols = SSLv3, TLSv1
  194. lmtp_tls_note_starttls_offer = no
  195. lmtp_tls_per_site =
  196. lmtp_tls_policy_maps =
  197. lmtp_tls_scert_verifydepth = 5
  198. lmtp_tls_secure_cert_match = nexthop
  199. lmtp_tls_security_level =
  200. lmtp_tls_session_cache_database =
  201. lmtp_tls_session_cache_timeout = 3600s
  202. lmtp_tls_verify_cert_match = hostname
  203. lmtp_use_tls = no
  204. lmtp_xforward_timeout = 300s
  205. local_command_shell =
  206. local_destination_concurrency_limit = 2
  207. local_destination_recipient_limit = 1
  208. local_header_rewrite_clients = permit_inet_interfaces
  209. local_recipient_maps = proxy:unix:passwd.byname $alias_maps
  210. local_transport = local:$myhostname
  211. luser_relay =
  212. mail_name = Postfix
  213. mail_owner = postfix
  214. mail_release_date = 20070130
  215. mail_spool_directory = /var/mail
  216. mail_version = 2.3.7
  217. mailbox_command =
  218. mailbox_command_maps =
  219. mailbox_delivery_lock = fcntl, dotlock
  220. mailbox_size_limit = 51200000
  221. mailbox_transport =
  222. mailbox_transport_maps =
  223. mailq_path = /usr/bin/mailq
  224. manpage_directory = /usr/local/man
  225. maps_rbl_domains =
  226. maps_rbl_reject_code = 554
  227. masquerade_classes = envelope_sender, header_sender, header_recipient
  228. masquerade_domains =
  229. masquerade_exceptions =
  230. max_idle = 100s
  231. max_use = 100
  232. maximal_backoff_time = 4000s
  233. maximal_queue_lifetime = 5d
  234. message_reject_characters =
  235. message_size_limit = 10240000
  236. message_strip_characters =
  237. milter_command_timeout = 30s
  238. milter_connect_macros = j {daemon_name} v
  239. milter_connect_timeout = 30s
  240. milter_content_timeout = 300s
  241. milter_data_macros = i
  242. milter_default_action = tempfail
  243. milter_end_of_data_macros = i
  244. milter_helo_macros = {tls_version} {cipher} {cipher_bits} {cert_subject} {cert_issuer}
  245. milter_macro_daemon_name = $myhostname
  246. milter_macro_v = $mail_name $mail_version
  247. milter_mail_macros = i {auth_type} {auth_authen} {auth_author} {mail_addr}
  248. milter_protocol = 2
  249. milter_rcpt_macros = i {rcpt_addr}
  250. milter_unknown_command_macros =
  251. mime_boundary_length_limit = 2048
  252. mime_header_checks = $header_checks
  253. mime_nesting_limit = 100
  254. minimal_backoff_time = 1000s
  255. multi_recipient_bounce_reject_code = 550
  256. mydestination = $myhostname, localhost.$mydomain, localhost
  257. mydomain = localdomain
  258. myhostname = samatan.localdomain
  259. mynetworks = 127.0.0.0/8 192.168.0.0/24
  260. mynetworks_style = subnet
  261. myorigin = $myhostname
  262. nested_header_checks = $header_checks
  263. newaliases_path = /usr/bin/newaliases
  264. non_fqdn_reject_code = 504
  265. non_smtpd_milters =
  266. notify_classes = resource, software
  267. owner_request_special = yes
  268. parent_domain_matches_subdomains = debug_peer_list,fast_flush_domains,mynetworks,permit_mx_backup_networks,qmqpd_authorized_clients,relay_domains,smtpd_access_maps
  269. permit_mx_backup_networks =
  270. pickup_service_name = pickup
  271. plaintext_reject_code = 450
  272. prepend_delivered_header = command, file, forward
  273. process_id_directory = pid
  274. propagate_unmatched_extensions = canonical, virtual
  275. proxy_interfaces =
  276. proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks
  277. qmgr_clog_warn_time = 300s
  278. qmgr_fudge_factor = 100
  279. qmgr_message_active_limit = 20000
  280. qmgr_message_recipient_limit = 20000
  281. qmgr_message_recipient_minimum = 10
  282. qmqpd_authorized_clients =
  283. qmqpd_error_delay = 1s
  284. qmqpd_timeout = 300s
  285. queue_directory = /var/spool/postfix
  286. queue_file_attribute_count_limit = 100
  287. queue_minfree = 0
  288. queue_run_delay = 1000s
  289. queue_service_name = qmgr
  290. rbl_reply_maps =
  291. readme_directory = no
  292. receive_override_options =
  293. recipient_bcc_maps =
  294. recipient_canonical_classes = envelope_recipient, header_recipient
  295. recipient_canonical_maps =
  296. recipient_delimiter =
  297. reject_code = 554
  298. relay_clientcerts =
  299. relay_destination_concurrency_limit = $default_destination_concurrency_limit
  300. relay_destination_recipient_limit = $default_destination_recipient_limit
  301. relay_domains = $mydestination
  302. relay_domains_reject_code = 554
  303. relay_recipient_maps =
  304. relay_transport = relay
  305. relayhost =
  306. relocated_maps =
  307. remote_header_rewrite_domain =
  308. require_home_directory = no
  309. resolve_dequoted_address = yes
  310. resolve_null_domain = no
  311. resolve_numeric_domain = no
  312. rewrite_service_name = rewrite
  313. sample_directory = /etc/postfix
  314. sender_bcc_maps =
  315. sender_canonical_classes = envelope_sender, header_sender
  316. sender_canonical_maps =
  317. sender_dependent_relayhost_maps =
  318. sendmail_path = /usr/sbin/sendmail
  319. service_throttle_time = 60s
  320. setgid_group = postdrop
  321. show_user_unknown_table_name = yes
  322. showq_service_name = showq
  323. smtp_always_send_ehlo = yes
  324. smtp_bind_address =
  325. smtp_bind_address6 =
  326. smtp_cname_overrides_servername = no
  327. smtp_connect_timeout = 30s
  328. smtp_connection_cache_destinations =
  329. smtp_connection_cache_on_demand = yes
  330. smtp_connection_cache_time_limit = 2s
  331. smtp_connection_reuse_time_limit = 300s
  332. smtp_data_done_timeout = 600s
  333. smtp_data_init_timeout = 120s
  334. smtp_data_xfer_timeout = 180s
  335. smtp_defer_if_no_mx_address_found = no
  336. smtp_destination_concurrency_limit = $default_destination_concurrency_limit
  337. smtp_destination_recipient_limit = $default_destination_recipient_limit
  338. smtp_discard_ehlo_keyword_address_maps =
  339. smtp_discard_ehlo_keywords =
  340. smtp_enforce_tls = no
  341. smtp_fallback_relay = $fallback_relay
  342. smtp_generic_maps =
  343. smtp_helo_name = $myhostname
  344. smtp_helo_timeout = 300s
  345. smtp_host_lookup = dns
  346. smtp_line_length_limit = 990
  347. smtp_mail_timeout = 300s
  348. smtp_mx_address_limit = 5
  349. smtp_mx_session_limit = 2
  350. smtp_never_send_ehlo = no
  351. smtp_pix_workaround_delay_time = 10s
  352. smtp_pix_workaround_threshold_time = 500s
  353. smtp_quit_timeout = 300s
  354. smtp_quote_rfc821_envelope = yes
  355. smtp_randomize_addresses = yes
  356. smtp_rcpt_timeout = 300s
  357. smtp_rset_timeout = 20s
  358. smtp_sasl_auth_enable = no
  359. smtp_sasl_mechanism_filter =
  360. smtp_sasl_password_maps =
  361. smtp_sasl_path =
  362. smtp_sasl_security_options = noplaintext, noanonymous
  363. smtp_sasl_tls_security_options = $smtp_sasl_security_options
  364. smtp_sasl_tls_verified_security_options = $smtp_sasl_tls_security_options
  365. smtp_sasl_type = cyrus
  366. smtp_send_xforward_command = no
  367. smtp_sender_dependent_authentication = no
  368. smtp_skip_5xx_greeting = yes
  369. smtp_skip_quit_response = yes
  370. smtp_starttls_timeout = 300s
  371. smtp_tls_CAfile =
  372. smtp_tls_CApath =
  373. smtp_tls_cert_file =
  374. smtp_tls_dcert_file =
  375. smtp_tls_dkey_file = $smtp_tls_dcert_file
  376. smtp_tls_enforce_peername = yes
  377. smtp_tls_exclude_ciphers =
  378. smtp_tls_key_file = $smtp_tls_cert_file
  379. smtp_tls_loglevel = 0
  380. smtp_tls_mandatory_ciphers = medium
  381. smtp_tls_mandatory_exclude_ciphers =
  382. smtp_tls_mandatory_protocols = SSLv3, TLSv1
  383. smtp_tls_note_starttls_offer = no
  384. smtp_tls_per_site =
  385. smtp_tls_policy_maps =
  386. smtp_tls_scert_verifydepth = 5
  387. smtp_tls_secure_cert_match = nexthop, dot-nexthop
  388. smtp_tls_security_level =
  389. smtp_tls_session_cache_database =
  390. smtp_tls_session_cache_timeout = 3600s
  391. smtp_tls_verify_cert_match = hostname
  392. smtp_use_tls = no
  393. smtp_xforward_timeout = 300s
  394. smtpd_authorized_verp_clients = $authorized_verp_clients
  395. smtpd_authorized_xclient_hosts =
  396. smtpd_authorized_xforward_hosts =
  397. smtpd_banner = $myhostname ESMTP $mail_name
  398. smtpd_client_connection_count_limit = 50
  399. smtpd_client_connection_rate_limit = 0
  400. smtpd_client_event_limit_exceptions = ${smtpd_client_connection_limit_exceptions:$mynetworks}
  401. smtpd_client_message_rate_limit = 0
  402. smtpd_client_new_tls_session_rate_limit = 0
  403. smtpd_client_recipient_rate_limit = 0
  404. smtpd_client_restrictions =
  405. smtpd_data_restrictions =
  406. smtpd_delay_open_until_valid_rcpt = yes
  407. smtpd_delay_reject = yes
  408. smtpd_discard_ehlo_keyword_address_maps =
  409. smtpd_discard_ehlo_keywords =
  410. smtpd_end_of_data_restrictions =
  411. smtpd_enforce_tls = no
  412. smtpd_error_sleep_time = 1s
  413. smtpd_etrn_restrictions =
  414. smtpd_expansion_filter = \t\40!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~
  415. smtpd_forbidden_commands = CONNECT GET POST
  416. smtpd_hard_error_limit = 20
  417. smtpd_helo_required = no
  418. smtpd_helo_restrictions =
  419. smtpd_history_flush_threshold = 100
  420. smtpd_junk_command_limit = 100
  421. smtpd_milters =
  422. smtpd_noop_commands =
  423. smtpd_null_access_lookup_key = <>
  424. smtpd_peername_lookup = yes
  425. smtpd_policy_service_max_idle = 300s
  426. smtpd_policy_service_max_ttl = 1000s
  427. smtpd_policy_service_timeout = 100s
  428. smtpd_proxy_ehlo = $myhostname
  429. smtpd_proxy_filter =
  430. smtpd_proxy_timeout = 100s
  431. smtpd_recipient_limit = 1000
  432. smtpd_recipient_overshoot_limit = 1000
  433. smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination
  434. smtpd_reject_unlisted_recipient = yes
  435. smtpd_reject_unlisted_sender = no
  436. smtpd_restriction_classes =
  437. smtpd_sasl_auth_enable = no
  438. smtpd_sasl_authenticated_header = no
  439. smtpd_sasl_exceptions_networks =
  440. smtpd_sasl_local_domain =
  441. smtpd_sasl_path = smtpd
  442. smtpd_sasl_security_options = noanonymous
  443. smtpd_sasl_tls_security_options = $smtpd_sasl_security_options
  444. smtpd_sasl_type = cyrus
  445. smtpd_sender_login_maps =
  446. smtpd_sender_restrictions =
  447. smtpd_soft_error_limit = 10
  448. smtpd_starttls_timeout = 300s
  449. smtpd_timeout = 300s
  450. smtpd_tls_CAfile =
  451. smtpd_tls_CApath =
  452. smtpd_tls_always_issue_session_ids = yes
  453. smtpd_tls_ask_ccert = no
  454. smtpd_tls_auth_only = no
  455. smtpd_tls_ccert_verifydepth = 5
  456. smtpd_tls_cert_file =
  457. smtpd_tls_dcert_file =
  458. smtpd_tls_dh1024_param_file =
  459. smtpd_tls_dh512_param_file =
  460. smtpd_tls_dkey_file = $smtpd_tls_dcert_file
  461. smtpd_tls_exclude_ciphers =
  462. smtpd_tls_key_file = $smtpd_tls_cert_file
  463. smtpd_tls_loglevel = 0
  464. smtpd_tls_mandatory_ciphers = medium
  465. smtpd_tls_mandatory_exclude_ciphers =
  466. smtpd_tls_mandatory_protocols = SSLv3, TLSv1
  467. smtpd_tls_received_header = no
  468. smtpd_tls_req_ccert = no
  469. smtpd_tls_security_level =
  470. smtpd_tls_session_cache_database =
  471. smtpd_tls_session_cache_timeout = 3600s
  472. smtpd_tls_wrappermode = no
  473. smtpd_use_tls = no
  474. soft_bounce = no
  475. stale_lock_time = 500s
  476. strict_7bit_headers = no
  477. strict_8bitmime = no
  478. strict_8bitmime_body = no
  479. strict_mime_encoding_domain = no
  480. strict_rfc821_envelopes = no
  481. sun_mailtool_compatibility = no
  482. swap_bangpath = yes
  483. syslog_facility = mail
  484. syslog_name = postfix
  485. tls_daemon_random_bytes = 32
  486. tls_export_cipherlist = ALL:+RC4:@STRENGTH
  487. tls_high_cipherlist = ALL:!EXPORT:!LOW:!MEDIUM:+RC4:@STRENGTH
  488. tls_low_cipherlist = ALL:!EXPORT:+RC4:@STRENGTH
  489. tls_medium_cipherlist = ALL:!EXPORT:!LOW:+RC4:@STRENGTH
  490. tls_null_cipherlist = !aNULL:eNULL+kRSA
  491. tls_random_bytes = 32
  492. tls_random_exchange_name = ${config_directory}/prng_exch
  493. tls_random_prng_update_period = 3600s
  494. tls_random_reseed_period = 3600s
  495. tls_random_source = dev:/dev/urandom
  496. trace_service_name = trace
  497. transport_maps =
  498. transport_retry_time = 60s
  499. trigger_timeout = 10s
  500. undisclosed_recipients_header = To: undisclosed-recipients:;
  501. unknown_address_reject_code = 450
  502. unknown_client_reject_code = 450
  503. unknown_hostname_reject_code = 450
  504. unknown_local_recipient_reject_code = 550
  505. unknown_relay_recipient_reject_code = 550
  506. unknown_virtual_alias_reject_code = 550
  507. unknown_virtual_mailbox_reject_code = 550
  508. unverified_recipient_reject_code = 450
  509. unverified_sender_reject_code = 450
  510. verp_delimiter_filter = -=+
  511. virtual_alias_domains = $virtual_alias_maps
  512. virtual_alias_expansion_limit = 1000
  513. virtual_alias_maps = $virtual_maps
  514. virtual_alias_recursion_limit = 1000
  515. virtual_create_maildirsize = no
  516. virtual_destination_concurrency_limit = $default_destination_concurrency_limit
  517. virtual_destination_recipient_limit = $default_destination_recipient_limit
  518. virtual_gid_maps =
  519. virtual_mailbox_base =
  520. virtual_mailbox_domains = $virtual_mailbox_maps
  521. virtual_mailbox_limit = 51200000
  522. virtual_mailbox_limit_inbox = no
  523. virtual_mailbox_limit_maps =
  524. virtual_mailbox_limit_override = no
  525. virtual_mailbox_lock = fcntl
  526. virtual_mailbox_maps =
  527. virtual_maildir_extended = no
  528. virtual_maildir_limit_message = Sorry, the user's maildir has overdrawn his diskspace quota, please try again later.
  529. virtual_maildir_suffix =
  530. virtual_minimum_uid = 100
  531. virtual_overquota_bounce = no
  532. virtual_transport = virtual
  533. virtual_trash_count = no
  534. virtual_trash_name = .Trash
  535. virtual_uid_maps =


postconf -n

Code :
  1. append_dot_mydomain = yes
  2. biff = no
  3. command_directory = /usr/sbin
  4. config_directory = /etc/postfix
  5. daemon_directory = /usr/libexec/postfix
  6. disable_vrfy_command = yes
  7. html_directory = no
  8. inet_interfaces = all
  9. mail_owner = postfix
  10. mailq_path = /usr/bin/mailq
  11. manpage_directory = /usr/local/man
  12. mydestination = $myhostname, localhost.$mydomain, localhost
  13. mydomain = [monnomdedomaine].fr
  14. myhostname = samatan.[monnomdedomaine].fr
  15. mynetworks = 127.0.0.0/8 192.168.0.0/24
  16. newaliases_path = /usr/bin/newaliases
  17. proxy_read_maps = unix:passwd.byname $virtual_alias_maps $virtual_mailbox_domains $virtual_mailbox_maps $virtual_mailbox_limit_maps
  18. queue_directory = /var/spool/postfix
  19. readme_directory = no
  20. relayhost = smtp.free.fr
  21. sample_directory = /etc/postfix
  22. sendmail_path = /usr/sbin/sendmail
  23. setgid_group = postdrop
  24. smtpd_banner = $myhostname ESMTP (Debian/GNU)
  25. smtpd_client_restrictions = reject_unknown_client,
  26.         permit_mynetworks
  27. smtpd_helo_required = yes
  28. smtpd_recipient_restrictions = permit_mynetworks,
  29.         reject_unauth_destination,
  30.         reject_unknown_recipient_domain,
  31.         reject_non_fqdn_recipient
  32. smtpd_sender_restrictions = permit_mynetworks,
  33.         reject_unknown_sender_domain, #verifie que le domaine existe
  34.         warn_if_reject reject_unverified_sender
  35. unknown_local_recipient_reject_code = 450
  36. virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_aliases.cf,proxy:mysql:/etc/postfix/mysql-virtual_aliases_mailbox.cf
  37. virtual_create_maildirsize = yes
  38. virtual_gid_maps = static:5000
  39. virtual_mailbox_base = /var/spool/vmail
  40. virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
  41. virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
  42. virtual_mailbox_limit_override = yes
  43. virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
  44. virtual_maildir_limit_message = "Desole, la boite email de l'utilisateur est pleine, essayez plus tard."
  45. virtual_overquota_bounce = yes
  46. virtual_uid_maps = static:5000


Sur tes conseils, j'ai donc virer local_recipient_maps, et mis "unix: passwd.byname" dans proxy_read_maps.
J'ai également ajouté smtp.free.fr dans relay_host et je viens de recevoir les mails destinés aux adresses hotmail et yahoo... donc c bon :D
 
Faut juste que je comprenne pourquoi je ne peux pas reçevoir de mails maintenant...


Message édité par Doudos le 14-09-2014 à 10:25:04
n°887143
toniotonio
Posté le 16-02-2007 à 10:48:18  profilanswer
 

que te disent les logs ?
une question toute simple: as tu declaré un champ MX dans les dns de ton domaine ?  
pour recevoir des mails sur le port 25 il faut que les autres smtp connaissent l'existence de ton serveur en tant que MX (Mail Exchanger) de ton domaine.
 

n°887147
Doudos
Guns 4 Show Knives 4 a Pro
Posté le 16-02-2007 à 11:02:12  profilanswer
 

les logs ne disent rien de plus...
 
actuellement j'ai ça chez sur l'admin 1and1.fr :

Code :
  1. Paramètres du serveur de noms
  2. Serveur de noms : Serveur de noms 1&1
  3. Adresse IP (A-record) : Autre IP : 82.232.94.xxx
  4. Serveur email (MX-record) : Serveur email 1&1


 
Je dois renseigner mon adresse ip dans le MX-Record et gérer ça sur le serveur avec bind ? comment ? (j'avoue que cette partie dns est plutot obscure pour moi...)

n°887149
toniotonio
Posté le 16-02-2007 à 11:07:38  profilanswer
 

Doudos a écrit :

les logs ne disent rien de plus...
 
actuellement j'ai ça chez sur l'admin 1and1.fr :

Code :
  1. Paramètres du serveur de noms
  2. Serveur de noms : Serveur de noms 1&1
  3. Adresse IP (A-record) : Autre IP : 82.232.94.xxx
  4. Serveur email (MX-record) : Serveur email 1&1


 
Je dois renseigner mon adresse ip dans le MX-Record et gérer ça sur le serveur avec bind ? comment ? (j'avoue que cette partie dns est plutot obscure pour moi...)


 
 
tu dois gerer tout ca sur la console d'admin de 1&1
 
il te faut un enregistrement A avec le FQDN de ton serveur
et un enregistrement MX avec ce meme A (pas d'IP pour un champ MX)
 
dans ton cas:
A: samatan.lougabian.fr    ton IP    
MX: samatan.lougabian.fr    (ne met qu'un champ MX)
 
 
bien sur tu conserve le A lougabian.fr vers ton ip egalement


Message édité par toniotonio le 16-02-2007 à 11:09:03
n°887169
Doudos
Guns 4 Show Knives 4 a Pro
Posté le 16-02-2007 à 12:24:08  profilanswer
 

Donc j'ai essayé de changer le MX et après validation des nouveaux paramètres, j'obtiens ça sur la console d'admin 1and1 :

 

[lien image non valide]

 

Faut-il s'en inquiéter ? :sweat:

 

edit: de toute façon la modif n'a pas été prise en compte, le MX est revenu sur 1and1...


Message édité par Doudos le 14-09-2014 à 10:24:07
n°887172
toniotonio
Posté le 16-02-2007 à 12:27:15  profilanswer
 

si tu as cree un A avec samatan.lougabian.fr c'est que le dns ne s'est pas encore mis a jour chez eux.
il faut attendre avant de lancer l'operation.
 

n°892493
Doudos
Guns 4 Show Knives 4 a Pro
Posté le 05-03-2007 à 19:41:28  profilanswer
 

Bon, depuis le temps, je pense que les DNS ont été mis à jour, mais la réception de mail ne fonctionne toujours pas... :(

 

Voilà le contenu de mail.log :

Code :
  1. Mar  4 10:35:27 samatan postfix/smtpd[3851]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
  2. Mar  4 10:35:27 samatan postfix/smtpd[3851]: connect from unknown[222.122.12.123]
  3. Mar  4 10:35:28 samatan postfix/smtpd[3851]: lost connection after CONNECT from unknown[222.122.12.123]
  4. Mar  4 10:35:28 samatan postfix/smtpd[3851]: disconnect from unknown[222.122.12.123]
  5. Mar  4 10:38:48 samatan postfix/anvil[3853]: statistics: max connection rate 1/60s for (smtp:222.122.12.123) at Mar  4 10:35:27
  6. Mar  4 10:38:48 samatan postfix/anvil[3853]: statistics: max connection count 1 for (smtp:222.122.12.123) at Mar  4 10:35:27
  7. Mar  4 10:38:48 samatan postfix/anvil[3853]: statistics: max cache size 1 at Mar  4 10:35:27
  8. Mar  4 10:45:30 samatan postfix/smtpd[3862]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
  9. Mar  4 10:45:30 samatan postfix/smtpd[3862]: connect from unknown[222.122.12.123]
  10. Mar  4 10:45:31 samatan postfix/smtpd[3862]: warning: Illegal address syntax from unknown[222.122.12.123] in MAIL command: <atmpXXlt@82.232.94.xxx>
  11. Mar  4 10:45:31 samatan postfix/smtpd[3862]: lost connection after MAIL from unknown[222.122.12.123]
  12. Mar  4 10:45:31 samatan postfix/smtpd[3862]: disconnect from unknown[222.122.12.123]
  13. Mar  4 10:48:51 samatan postfix/anvil[3864]: statistics: max connection rate 1/60s for (smtp:222.122.12.123) at Mar  4 10:45:30
  14. Mar  4 10:48:51 samatan postfix/anvil[3864]: statistics: max connection count 1 for (smtp:222.122.12.123) at Mar  4 10:45:30
  15. Mar  4 10:48:51 samatan postfix/anvil[3864]: statistics: max cache size 1 at Mar  4 10:45:30
  16. Mar  4 11:03:32 samatan postfix/smtpd[3868]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
  17. Mar  4 11:03:32 samatan postfix/smtpd[3868]: connect from unknown[222.122.12.123]
  18. Mar  4 11:03:33 samatan postfix/smtpd[3868]: lost connection after CONNECT from unknown[222.122.12.123]
  19. Mar  4 11:03:33 samatan postfix/smtpd[3868]: disconnect from unknown[222.122.12.123]
  20. Mar  4 11:06:46 samatan postfix/smtpd[3871]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
  21. Mar  4 11:06:46 samatan postfix/smtpd[3871]: connect from unknown[222.122.12.123]
  22. Mar  4 11:06:47 samatan postfix/smtpd[3871]: warning: Illegal address syntax from unknown[222.122.12.123] in MAIL command: <atmpXXlt@82.232.94.xxx>
  23. Mar  4 11:06:47 samatan postfix/smtpd[3871]: lost connection after MAIL from unknown[222.122.12.123]
  24. Mar  4 11:06:47 samatan postfix/smtpd[3871]: disconnect from unknown[222.122.12.123]
  25. Mar  4 11:10:07 samatan postfix/anvil[3870]: statistics: max connection rate 1/60s for (smtp:222.122.12.123) at Mar  4 11:03:32
  26. Mar  4 11:10:07 samatan postfix/anvil[3870]: statistics: max connection count 1 for (smtp:222.122.12.123) at Mar  4 11:03:32
  27. Mar  4 11:10:07 samatan postfix/anvil[3870]: statistics: max cache size 1 at Mar  4 11:03:32
  28. Mar  4 18:59:34 samatan courierpop3login: Connection, ip=[:ffff:218.189.93.211]
  29. Mar  4 23:59:03 samatan postfix/smtpd[4195]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
  30. Mar  4 23:59:03 samatan postfix/smtpd[4195]: connect from 97.57.85.218.broad.fz.fj.dynamic.163data.com.cn[218.85.57.97]
  31. Mar  4 23:59:07 samatan postfix/smtpd[4198]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
  32. Mar  4 23:59:07 samatan postfix/smtpd[4198]: connect from 97.57.85.218.broad.fz.fj.dynamic.163data.com.cn[218.85.57.97]
  33. Mar  4 23:59:10 samatan postfix/smtpd[4198]: warning: non-SMTP command from 97.57.85.218.broad.fz.fj.dynamic.163data.com.cn[218.85.57.97]: Subject:?erelay ok?f82.232.94.xxx
  34. Mar  4 23:59:10 samatan postfix/smtpd[4198]: disconnect from 97.57.85.218.broad.fz.fj.dynamic.163data.com.cn[218.85.57.97]
  35. Mar  5 00:00:00 samatan dccifd[1794]: 1.2.74 rejected messages to 0 targets and discarded messages to 0 targets among 0 total since 03/04/07 00:00:00
  36. Mar  5 00:04:03 samatan postfix/smtpd[4195]: timeout after CONNECT from 97.57.85.218.broad.fz.fj.dynamic.163data.com.cn[218.85.57.97]
  37. Mar  5 00:04:03 samatan postfix/smtpd[4195]: disconnect from 97.57.85.218.broad.fz.fj.dynamic.163data.com.cn[218.85.57.97]
  38. Mar  5 00:07:23 samatan postfix/anvil[4197]: statistics: max connection rate 2/60s for (smtp:218.85.57.97) at Mar  4 23:59:07
  39. Mar  5 00:07:23 samatan postfix/anvil[4197]: statistics: max connection count 2 for (smtp:218.85.57.97) at Mar  4 23:59:07
  40. Mar  5 00:07:23 samatan postfix/anvil[4197]: statistics: max cache size 1 at Mar  4 23:59:03
  41. Mar  5 08:57:08 samatan postfix/smtpd[4490]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
  42. Mar  5 08:57:08 samatan postfix/smtpd[4490]: connect from unknown[222.122.12.123]
  43. Mar  5 08:57:08 samatan postfix/smtpd[4490]: lost connection after CONNECT from unknown[222.122.12.123]
  44. Mar  5 08:57:08 samatan postfix/smtpd[4490]: disconnect from unknown[222.122.12.123]
  45. Mar  5 09:00:28 samatan postfix/anvil[4492]: statistics: max connection rate 1/60s for (smtp:222.122.12.123) at Mar  5 08:57:08
  46. Mar  5 09:00:28 samatan postfix/anvil[4492]: statistics: max connection count 1 for (smtp:222.122.12.123) at Mar  5 08:57:08
  47. Mar  5 09:00:28 samatan postfix/anvil[4492]: statistics: max cache size 1 at Mar  5 08:57:08
  48. Mar  5 09:03:59 samatan postfix/smtpd[4493]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
  49. Mar  5 09:03:59 samatan postfix/smtpd[4493]: connect from unknown[222.122.12.123]
  50. Mar  5 09:04:00 samatan postfix/smtpd[4493]: warning: Illegal address syntax from unknown[222.122.12.123] in MAIL command: <atmpXXlt@82.232.94.xxx>
  51. Mar  5 09:04:00 samatan postfix/smtpd[4493]: lost connection after MAIL from unknown[222.122.12.123]
  52. Mar  5 09:04:00 samatan postfix/smtpd[4493]: disconnect from unknown[222.122.12.123]
  53. Mar  5 09:07:20 samatan postfix/anvil[4495]: statistics: max connection rate 1/60s for (smtp:222.122.12.123) at Mar  5 09:03:59
  54. Mar  5 09:07:20 samatan postfix/anvil[4495]: statistics: max connection count 1 for (smtp:222.122.12.123) at Mar  5 09:03:59
  55. Mar  5 09:07:20 samatan postfix/anvil[4495]: statistics: max cache size 1 at Mar  5 09:03:59
  56. Mar  5 12:08:30 samatan courierpop3login: Connection, ip=[:ffff:84.87.205.197]
  57. Mar  5 12:42:45 samatan postfix/smtpd[4584]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
  58. Mar  5 12:42:45 samatan postfix/smtpd[4584]: connect from 22.5f.5446.static.theplanet.com[70.84.95.34]
  59. Mar  5 12:42:46 samatan postfix/smtpd[4584]: warning: unknown smtpd restriction: "#verifie"
  60. Mar  5 12:42:46 samatan postfix/smtpd[4584]: NOQUEUE: reject: RCPT from 22.5f.5446.static.theplanet.com[70.84.95.34]: 451 4.3.5 Server configuration error; from=<roger@yahooka.com> to=<george@yahooka.com> proto=SMTP helo=<localhost.localdomain>
  61. Mar  5 12:42:46 samatan postfix/smtpd[4584]: lost connection after RCPT from 22.5f.5446.static.theplanet.com[70.84.95.34]
  62. Mar  5 12:42:46 samatan postfix/cleanup[4588]: C2998E40E0: message-id=<20070305114246.C2998E40E0@samatan.[monnomdedomaine].fr>
  63. Mar  5 12:42:46 samatan postfix/qmgr[2029]: C2998E40E0: from=<double-bounce_at_samatan.[monnomdedomaine].fr>, size=742, nrcpt=1 (queue active)
  64. Mar  5 12:42:46 samatan postfix/smtpd[4584]: disconnect from 22.5f.5446.static.theplanet.com[70.84.95.34]
  65. Mar  5 12:42:46 samatan postfix/local[4589]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
  66. Mar  5 12:42:46 samatan postfix/local[4589]: C2998E40E0: to=<soprano_at_samatan.[monnomdedomaine].fr>, orig_to=<postmaster>, relay=local, delay=0.03, delays=0.02/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
  67. Mar  5 12:42:46 samatan postfix/qmgr[2029]: C2998E40E0: removed
  68. Mar  5 12:46:06 samatan postfix/anvil[4586]: statistics: max connection rate 1/60s for (smtp:70.84.95.34) at Mar  5 12:42:45
  69. Mar  5 12:46:06 samatan postfix/anvil[4586]: statistics: max connection count 1 for (smtp:70.84.95.34) at Mar  5 12:42:45
  70. Mar  5 12:46:06 samatan postfix/anvil[4586]: statistics: max cache size 1 at Mar  5 12:42:45
 

Ce que j'ai dans l'interface de 1and1 sur mon nom de domaine (je ne sais pas si c'est correct) :

Citation :

Résultat du contrôle DNS
Nom du domaine     [monnomdedomaine].fr
Adresse IP (A-record)     82.232.94.xxx
Serveur de noms 1     ns12.1and1.fr
Serveur de noms 2     ns11.1and1.fr
Serveur email 1     samatan.[monnomdedomaine].fr, 1

 

Merci d'avance pour votre aide :jap:


Message édité par Doudos le 14-09-2014 à 10:27:23
n°892563
toniotonio
Posté le 05-03-2007 à 23:04:39  profilanswer
 

peux tu poster le postconf -n ?

n°892579
Doudos
Guns 4 Show Knives 4 a Pro
Posté le 06-03-2007 à 00:50:53  profilanswer
 

je peux :D

 
Code :
  1. append_dot_mydomain = yes
  2. biff = no
  3. command_directory = /usr/sbin
  4. config_directory = /etc/postfix
  5. daemon_directory = /usr/libexec/postfix
  6. disable_vrfy_command = yes
  7. html_directory = no
  8. inet_interfaces = all
  9. mail_owner = postfix
  10. mailq_path = /usr/bin/mailq
  11. manpage_directory = /usr/local/man
  12. mydestination = $myhostname, localhost.$mydomain, localhost
  13. mydomain = [monnomdedomaine].fr
  14. myhostname = samatan.[monnomdedomaine].fr
  15. mynetworks = 127.0.0.0/8 192.168.0.0/24
  16. newaliases_path = /usr/bin/newaliases
  17. proxy_read_maps = proxy:unix:passwd.byname $virtual_alias_maps $virtual_mailbox_domains $virtual_mailbox_maps $virtual_mailbox_limit_maps
  18. queue_directory = /var/spool/postfix
  19. readme_directory = no
  20. relayhost = smtp.free.fr
  21. sample_directory = /etc/postfix
  22. sendmail_path = /usr/sbin/sendmail
  23. setgid_group = postdrop
  24. smtpd_banner = $myhostname ESMTP (Debian/GNU)
  25. smtpd_client_restrictions = reject_unknown_client,
  26.         permit_mynetworks
  27. smtpd_helo_required = yes
  28. smtpd_recipient_restrictions = permit_mynetworks,
  29.         reject_unauth_destination,
  30.         reject_unknown_recipient_domain,
  31.         reject_non_fqdn_recipient
  32. smtpd_sender_restrictions = permit_mynetworks,
  33.         reject_unknown_sender_domain, #verifie que le domaine existe
  34.         warn_if_reject reject_unverified_sender
  35. unknown_local_recipient_reject_code = 450
  36. virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_aliases.cf,proxy:mysql:/etc/postfix/mysql-virtual_aliases_mailbox.cf
  37. virtual_create_maildirsize = yes
  38. virtual_gid_maps = static:5000
  39. virtual_mailbox_base = /var/spool/vmail
  40. virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
  41. virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
  42. virtual_mailbox_limit_override = yes
  43. virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
  44. virtual_maildir_limit_message = "Desole, la boite email de l'utilisateur est pleine, essayez plus tard."
  45. virtual_overquota_bounce = yes
  46. virtual_uid_maps = static:5000
 

Je n'ai pas encore eu l'occasion de te remercier tonio, alors j'en profite :

 

Un grand MERCI pour ton aide ! :jap:

 

... et un autre, lorsque tout fonctionnera correctement (j'ose l'espérer, OUI !) :o


Message édité par Doudos le 14-09-2014 à 10:27:57
n°892611
toniotonio
Posté le 06-03-2007 à 09:38:04  profilanswer
 

:jap:  je t'en prie...
 
bon deja pas mal de petits pbs dans ton main.cf
 
le mydestination ne devrait pas contenir les domaines virtuels:  jsute localhost et localhost.localdomain
c'est le virtual_mailbox_domains  qui est important ici
 
le relayhost devrait etre sous la forme [smtp.free.fr]
 
et le gros point a revoir : les restrictions smtp:
 tu as une erreur dans tes logs sur la ligne qui comporte un commentaire en fin #.  Postfix ne supporte pas cette syntaxe dans le main.cf.
 
de plus il faut regroupe tes restrictions sous smtpd_recipient_restrictions et enlever les autres.
 
smtpd_recipient_restrictions = permit_mynetworks,
reject_unauth_destination,
reject_unknown_recipient_domain,
reject_non_fqdn_recipient
permit
 
commence deja par ces regles de base puis reloade postfix


Message édité par toniotonio le 06-03-2007 à 09:38:58
n°892927
Doudos
Guns 4 Show Knives 4 a Pro
Posté le 06-03-2007 à 19:11:14  profilanswer
 

J'ai fait les modifs que tu as dis et ça a l'air de fonctionner pas trop mal ma foi... (envoi et réception ok) :D
 
Prochaine étape : intégration d'un antivirus et d'un antispam (qd j'aurai un peu plus de temps devant moi...)
 
Si tu as des liens vers des explications que tu considères "incontournables" ... :)
 
Merci encore pour ton aide tonio ! :jap:

n°893070
toniotonio
Posté le 07-03-2007 à 09:39:47  profilanswer
 

je te conseillerai d'utiliser Amavisd + Spamassassin + ClamAV
niveau tuto il en existe des dizaines mais a mon avis rien ne vaut, pour comprendre, de suivre la doc officielle d'un produit.
 
commence dans un premier temps par installer amavisd en suivant la procedure tres claire qui est fourni avec le produit.
 
 
 

mood
Publicité
Posté le   profilanswer
 

 Page :   1  2
Page Suivante

Aller à :
Ajouter une réponse
 

Sujets relatifs
procmail dans postfix (executer en tant que)[Gentoo] BIND - mysql ?
postfix+poppb load de fichier de base mysql au format .tar.gz
[debian] Mon serveur Postfix ne veut plus de moiprobleme mails en double Postfix+Mysql
Athentification Samba via PAM vers mysql[Annulé] Postfix pour serveur LAMP ?
[Debian] Configurer Postfix avec TLS/SSL ? 
Plus de sujets relatifs à : [Postfix] Can't connect to mysql server


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