TOPページ掲示板
作成日:2006年07月07日 作成:Yosi

Vine Linuxで自宅サーバーの掲示板で過去に質問された内容です。

No.1698 Mailサーバについて


No.1698 投稿時間:2006年07月07日(Fri) 22:00 投稿者名:Yusuke URL:
タイトル:Mailサーバについて

お世話になっております。

メールサーバですがメールが正常に配信されなくなりました。

WebminでPostfixのページを見てみると、メールキューには送受信したメールが溜まっているのですが、ユーザーのメールボックスに配信される気配がありません。

メールのログを確認したのですが、正常配信されたときと変化はないようでした。
参考までに掲載します。

Jul 7 21:37:08 localhost postfix/smtpd[12590]: connect from *****.jp[**.**.**.**]
Jul 7 21:37:09 localhost postfix/cleanup[12592]: warning: regexp map /etc/postfix/header_checks, line 1: ignoring unrecognized request
Jul 7 21:37:09 localhost postfix/cleanup[12592]: warning: regexp map /etc/postfix/header_checks, line 3: ignoring unrecognized request
Jul 7 21:37:09 localhost postfix/cleanup[12592]: warning: regexp map /etc/postfix/header_checks, line 4: ignoring unrecognized request
Jul 7 21:37:09 localhost postfix/cleanup[12592]: warning: regexp map /etc/postfix/header_checks, line 6: ignoring unrecognized request
Jul 7 21:37:09 localhost postfix/cleanup[12592]: warning: regexp map /etc/postfix/header_checks, line 7: ignoring unrecognized request
Jul 7 21:37:09 localhost postfix/cleanup[12592]: warning: regexp map /etc/postfix/header_checks, line 9: ignoring unrecognized request
Jul 7 21:37:09 localhost postfix/cleanup[12592]: warning: regexp map /etc/postfix/header_checks, line 10: ignoring unrecognized request
Jul 7 21:37:09 localhost postfix/cleanup[12592]: warning: regexp map /etc/postfix/header_checks, line 11: ignoring unrecognized request
Jul 7 21:37:09 localhost postfix/cleanup[12592]: warning: regexp map /etc/postfix/header_checks, line 13: ignoring unrecognized request
Jul 7 21:37:09 localhost postfix/cleanup[12592]: warning: regexp map /etc/postfix/header_checks, line 14: ignoring unrecognized request
Jul 7 21:37:09 localhost postfix/cleanup[12592]: warning: regexp map /etc/postfix/header_checks, line 16: ignoring unrecognized request
Jul 7 21:37:09 localhost postfix/cleanup[12592]: warning: regexp map /etc/postfix/header_checks, line 17: ignoring unrecognized request
Jul 7 21:37:09 localhost postfix/cleanup[12592]: warning: regexp map /etc/postfix/header_checks, line 18: ignoring unrecognized request
Jul 7 21:37:09 localhost postfix/cleanup[12592]: warning: regexp map /etc/postfix/header_checks, line 20: ignoring unrecognized request
Jul 7 21:37:09 localhost postfix/cleanup[12592]: warning: regexp map /etc/postfix/header_checks, line 22: ignoring unrecognized request
Jul 7 21:37:09 localhost postfix/smtpd[12590]: 22C484444A: client=*****jp[**.**.**.**], sasl_method=CRAM-MD5, sasl_username=****@*****
Jul 7 21:37:11 localhost postfix/cleanup[12592]: 22C484444A: message-id=<CC6A1C212A994****@*****>
Jul 7 21:37:11 localhost postfix/qmgr[12230]: 22C484444A: from=<****@*****>, size=609, nrcpt=1 (queue active)
Jul 7 21:37:11 localhost postfix/qmgr[12230]: 22C484444A: to=<****@*****>, relay=none, delay=2, status=deferred (connect to 127.0.0.1[127.0.0.1]: Connection refused)
Jul 7 21:37:11 localhost postfix/smtpd[12590]: disconnect from *****.jp[**.**.**.**]

いくつかの情報は伏せています。
warningが気になりますが、これは以前からでているようです。

尚昨日、サーバーの設定を若干変更しました。
ウイルス対策のソフトをClamからF-Protに変更して、apt-get upgradeでいくつかのパッケージをアップデートしました。

アドバイスなど有りましたら、よろしくお願いいたします。


No.1701 投稿時間:2006年07月07日(Fri) 23:57 投稿者名:Yosi@管理人 URL:
タイトル:Re: Mailサーバについて

> お世話になっております。
>
> メールサーバですがメールが正常に配信されなくなりました。
>
> WebminでPostfixのページを見てみると、メールキューには送受信したメールが溜まっているのですが、ユーザーのメールボックスに配信される気配がありません。
>
> メールのログを確認したのですが、正常配信されたときと変化はないようでした。
> 参考までに掲載します。
>
> Jul 7 21:37:08 localhost postfix/smtpd[12590]: connect from *****.jp[**.**.**.**]
> Jul 7 21:37:09 localhost postfix/cleanup[12592]: warning: regexp map /etc/postfix/header_checks, line 1: ignoring unrecognized request
> Jul 7 21:37:09 localhost postfix/cleanup[12592]: warning: regexp map /etc/postfix/header_checks, line 3: ignoring unrecognized request
> Jul 7 21:37:09 localhost postfix/cleanup[12592]: warning: regexp map /etc/postfix/header_checks, line 4: ignoring unrecognized request
> Jul 7 21:37:09 localhost postfix/cleanup[12592]: warning: regexp map /etc/postfix/header_checks, line 6: ignoring unrecognized request
> Jul 7 21:37:09 localhost postfix/cleanup[12592]: warning: regexp map /etc/postfix/header_checks, line 7: ignoring unrecognized request
> Jul 7 21:37:09 localhost postfix/cleanup[12592]: warning: regexp map /etc/postfix/header_checks, line 9: ignoring unrecognized request
> Jul 7 21:37:09 localhost postfix/cleanup[12592]: warning: regexp map /etc/postfix/header_checks, line 10: ignoring unrecognized request
> Jul 7 21:37:09 localhost postfix/cleanup[12592]: warning: regexp map /etc/postfix/header_checks, line 11: ignoring unrecognized request
> Jul 7 21:37:09 localhost postfix/cleanup[12592]: warning: regexp map /etc/postfix/header_checks, line 13: ignoring unrecognized request
> Jul 7 21:37:09 localhost postfix/cleanup[12592]: warning: regexp map /etc/postfix/header_checks, line 14: ignoring unrecognized request
> Jul 7 21:37:09 localhost postfix/cleanup[12592]: warning: regexp map /etc/postfix/header_checks, line 16: ignoring unrecognized request
> Jul 7 21:37:09 localhost postfix/cleanup[12592]: warning: regexp map /etc/postfix/header_checks, line 17: ignoring unrecognized request
> Jul 7 21:37:09 localhost postfix/cleanup[12592]: warning: regexp map /etc/postfix/header_checks, line 18: ignoring unrecognized request
> Jul 7 21:37:09 localhost postfix/cleanup[12592]: warning: regexp map /etc/postfix/header_checks, line 20: ignoring unrecognized request
> Jul 7 21:37:09 localhost postfix/cleanup[12592]: warning: regexp map /etc/postfix/header_checks, line 22: ignoring unrecognized request
> Jul 7 21:37:09 localhost postfix/smtpd[12590]: 22C484444A: client=*****jp[**.**.**.**], sasl_method=CRAM-MD5, sasl_username=****@*****
> Jul 7 21:37:11 localhost postfix/cleanup[12592]: 22C484444A: message-id=<CC6A1C212A994****@*****>
> Jul 7 21:37:11 localhost postfix/qmgr[12230]: 22C484444A: from=<****@*****>, size=609, nrcpt=1 (queue active)
> Jul 7 21:37:11 localhost postfix/qmgr[12230]: 22C484444A: to=<****@*****>, relay=none, delay=2, status=deferred (connect to 127.0.0.1[127.0.0.1]: Connection refused)
> Jul 7 21:37:11 localhost postfix/smtpd[12590]: disconnect from *****.jp[**.**.**.**]
>
> いくつかの情報は伏せています。
> warningが気になりますが、これは以前からでているようです。
>
> 尚昨日、サーバーの設定を若干変更しました。
> ウイルス対策のソフトをClamからF-Protに変更して、apt-get upgradeでいくつかのパッケージをアップデートしました。
>
> アドバイスなど有りましたら、よろしくお願いいたします。

/etc/postfix/header_checksの設定に問題があるのでは…?


No.1702 投稿時間:2006年07月08日(Sat) 00:05 投稿者名:Yusuke URL:
タイトル:Re^2: Mailサーバについて

早速のお答えありがとうございました。

> /etc/postfix/header_checksの設定に問題があるのでは…?

一応このようになっています。

X-Mailer:.*DM Mailer/i REJECT
X-Mailer:.**ASAYAN/i REJECT

Subject:.*Re:Sample/ REJECT
Subject:.*Re:Document/ REJECT

Subject:\ =\?iso-2022-jp\?B\?GyRCTCQ\+NUJ6OS05cCIo.*/ REJECT
Subject:\ =\?ISO-2022-JP\?B\?GyRCTCQ\+NUJ6OS05cCIo.*/ REJECT

From:.*<#.*@.*>/ REJECT
From:.*@hotomail.com/ REJECT
From:.*email.it/ REJECT

Return-Path:.*<#.*@.*>/ REJECT
Return-Path:.*@msn.com/ REJECT

name=.*\.scr/ REJECT
name=.*\.pif/ REJECT
name=.*\.exe/ REJECT

Received:/ IGNORE

変更した覚えはないのですが・・。

二重投稿の消去、ありがとうございました。


No.1703 投稿時間:2006年07月08日(Sat) 15:57 投稿者名:Yusuke URL:
タイトル:Re^3: Mailサーバについて

補足です。

Webminのメールキューを確認したところ、メッセージのステータスが以下のようになっています。

connect to 127.0.0.1[127.0.0.1]: Connection refused

配信されないのに関係がありますでしょうか?


No.1704 投稿時間:2006年07月08日(Sat) 20:40 投稿者名:Yosi@管理人 URL:
タイトル:Re^4: Mailサーバについて

> ウイルス対策のソフトをClamからF-Protに変更

ウィルスソフトは、メールサーバーでの使用でしょうか?
もしそうであれば変更以前は問題なく送受信できていたのでしょうか?
またClamAVの設定(/etc/postfix/master.cf、/etc/postfix/main.cf)の部分はきちんと変更できているでしょうか?


一応下記コマンドでpostfixの設置内容を貼り付けてください。
何か分かるかもしれません。
# postconf -n

また、もう少し環境の説明もお願いします。


No.1707 投稿時間:2006年07月09日(Sun) 00:34 投稿者名:Yusuke URL:
タイトル:Re^5: Mailサーバについて

postfixの設定内容は以下の通りです。

alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
allow_percent_hack = yes
body_checks = regexp:/etc/postfix/body_checks
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
default_privs = nobody
disable_vrfy_command = yes
header_checks = regexp:/etc/postfix/header_checks
home_mailbox = Maildir/
inet_interfaces = all
mail_owner = postfix
mailbox_size_limit = 30720000
message_size_limit = 3145728
mydestination = $myhostname,localhost.$mydomain $mydomain
mydomain = **********
myhostname = **********.**********
mynetworks = 192.168.0.0/24, 127.0.0.0/8
myorigin = $mydomain
queue_directory = /var/spool/postfix
relay_domains = $mydestination
smtpd_banner = $myhostname ESMTP unknown
smtpd_helo_required = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $mydomain
unknown_local_recipient_reject_code = 550

サーバの環境ですが、ウィルスソフトはメールサーバで動いています。
現在、同一のサーバマシンを、
Webサーバ、ファイルサーバ、メールサーバ、データベースサーバの用途で使用しています。
またメールの送受信ですが、ウィルスソフトがClamAVの時は正常に動作していました。
F-Protの導入は、Webページを参考にさせていただいて、ClamAVのアンインストールに関してもWebページの逆の手順で行いました。

その他の環境に関しては、どのようなところが分かればよいでしょうか?
お手数おかけして申し訳ありませんが、よろしくお願いいたします。


No.1717 投稿時間:2006年07月09日(Sun) 12:50 投稿者名:Yosi@管理人 URL:
タイトル:Re^6: Mailサーバについて

> またメールの送受信ですが、ウィルスソフトがClamAVの時は正常に動作していました。
> F-Protの導入は、Webページを参考にさせていただいて、ClamAVのアンインストールに関してもWebページの逆の手順で行いました。

メールサーバーのウィルス対策をF-Protで構築していると言う事でしょうか?

またClamAVをアインストールしたのであれば下記の部分は削除しなくては駄目です。

content_filter = smtp-amavis:[127.0.0.1]:10024

また/etc/postfix/master.cfに記載した下記の部分の削除も必要になってきます。

smtp-amavis unix - - n - 2 smtp
-o smtp_data_done_timeout=1200
-o smtp_send_xforward_command=yes
-o disable_dns_lookups=yes

127.0.0.1:10025 inet n - n - - smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes
-o smtpd_error_sleep_time=0
-o smtpd_soft_error_limit=1001
-o smtpd_hard_error_limit=1000


No.1727 投稿時間:2006年07月10日(Mon) 00:50 投稿者名:Yusuke URL:
タイトル:Re^7: Mailサーバについて

指定された部分を削除したところ、正常に送受信できるようになりました。

ご指摘ありがとうございました。

大変助かりました。



TOPページ掲示板▲頁先頭