[DEBIAN SQUEEZE] Serveur postfix , dovecot ,SASL

Bonjour,

j’ai installer un serveur mail complet sur ma machine qui héberge plusieurs sites en suivant ce tutorial:

http://www.isalo.org/wiki.debian-fr/index.php?title=Installation_sur_une_Squeeze_d%27un_serveur_mail_complet_%28Postfix_Postfixadmin_Dovecot_Mysql_Amavisd-new_Spamassassin_Clamav_Postgrey_Squirrelmail_Roundcube%29_avec_gestion_des_filtres_Imap_et_des_quotas

tout est ok sauf une chose

lorsque j’essaie d’envoyer un mail vers une adresse configurer sur un de mes domaines:

j’ai ceci en retour:

[code]Delivery to the following recipient failed permanently:

user@mondomaine.tld

Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The error that the other server returned was: 554 554 5.7.1 user@mondomaine.tld: Relay access denied (state 14).[/code]
je vous joint ci dessous un potsconf -n

alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases append_dot_mydomain = no biff = no config_directory = /etc/postfix content_filter = amavis:[127.0.0.1]:10024 delay_warning_time = 1h inet_interfaces = all inet_protocols = ipv4 mailbox_command = mailbox_size_limit = 0 mydestination = sd-32611.dedibox.fr, localhost.dedibox.fr, , localhost myhostname = sd-32611.dedibox.fr mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 myorigin = /etc/mailname readme_directory = no receive_override_options = no_address_mappings recipient_delimiter = + relay_domains = mysql:/etc/postfix/mysql_relay_domains.cf smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_hostname, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unauth_destination, reject_unauth_pipelining, check_policy_service inet:127.0.0.1:10023, reject_invalid_hostname smtpd_sasl_auth_enable = yes smtpd_sasl_security_options = noanonymous smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtpd_use_tls = yes virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf virtual_gid_maps = static:3000 virtual_mailbox_base = /home/postman virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_mailbox_domains.cf virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf virtual_transport = dovecot virtual_uid_maps = static:3000

sauriez vous comment résoudre ce probleme ?

merci d’avance

Salut,

Je ne comprend pas bien le message, que vient faire google dans l’histoire ? Tu envoie vers un gmail ?
Tu pourrais un peu plus détaillé ce que tu essaye de faire, la topologie du réseau, etc…

Il faudrait voir la sortie des logs correspondant à l’envoi:

Hello,

oui je fait envoie depuis ma boite gmail vers le serveur d’ou le google.

voici le log

# tail -f /var/log/mail.info Mar 28 14:39:03 sd-32611 postfix/smtpd[4306]: disconnect from localhost[127.0.0.1] Mar 28 14:39:03 sd-32611 amavis[4054]: (04054-05) Passed CLEAN, <root@sd-32611.dedibox.fr> -> <root@sd-32611.dedibox.fr>, Message-ID: <20120328123901.9EA522E15E9@sd-32611.dedibox.fr>, mail_id: hltmvU31Iren, Hits: -0.001, size: 986, queued_as: A74212E1521, 1986 ms Mar 28 14:39:03 sd-32611 postfix/smtp[4303]: 9EA522E15E9: to=<root@sd-32611.dedibox.fr>, orig_to=<root>, relay=127.0.0.1[127.0.0.1]:10024, delay=2.2, delays=0.23/0.01/0/2, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=04054-05, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as A74212E1521) Mar 28 14:39:03 sd-32611 postfix/qmgr[3062]: A74212E1521: from=<root@sd-32611.dedibox.fr>, size=1459, nrcpt=1 (queue active) Mar 28 14:39:03 sd-32611 postfix/qmgr[3062]: 9EA522E15E9: removed Mar 28 14:39:03 sd-32611 postfix/local[4307]: A74212E1521: to=<root@sd-32611.dedibox.fr>, relay=local, delay=0.27, delays=0.18/0.06/0/0.03, dsn=2.0.0, status=sent (delivered to mailbox) Mar 28 14:39:03 sd-32611 postfix/qmgr[3062]: A74212E1521: removed Mar 28 15:06:57 sd-32611 postfix/smtpd[4355]: connect from mail-gx0-f173.google.com[209.85.161.173] Mar 28 15:06:58 sd-32611 postfix/smtpd[4355]: NOQUEUE: reject: RCPT from mail-gx0-f173.google.com[209.85.161.173]: 554 5.7.1 <user@domaine.tld>: Relay access denied; from=<xxx@gmail.com> to=<user@domaine.tld> proto=ESMTP helo=<mail-gx0-f173.google.com> Mar 28 15:06:58 sd-32611 postfix/smtpd[4355]: disconnect from mail-gx0-f173.google.com[209.85.161.173]

merci

Re,
Si tu envoie en local (depuis le serveur ou un webmail installé sur le serveur) ça passe ?

Re,

Il faudrait ajouter le réseau local…

[quote=“lol”]Re,

Il faudrait ajouter le réseau local…[/quote]

il me semblais que c’était déja le reseau local ça j’ai donc ajouter l’ip de eth0

mais cela ne fonctionne toujours pas
par ailleurs depuis le webmail cela ne fonctionne plus non plus l’email est bounced à root pourquoi ?

[quote]#echo test | mail -s “Premier test SMTP” contact@tecknocracy.com && tail -f /var/log/mail.info
Mar 28 17:14:49 sd-32611 postfix/smtp[4936]: 80E752E15E9: to=contact@tecknocracy.com, relay=127.0.0.1[127.0.0.1]:10024, delay=0.44, delays=0.18/0/0/0.26, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=04023-09, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as C66B62E0D06)
Mar 28 17:14:49 sd-32611 postfix/qmgr[4917]: C66B62E0D06: from=root@sd-32611.dedibox.fr, size=835, nrcpt=1 (queue active)
Mar 28 17:14:49 sd-32611 postfix/qmgr[4917]: 80E752E15E9: removed
Mar 28 17:14:50 sd-32611 postfix/smtp[4940]: C66B62E0D06: to=contact@tecknocracy.com, relay=none, delay=0.19, delays=0.14/0.04/0/0, dsn=5.4.6, status=bounced (mail for tecknocracy.com loops back to myself)
Mar 28 17:14:50 sd-32611 postfix/cleanup[4932]: 13DD92E166A: message-id=20120328151450.13DD92E166A@sd-32611.dedibox.fr
Mar 28 17:14:50 sd-32611 postfix/bounce[4941]: C66B62E0D06: sender non-delivery notification: 13DD92E166A
Mar 28 17:14:50 sd-32611 postfix/qmgr[4917]: 13DD92E166A: from=<>, size=2787, nrcpt=1 (queue active)
Mar 28 17:14:50 sd-32611 postfix/local[4942]: 13DD92E166A: to=root@sd-32611.dedibox.fr, relay=local, delay=0.21, delays=0.15/0/0/0.06, dsn=2.0.0, status=sent (delivered to mailbox)
Mar 28 17:14:50 sd-32611 postfix/qmgr[4917]: C66B62E0D06: removed
Mar 28 17:14:50 sd-32611 postfix/qmgr[4917]: 13DD92E166A: removed
Mar 28 17:16:19 sd-32611 postfix/pickup[4916]: 4B9A22E15E9: uid=0 from=
Mar 28 17:16:19 sd-32611 postfix/cleanup[4932]: 4B9A22E15E9: message-id=20120328151619.4B9A22E15E9@sd-32611.dedibox.fr
Mar 28 17:16:19 sd-32611 postfix/qmgr[4917]: 4B9A22E15E9: from=root@sd-32611.dedibox.fr, size=366, nrcpt=1 (queue active)
Mar 28 17:16:19 sd-32611 postfix/smtpd[4939]: connect from localhost[127.0.0.1]
Mar 28 17:16:19 sd-32611 postfix/smtpd[4939]: 9534A2E0D06: client=localhost[127.0.0.1]
Mar 28 17:16:19 sd-32611 postfix/cleanup[4932]: 9534A2E0D06: message-id=20120328151619.4B9A22E15E9@sd-32611.dedibox.fr
Mar 28 17:16:19 sd-32611 postfix/smtpd[4939]: disconnect from localhost[127.0.0.1]
Mar 28 17:16:19 sd-32611 amavis[4054]: (04054-09) Passed CLEAN, root@sd-32611.dedibox.fr -> contact@tecknocracy.com, Message-ID: 20120328151619.4B9A22E15E9@sd-32611.dedibox.fr, mail_id: rrKitMpV6sQ4, Hits: -0.001, size: 366, queued_as: 9534A2E0D06, 281 ms
Mar 28 17:16:19 sd-32611 postfix/smtp[4936]: 4B9A22E15E9: to=contact@tecknocracy.com, relay=127.0.0.1[127.0.0.1]:10024, delay=0.47, delays=0.18/0/0/0.28, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=04054-09, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 9534A2E0D06)
Mar 28 17:16:19 sd-32611 postfix/qmgr[4917]: 9534A2E0D06: from=root@sd-32611.dedibox.fr, size=835, nrcpt=1 (queue active)
Mar 28 17:16:19 sd-32611 postfix/qmgr[4917]: 4B9A22E15E9: removed
Mar 28 17:16:19 sd-32611 postfix/smtp[4940]: 9534A2E0D06: to=contact@tecknocracy.com, relay=none, delay=0.23, delays=0.18/0.05/0/0, dsn=5.4.6, status=bounced (mail for tecknocracy.com loops back to myself)
Mar 28 17:16:19 sd-32611 postfix/cleanup[4932]: E0ED32E166A: message-id=20120328151619.E0ED32E166A@sd-32611.dedibox.fr
Mar 28 17:16:19 sd-32611 postfix/bounce[4941]: 9534A2E0D06: sender non-delivery notification: E0ED32E166A
Mar 28 17:16:20 sd-32611 postfix/qmgr[4917]: E0ED32E166A: from=<>, size=2787, nrcpt=1 (queue active)
Mar 28 17:16:20 sd-32611 postfix/local[4942]: E0ED32E166A: to=root@sd-32611.dedibox.fr, relay=local, delay=0.21, delays=0.17/0/0/0.04, dsn=2.0.0, status=sent (delivered to mailbox)
Mar 28 17:16:20 sd-32611 postfix/qmgr[4917]: 9534A2E0D06: removed
Mar 28 17:16:20 sd-32611 postfix/qmgr[4917]: E0ED32E166A: removed
[/quote]

voici le nouveau postconf -n

# postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases append_dot_mydomain = no biff = no config_directory = /etc/postfix content_filter = amavis:[127.0.0.1]:10024 delay_warning_time = 1h disable_vrfy_command = yes inet_interfaces = all inet_protocols = ipv4 mailbox_command = mailbox_size_limit = 0 mydestination = sd-32611.dedibox.fr, localhost.dedibox.fr, , localhost myhostname = sd-32611.dedibox.fr mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 88.190.31.235 myorigin = /etc/mailname readme_directory = no receive_override_options = no_address_mappings recipient_delimiter = + relay_domains = mysql:/etc/postfix/mysql_relay_domains.cf smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) smtpd_helo_required = yes smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_hostname, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unauth_destination, reject_unauth_pipelining, check_policy_service inet:127.0.0.1:10023, reject_invalid_hostname smtpd_sasl_auth_enable = yes smtpd_sasl_security_options = noanonymous smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtpd_use_tls = yes virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf virtual_gid_maps = static:3000 virtual_mailbox_base = /home/postman virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_mailbox_domains.cf virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf virtual_transport = dovecot virtual_uid_maps = static:3000

salut,

je ne suis pas du tout un spécialiste, mais moi j’ai ça dans mon postfix :

bonjour

pourrais tu afficher le fichier ci-dessous stp

[quote=“gilles974”]bonjour

pourrais tu afficher le fichier ci-dessous stp

bonjour le voici

# more /etc/postfix/mysql_relay_domains.cf hosts = 127.0.0.1 user = ****** password = ****** dbname = postfix query = SELECT domain FROM domain WHERE domain='%s' and backupmx = 1

salut

met par securite une limite à tes mails

remplace

par

verifie si dans ta base postfix, la table domain avec dans le champ domain tu as bien dedibox.fr
que le champ transport est à virtual et que le champ active est a 1

sur

88.190.31.235 correspond à quoi ??

remplace pour test 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 par 127.0.0.0/8, 88.190.31.235

essaye déjà ça

envoie les logs