[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[postfix-jp:02793] postfixでメールの送信ができない。



初めまして。
この度、MLに参加しました、halzと申します。
よろしくお願いします。

早速で大変恐縮なのですが、質問です。
私は以下の環境で初めてメールサーバーを構築しました。

OS         : RedHatLinux8
MailServer : Postfix-1.1.11-5

どういう問題なのかと言いますと、
同一ネットワーク上にあるwindowsから、
メーラー(Becky!)を使用してメールを送ると、
SMTPサーバーに接続、メールをSMTPサーバーに渡します。

問題はこの後なのですが、SMTPサーバーから外部に配信されません。
もちろんルーターのポートは開いています。
それに、外部からのメールは試した範囲では全て受信できています。

メールログなどを確認しますと、
Apr 23 09:39:31 localhost postfix/smtp[2059]: F118B7BC97:
to=<xxxxx@xxxxxxxxxxxx>, relay=none, delay=17797,status=deferred 
(Name service error for docomo.ne.jp: Host not found,try again)
携帯電話宛、プロバイダメールアドレス宛、全てこのようなエラーがありました。
多分名前が解決できないから、送信できないよ?
と言う事だろうとは思うのですが、なにぶん初心者なもので詳しくは分かりません。

私はこの問題で1ヶ月近く頭を悩まし、
web上で解決策を探していたのですが、結局分かったのは以下の事です。

■/etc/postfix/main.cf に、ignore_mx_lookup_error = yes 
を追加すると携帯電話メールアドレス以外には、ちゃんと届くと言う事。
(上記のログ文は「ignore_mx_lookup_error = yes」追加後のエラーです。)

■/etc/resolv.conf の world read 権限
(※これは、(-rw-r--r--、644)ということで良いのでしょうか?)
ちなみに、resolv.conf の中身は、
; generated by /sbin/dhclient-script
nameserver 192.168.1.1
search localdomain
となっています。
192.168.1.1 とは、ルーターで、
coregaの「BAR SW-4P HG」を使用しています。

■rootで作業をしていると、まずいらしい。
私は作業をいつもrootで行っていましたが、参考になるでしょうか?

ひょっとしたらとても簡単な事なのかもしれませんが、
私にはもう何がどうなっているのか・・・お手上げ状態です。
皆さんご多忙であられるとは思いますが、どうかお知恵をお貸し下さい。
よろしくお願いします。

最後に、main.cf の中身を書いておきます。
# postconf -n
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
ignore_mx_lookup_error = yes
inet_interfaces = all
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, $mydomain
mydomain = halz.info
myhostname = halz.info
mynetworks = 192.168.1.0/24,127.0.0.0/24
myorigin = $myhostname
newaliases_path = /usr/bin/newaliases.postfix
readme_directory = /usr/share/doc/postfix-1.1.11/README_FILES
sample_directory = /usr/share/doc/postfix-1.1.11/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop

ちなみに、psotfixのバージョンは、
# rpm -q postfix
postfix-1.1.11-5
と、調べました。

Follow-Ups
[postfix-jp:02794] Re: postfixでメールの送信ができない。, Koji Kimura
[postfix-jp:02795] Re: postfixでメールの送信ができない。, old-admin
[postfix-jp:02798] Re: postfixでメールの送信ができない。, Yamada Kazuo

[検索ページ] [Postfix-JP ML Home]