[Resolu] Postfix Help ! => pbm de DNS en fait

Hello :smt006

J’ai un gros problème avec Postfix depuis que j’ai déménagé mon serveur.

J’ai ouvert un service d’hébergement gratuit open-web.fr.

Suite à des problèmes d’instabilité de ma ligne Free, j’ai décidé de déménager les données de mon serveur sur un serveur dédié Kimsufi. Le transfert des sites + bases MySQL s’est bien déroulé.

Je me retrouve avec un gros problème avec le serveur de mail postfix, ce tuto fonctionnait très bien chez moi mais j’ai un souci sur mon nouveau serveur.

J’utilise postfix avec des utilisateurs virtuels gérés par MySQL.

  • Je peux envoyer/recevoir des mails en interne sur le serveur.
  • Je peux envoyer des mails vers l’extérieur (j’ai testé avec mes boîtes no-log et yahoo).
    * Je ne peux pas recevoir les mails de l’extérieur.

J’ai l’impression que les mails veulent aller à l’ancienne adresse IP de mon serveur et non la nouvelle :open_mouth:

Je pense avoir configuré bind comme il faut :confused: alors je montre ce que j’ai :

$ host -t MX open-web.fr open-web.fr mail is handled by 10 golgoth.open-web.fr.

$ hostname golgoth.open-web.fr

$ dnsdomainname open-web.fr

Mon ancien serveur se nomme minou.open-web.fr sur l’IP 88.172.244.114
Mon nouveau serveur se nomme golgoth.open-web.fr sur l’IP 213.251.175.47

J’ai testé plusieurs envois depuis l’extérieur, je n’ai reçu qu’un seul message de non-transmission :

[quote]This is the mail system at host webmail.no-log.org.

I’m sorry to have to inform you that your message could not
be delivered to one or more recipients. It’s attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

               The mail system

<mon_mail(at)open-web.fr>: host minou.open-web.fr[88.172.244.114] said: 554
5.7.1 <mon_mail(at)open-web.fr>: Relay access denied (in reply to RCPT TO
command)
[/quote]
Ce que je ne comprend pas c’est pourquoi il veut envoyer vers 88.172.244.114 alors que le serveur mail se trouve sur 213.251.175.47 ?

Mon main.cf :

[code]smtp_banner = $myhostname ESMTP (Debian / GNU)
biff = no
disable_vrfy_command = yes
smtpd_helo_required = yes

append_dot_mydomain = no

mydestination = golgoth.open-web.fr, localhost, localhost.open-web.fr

mydomain = golgoth.open-web.fr

myhostname = golgoth.open-web.fr

relayhost =

mynetworks = 127.0.0.0/8, 213.251.175.0/24
inet_interfaces = all

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 = mysql:/etc/postfix/mysql-virtual_aliases.cf, mysql:/etc/postfix/mysql-virtual_aliases_mailbox.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_base = /var/spool/vmail/
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000

virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = “Desole, la boite email de l’utilisateur est pleine. Veuillez re-essayer plus tard !”

virtual_overquota_bounce = yes
[/code]

postconf -n :

append_dot_mydomain = no biff = no config_directory = /etc/postfix disable_vrfy_command = yes inet_interfaces = all mydestination = golgoth.open-web.fr, localhost, localhost.open-web.fr mydomain = golgoth.open-web.fr myhostname = golgoth.open-web.fr mynetworks = 127.0.0.0/8, 213.251.175.0/24 relayhost = 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 smtpd_delay_reject = yes smtpd_helo_required = yes smtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_hostname, reject_invalid_hostname, permit smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_recipient, reject_unknown_recipient_domain, reject_unauth_destination, permit smtpd_sender_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_sender, reject_unknown_sender_domain, permit strict_rfc821_envelopes = yes virtual_alias_maps = mysql:/etc/postfix/mysql-virtual_aliases.cf, mysql:/etc/postfix/mysql-virtual_aliases_mailbox.cf virtual_gid_maps = static:5000 virtual_mailbox_base = /var/spool/vmail/ virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual_domains.cf virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual_mailboxes.cf virtual_uid_maps = static:5000

Mon fichier de zone bind :

[code]$TTL 86400
@ IN SOA ns0.open-web.fr. jcvassort.fdn.fr. (
2008101203
86400
900
2592000
86400
)

@ IN NS ns0.open-web.fr.
@ IN NS ns6.gandi.net.

@ IN A 213.251.175.47
golgoth IN A 213.251.175.47
ns0 IN A 213.251.175.47
minou IN A 88.172.244.114
golgoth.open-web.fr IN A 213.251.175.47

www IN CNAME golgoth

open-web.fr. IN MX 10 golgoth
[/code]

Thanks a lot :smiley:

Je pensais, pour ceux qui veulent faire des tests depuis leur serveur mail perso, envoyez-moi un mail à mon_pseudo_sur_ce_forum[AT]le_nom_de_domaine_de_mon_serveur.

:wink:

Sur mon ancien serveur (qui se nomme minou), j’observe dans les logs qu’il veut se connecter vers mon nouveau serveur (golgoth) :

Oct 12 15:08:19 minou postfix/master[4414]: daemon started -- version 2.3.8, configuration /etc/postfix Oct 12 15:08:36 minou postfix/pickup[4417]: 037E2411F: uid=0 from=<root> Oct 12 15:08:36 minou postfix/cleanup[4426]: 037E2411F: message-id=<20081012130836.037E2411F@minou> Oct 12 15:08:36 minou postfix/qmgr[4420]: 037E2411F: from=<root@open-web.fr>, size=315, nrcpt=1 (queue active) Oct 12 15:08:36 minou postfix/smtp[4428]: connect to minou.open-web.fr[88.172.244.114]: Connection refused (port 25) Oct 12 15:08:36 minou postfix/smtp[4428]: 037E2411F: to=<mon_super_mail_original@open-web.fr>, relay=none, delay=0.16, delays=0.04/0.01/0.11/0, dsn=4.4.1, status=deferred (connect to minou.open-web.fr[88.172.244.114]: Connection refused) Oct 12 15:24:59 minou postfix/qmgr[4420]: 38D7A411B: from=<root@open-web.fr>, size=311, nrcpt=1 (queue active) Oct 12 15:24:59 minou postfix/qmgr[4420]: 432C94103: from=<>, size=2130, nrcpt=1 (queue active) Oct 12 15:24:59 minou postfix/smtp[4463]: connect to minou.open-web.fr[88.172.244.114]: Connection refused (port 25) Oct 12 15:24:59 minou postfix/smtp[4463]: 432C94103: to=<root@minou.open-web.fr>, relay=none, delay=6330, delays=6330/0.02/0.13/0, dsn=4.4.1, status=deferred (connect to minou.open-web.fr[88.172.244.114]: Connection refused) Oct 12 15:24:59 minou postfix/smtp[4461]: 38D7A411B: to=<mon_super_mail_original@open-web.fr@open-web.fr>, relay=golgoth.open-web.fr[213.251.175.47]:25, delay=1302, delays=1301/0.01/0.29/0.2, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 0B0198C11) Oct 12 15:24:59 minou postfix/qmgr[4420]: 38D7A411B: removed Oct 12 15:41:39 minou postfix/qmgr[4420]: 037E2411F: from=<root@open-web.fr>, size=315, nrcpt=1 (queue active) Oct 12 15:41:40 minou postfix/smtp[4480]: 037E2411F: to=<mon_super_mail_original@open-web.fr@open-web.fr>, relay=golgoth.open-web.fr[213.251.175.47]:25, delay=1984, delays=1984/0.02/0.34/0.12, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as C95E68C0F) Oct 12 15:41:40 minou postfix/qmgr[4420]: 037E2411F: removed Oct 12 15:52:20 minou postfix/master[4414]: terminating on signal 15 Oct 12 15:52:20 minou postfix/master[4582]: daemon started -- version 2.3.8, configuration /etc/postfix Oct 12 15:52:37 minou postfix/pickup[4586]: 98410411B: uid=0 from=<root> Oct 12 15:52:37 minou postfix/cleanup[4592]: 98410411B: message-id=<20081012135237.98410411B@minou> Oct 12 15:52:37 minou postfix/qmgr[4587]: 98410411B: from=<root@open-web.fr>, size=313, nrcpt=1 (queue active) Oct 12 15:52:38 minou postfix/smtp[4594]: 98410411B: to=<mon_super_mail_original@open-web.fr@open-web.fr>, relay=golgoth.open-web.fr[213.251.175.47]:25, delay=0.5, delays=0.03/0.01/0.33/0.12, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as BF536122B9) Oct 12 15:52:38 minou postfix/qmgr[4587]: 98410411B: removed Oct 12 15:53:26 minou postfix/master[4582]: terminating on signal 15 Oct 12 15:53:27 minou postfix/master[4676]: daemon started -- version 2.3.8, configuration /etc/postfix Oct 12 15:54:02 minou postfix/pickup[4679]: 3430E4123: uid=0 from=<root> Oct 12 15:54:02 minou postfix/cleanup[4687]: 3430E4123: message-id=<20081012135402.3430E4123@minou> Oct 12 15:54:02 minou postfix/qmgr[4680]: 3430E4123: from=<root@open-web.fr>, size=338, nrcpt=1 (queue active) Oct 12 15:54:02 minou postfix/smtp[4689]: 3430E4123: to=<mon_super_mail_original@open-web.fr@open-web.fr>, relay=golgoth.open-web.fr[213.251.175.47]:25, delay=0.42, delays=0.04/0.01/0.25/0.12, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 4BB5E4A2E) Oct 12 15:54:02 minou postfix/qmgr[4680]: 3430E4123: removed Oct 12 16:01:23 minou postfix/smtpd[4695]: connect from webmail.no-log.org[80.67.172.39] Oct 12 16:01:24 minou postfix/smtpd[4695]: NOQUEUE: reject: RCPT from webmail.no-log.org[80.67.172.39]: 554 5.7.1 <mon_super_mail_original@open-web.fr@open-web.fr>: Relay access denied; from=<mon_super_mail_original@open-web.fr@no-log.org> to=<mon_super_mail_original@open-web.fr@open-web.fr> proto=ESMTP helo=<webmail.no-log.org> Oct 12 16:01:24 minou postfix/smtpd[4695]: disconnect from webmail.no-log.org[80.67.172.39] Oct 12 16:04:44 minou postfix/anvil[4698]: statistics: max connection rate 1/60s for (smtp:80.67.172.39) at Oct 12 16:01:23 Oct 12 16:04:44 minou postfix/anvil[4698]: statistics: max connection count 1 for (smtp:80.67.172.39) at Oct 12 16:01:23 Oct 12 16:04:44 minou postfix/anvil[4698]: statistics: max cache size 1 at Oct 12 16:01:23

Bon et ben je me suis en fait donné un élément de réponse dans mon premier post :

C’est en fait un bête problème de DNS :imp:

Lors du transfert, le serveur DNS secondaire (chez gandi) ne s’est pas ou alors mal synchronisé avec le primaire (directement géré sur mon serveur).

En faisant un whois sur mon domaine ou un alors un dig sur le serveur DNS secondaire, on s’aperçoit que le champ A pointe bien sur ma nouvelle IP, mais que le champ MX pointe toujours vers mon ancienne IP.

Je suis en train de faire les modifs directement chez gandi.

Je n’ai pas trouvé ça tout seul => forum.ovh.com/showpost.php?p=223442&postcount=5

Je mettrais ce post en résolu quand tout sera rentré dans l’ordre.