URL: https://linuxfr.org/forums/linux-general/posts/postfix-et-moi Title: postfix et moi Authors: NeoX Date: 2006年11月01日T13:43:15+01:00 Tags: debian Score: 0 alors voila, souvent je reponds aux gens qui ont des questions, eh bien aujourd'hui c'est l'inverse, c'est moi qui vient à vous avec mon probleme. j'ai un nom de domaine et un site hebergé sur une dedibox. j'ai installé postsfix pour renvoyer les emails @mon_domaine.com vers les boites de mes utilisateurs (@free.fr, @aol.com etc etc) quand j'envoie un email depuis le serveur en ligne de commande, il part bien, est bien emis depuis mon serveur. quand j'envoie de l'exterieur vers mon domaine, j'ai le message d'erreur suivant :
Reporting-MTA: dns; postfix1-g20.free.fr X-Postfix-Queue-ID: 3C44933F0D0 X-Postfix-Sender: rfc822; moi@free.fr Arrival-Date: Wed, 1 Nov 2006 13:33:59 +0100 (CET) Final-Recipient: rfc822; postmaster@mon_domaine.org Action: failed Status: 5.0.0 Diagnostic-Code: X-Postfix; Host or domain name not found. Name service error for name=ip_du_serveur.mon_domaine.org type=A: Host not found
j'ai donc la configuration suivante :
root@xxxxxxxxxxx:~# cat /etc/postfix/main.cf # See /usr/share/postfix/main.cf.dist for a commented, more complete version # Debian specific: Specifying a file name will cause the first # line of that file to be used as the name. The Debian default # is /etc/mailname. #myorigin = /etc/mailname smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) biff = no # appending .domain is the MUA's job. append_dot_mydomain = no # Uncomment the next line to generate "delayed mail" warnings #delay_warning_time = 4h # TLS parameters smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key smtpd_use_tls=yes smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for # information on enabling SSL in the smtp client. myhostname = mon_domaine_a_moi.org alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = /etc/mailname mydestination = mon_domaine_a_moi.org, sd-xxxx.dedibox.fr, localhost.dedibox.fr, localhost relayhost = mynetworks = 127.0.0.0/8 mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all
root@lebasrouge:~# cat /etc/aliases # Added by installer for initial user root: admin postmaster: toto@free.fr webmaster: titi@aol.com

AltStyle によって変換されたページ (->オリジナル) /