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

[postfix-jp: 1988] Re: あるメールサーバーからのメールだけが受信できません。



 まっきーです。
お返事ありがとうございます。

> おおた@足立区です
> postconf -n の結果で「smtpd_client_restrictions」で複数の指定が
> 有るようですが、「smtpd_client_restrictions = permit_mynetworks」で
> 終わっている様に見えますか? あたしの勘違いでしょうか?
> # 他の所ではスペースが有ったり無かったり? ペーストが違うのかしら?
すみません。誤ってHTML形式で送信したせいで、表示が分かりにくくなってしまいました。
実際には下記のように設定しています。
smtpd_client_restrictions = permit_mynetworks
     check_client_access hash:/usr/local/etc/postfix/restrict_clients
         reject_unknown_client
     permit

> 「smtpd_helo_required = yes」や「strict_rfc821_envelopes = yes」も
> 有ったりしますが、その前に「warn」か「warn_if_reject」とかでログ統計を
> 取られてから厳しい設定にされた方が、と思います。
アドバイスありがとうございます。
今回の問題はこれらのセキュリティを取り除いても結果は同じように受信できません。

> # ご利用のメーラーが何か不明ですがML向けにはマルチパートのHTML側は不要で
> 醜いです。
申し訳ございません。以後気をつけます。

もう一度設定、ログをテキスト形式にて貼り付けさせていただきます。

環境:
FreeBSD 5.3.0
Postfix 2.2.8_2

postconf -n の結果

-------- ここから -------------
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
allow_percent_hack = yes
allow_untrusted_routing = no
command_directory = /usr/local/sbin
config_directory = /usr/local/etc/postfix
daemon_directory = /usr/local/libexec/postfix
debug_peer_level = 1
debug_peer_list = 21x.15x.24x.2x
disable_vrfy_command = yes
home_mailbox = Maildir/
html_directory = no
local_recipient_maps =
local_transport = smtp:192.168.0.3
mail_owner = postfix
mailq_path = /usr/local/bin/mailq
manpage_directory = /usr/local/man
message_size_limit = 10240000
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydomain = example.com
myhostname = bsd.exsample.com
mynetworks = 192.168.0.0/24, 127.0.0.0/8
myorigin = $myhostname
newaliases_path = /usr/local/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = no
sample_directory = /usr/local/etc/postfix
sendmail_path = /usr/local/sbin/sendmail
setgid_group = maildrop
smtpd_client_restrictions = permit_mynetworks
     check_client_access hash:/usr/local/etc/postfix/restrict_clients
          reject_unknown_client
     permit
smtpd_etrn_restrictions = permit_mynetworks, reject_invalid_hostname
smtpd_helo_required = yes
smtpd_recipient_restrictions = permit_mynetworks, check_relay_domains
smtpd_sender_restrictions = reject_unknown_sender_domain
strict_rfc821_envelopes = yes
swap_bangpath = yes
unknown_local_recipient_reject_code = 550
-------- ここまで -------------

 

ちなみに、下記部分を削除してみても結果は同じく受信できません。
smtpd_client_restrictions = permit_mynetworks
      check_client_access hash:/usr/local/etc/postfix/restrict_clients
         reject_unknown_client
     permit
smtpd_etrn_restrictions = permit_mynetworks, reject_invalid_hostname
smtpd_helo_required = yes
smtpd_recipient_restrictions = permit_mynetworks, check_relay_domains
smtpd_sender_restrictions = reject_unknown_sender_domain
strict_rfc821_envelopes = yes

また、ログを貼り付けます。
/var/log/maillog

Apr 27 17:26:34 bsd postfix/smtpd[17512]: connect from host-21x-15x-24x-2x.mil.choiceone.net[21x.15x.24x.2x]
Apr 27 17:26:34 bsd postfix/smtpd[17512]: match_hostname: host-21x-15x-24x-2x.mil.choiceone.net ~? 192.168.0.0/24
Apr 27 17:26:34 bsd postfix/smtpd[17512]: match_hostaddr: 21x.15x.24x.2x ~? 192.168.0.0/24
Apr 27 17:26:34 bsd postfix/smtpd[17512]: match_hostname: host-21x-15x-24x-2x.mil.choiceone.net ~? 127.0.0.0/8
Apr 27 17:26:34 bsd postfix/smtpd[17512]: match_hostaddr: 21x.15x.24x.2x ~? 127.0.0.0/8
Apr 27 17:26:34 bsd postfix/smtpd[17512]: match_list_match: host-21x-15x-24x-2x.mil.choiceone.net: no match
Apr 27 17:26:34 bsd postfix/smtpd[17512]: match_list_match: 21x.15x.24x.2x: no match
Apr 27 17:26:34 bsd postfix/smtpd[17512]: send attr request = connect
Apr 27 17:26:34 bsd postfix/smtpd[17512]: send attr ident = smtp:21x.15x.24x.2x
Apr 27 17:26:34 bsd postfix/smtpd[17512]: private/anvil: wanted attribute: status
Apr 27 17:26:34 bsd postfix/smtpd[17512]: input attribute name: status
Apr 27 17:26:34 bsd postfix/smtpd[17512]: input attribute value: 0
Apr 27 17:26:34 bsd postfix/smtpd[17512]: private/anvil: wanted attribute: count
Apr 27 17:26:34 bsd postfix/smtpd[17512]: input attribute name: count
Apr 27 17:26:34 bsd postfix/smtpd[17512]: input attribute value: 1
Apr 27 17:26:34 bsd postfix/smtpd[17512]: private/anvil: wanted attribute: rate
Apr 27 17:26:34 bsd postfix/smtpd[17512]: input attribute name: rate
Apr 27 17:26:34 bsd postfix/smtpd[17512]: input attribute value: 1
Apr 27 17:26:34 bsd postfix/smtpd[17512]: private/anvil: wanted attribute: (list terminator)
Apr 27 17:26:34 bsd postfix/smtpd[17512]: input attribute name: (end)
Apr 27 17:26:34 bsd postfix/smtpd[17512]: > host-21x-15x-24x-2x.mil.choiceone.net[21x.15x.24x.2x]: 220 bsd.example.com ESMTP Postfix
Apr 27 17:26:34 bsd postfix/smtpd[17512]: < host-21x-15x-24x-2x.mil.choiceone.net[21x.15x.24x.2x]:
Apr 27 17:26:34 bsd postfix/smtpd[17512]: > host-21x-15x-24x-2x.mil.choiceone.net[21x.15x.24x.2x]: 500 Error: bad syntax
Apr 27 17:26:34 bsd postfix/smtpd[17512]: < host-21x-15x-24x-2x.mil.choiceone.net[21x.15x.24x.2x]: QUIT
Apr 27 17:26:34 bsd postfix/smtpd[17512]: > host-21x-15x-24x-2x.mil.choiceone.net[21x.15x.24x.2x]: 221 Bye
Apr 27 17:26:34 bsd postfix/smtpd[17512]: match_hostname: host-21x-15x-24x-2x.mil.choiceone.net ~? 192.168.0.0/24
Apr 27 17:26:34 bsd postfix/smtpd[17512]: match_hostaddr: 21x.15x.24x.2x ~? 192.168.0.0/24
Apr 27 17:26:34 bsd postfix/smtpd[17512]: match_hostname: host-21x-15x-24x-2x.mil.choiceone.net ~? 127.0.0.0/8
Apr 27 17:26:34 bsd postfix/smtpd[17512]: match_hostaddr: 21x.15x.24x.2x ~? 127.0.0.0/8
Apr 27 17:26:34 bsd postfix/smtpd[17512]: match_list_match: host-21x-15x-24x-2x.mil.choiceone.net: no match
Apr 27 17:26:34 bsd postfix/smtpd[17512]: match_list_match: 21x.15x.24x.2x: no match
Apr 27 17:26:34 bsd postfix/smtpd[17512]: send attr request = disconnect
Apr 27 17:26:34 bsd postfix/smtpd[17512]: send attr ident = smtp:21x.15x.24x.2x
Apr 27 17:26:34 bsd postfix/smtpd[17512]: private/anvil: wanted attribute: status
Apr 27 17:26:34 bsd postfix/smtpd[17512]: input attribute name: status
Apr 27 17:26:34 bsd postfix/smtpd[17512]: input attribute value: 0
Apr 27 17:26:34 bsd postfix/smtpd[17512]: private/anvil: wanted attribute: (list terminator)
Apr 27 17:26:34 bsd postfix/smtpd[17512]: input attribute name: (end)
Apr 27 17:26:34 bsd postfix/smtpd[17512]: disconnect from host-21x-15x-24x-2x.mil.choiceone.net[21x.15x.24x.2x]

よろしくお願いいたします。
_______________________________________________
Postfix-jp-list mailing list
Postfix-jp-list@xxxxxxxxxxxxxxxxxxxx
http://lists.sourceforge.jp/mailman/listinfo/postfix-jp-list

Follow-Ups
[postfix-jp: 1989] Re: あるメールサーバーからのメールだけが受信できません。, OBATA Akio
[postfix-jp: 1990] Re: あるメールサーバーからのメールだけが受信できません。, Katsushi Sakurane

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