はじめての自宅サーバ構築 - Fedora/CentOS -
Last Update 2018/05/30
[ 更新履歴 ] [ サイト マップ ] [ 質問掲示板 ] [ 雑談掲示板 ] [ リンク ]
トップ >> 当サイト情報 >> スレッド

????????????????????¨????°???¨??§????????°???????¨??????¬???????????°?????±??????????????§??????

このスレッドはクローズされています。記事の閲覧のみとなります。

 ERRORが発生している
????????? 2007/02/06 21:36
????????? とんとん

お世話になります。

fedora5を使っています。
昨日からlogwatchのメールに下記のエラーが表示されております。
このエラーはClam AntiVirusのパターンファイルを更新できないのでしょうか?


(エラー内容)
ERROR: Please edit the example config file /etc/freshclam.conf.
ERROR: Can't parse the config file /etc/clamd.conf


メールサーバーのセキュリティ対策として下記を入れています.。
   メールウイルスチェックにclam antivirus
   スパムチェックにspam assassin



(エラーが発生している時間帯のメールログですがなにが原因なのでしょうか?)
すみませんがご教示下さい。

Feb 6 05:22:40 miserver postfix/qmgr[2114]: 09D8886DEAD: removed
Feb 6 05:22:44 miserver postfix/smtp[11091]: 8D3AB86E3C8: host mfgw1.ocn.ad.jp[222.146.40.203] refused to talk to me: 421 mfgw104.ocn.ad.jp Error: Connection closed
Feb 6 05:22:44 miserver postfix/smtp[11091]: 8D3AB86E3C8: to=<xxx@xxx.viola.ocn.ne.jp>, orig_to=<postmaster@xxxxx.dvrdns.org>, relay=mfgw3.ocn.ad.jp[222.146.51.122], delay=433219, status=deferred (host mfgw3.ocn.ad.jp[222.146.51.122] refused to talk to me: 421 mfgw206.ocn.ad.jp Error: Connection closed)
Feb 6 05:22:44 miserver postfix/qmgr[2114]: 8D3AB86E3C8: from=<root@xxxxx.dvrdns.org>, status=expired, returned to sender
Feb 6 05:22:44 miserver postfix/cleanup[11095]: E39EF86DEAD: message-id=<20070205202244.E39EF86DEAD@xxxxx.dvrdns.org>
Feb 6 05:22:44 miserver postfix/qmgr[2114]: E39EF86DEAD: from=<>, size=3378, nrcpt=1 (queue active)
Feb 6 05:22:44 miserver postfix/qmgr[2114]: 8D3AB86E3C8: removed
Feb 6 05:22:44 miserver postfix/local[11096]: E39EF86DEAD: to=<karen@xxxxx.dvrdns.org>, orig_to=<root@xxxxx.dvrdns.org>, relay=local, delay=0, status=sent (delivered to mailbox)
Feb 6 05:22:44 miserver postfix/qmgr[2114]: E39EF86DEAD: removed
Feb 6 05:55:58 miserver postfix/qmgr[2114]: 8FA7286E3C9: from=<root@xxxxx.dvrdns.org>, size=1395, nrcpt=1 (queue active)
Feb 6 05:55:59 miserver postfix/smtp[11235]: 8FA7286E3C9: host mfgw1.ocn.ad.jp[222.146.40.202] refused to talk to me: 421 mfgw103.ocn.ad.jp Error: Connection closed
Feb 6 05:56:00 miserver postfix/smtp[11235]: 8FA7286E3C9: to=<xxx@xxx.viola.ocn.ne.jp>, orig_to=<root@xxxxx.dvrdns.org>, relay=mfgw1.ocn.ad.jp[222.146.40.200], delay=435215, status=deferred (host mfgw1.ocn.ad.jp[222.146.40.200] refused to talk to me: 421 mfgw101.ocn.ad.jp Error: Connection closed)

■ コンテンツ関連情報

 Re: ERRORが発生している ( No.1 )
????????? 2007/02/07 20:29
????????? 管理者

色々と調べていたのですがクローズされてしまいましたので再オープンさせて頂きました。
(解決されたのでしょうか?)


恐らく、logwatchに出力されたものと、メールログの内容は関係なさそうです。
メールログは以前のスレッド(以下参照)でご返信させて頂いた物と思われます。

  http://kajuhome.com/cgi-bin/patio/patio.cgi?mode=view&no=984

logwatchは不明です。

/etc/freshclam.confの内容を明記して頂けますか?

それと、「/etc/clamd.conf」って存在していますか?(当方にはありません)
 Re: ERRORが発生している ( No.2 )
????????? 2007/02/07 20:37
????????? とんとん

管理人様ありがとうございます。

>色々と調べていたのですがクローズされてしまいましたので再オープンさせて頂きました。
>(解決されたのでしょうか?)

そうとはしらず大変失礼いたしました。
いいえ、まだ解決はいたしておりません

>恐らく、logwatchに出力されたものと、メールログの内容は関係なさそうです。
>メールログは以前のスレッド(以下参照)でご返信させて頂いた物と思われます。


  >http://kajuhome.com/cgi-bin/patio/patio.cgi?mode=view&no=984
そうでした、あとでこの部分は気がつきました。


>logwatchは不明です。
>/etc/freshclam.confの内容を明記して頂けますか?
>それと、「/etc/clamd.conf」って存在していますか?(当方にはありません)

はい、こちらもありませんでした。
 Re: ERRORが発生している ( No.3 )
????????? 2007/02/07 20:45
????????? とんとん

すみません忘れました。
/etc/freshclam.confです。

##
## Example config file for freshclam
## Please read the freshclam.conf(5) manual before editing this file.
## This file may be optionally merged with clamd.conf.
##


# Comment or remove the line below.
#Example

# Path to the database directory.
# WARNING: It must match clamd.conf's directive!
# Default: hardcoded (depends on installation options)
#DatabaseDirectory /var/lib/clamav

# Path to the log file (make sure it has proper permissions)
# Default: disabled
UpdateLogFile /var/log/freshclam.log

# Enable verbose logging.
# Default: disabled
#LogVerbose

# Use system logger (can work together with UpdateLogFile).
# Default: disabled
#LogSyslog

# Specify the type of syslog messages - please refer to 'man syslog'
# for facility names.
# Default: LOG_LOCAL6
#LogFacility LOG_MAIL

# This option allows you to save the process identifier of the daemon
# Default: disabled
#PidFile /var/run/freshclam.pid

# By default when started freshclam drops privileges and switches to the
# "clamav" user. This directive allows you to change the database owner.
# Default: clamav (may depend on installation options)
#DatabaseOwner clamav

# Initialize supplementary group access (freshclam must be started by root).
# Default: disabled
#AllowSupplementaryGroups

# Use DNS to verify virus database version. Freshclam uses DNS TXT records
# to verify database and software versions. With this directive you can change
# the database verification domain.
# Default: enabled, pointing to current.cvd.clamav.net
#DNSDatabaseInfo current.cvd.clamav.net

# Uncomment the following line and replace XY with your country
# code. See http://www.iana.org/cctld/cctld-whois.htm for the full list.
# Default: There is no default, which results in an error when running freshclam
#DatabaseMirror db.XY.clamav.net

# database.clamav.net is a round-robin record which points to our most
# reliable mirrors. It's used as a fall back in case db.XY.clamav.net is
# not working. DO NOT TOUCH the following line unless you know what you
# are doing.
DatabaseMirror database.clamav.net

# How many attempts to make before giving up.
# Default: 3 (per mirror)
#MaxAttempts 5

# Number of database checks per day.
# Default: 12 (every two hours)
#Checks 24

# Proxy settings
# Default: disabled
#HTTPProxyServer myproxy.com
#HTTPProxyPort 1234
#HTTPProxyUsername myusername
#HTTPProxyPassword mypass

# Use aaa.bbb.ccc.ddd as client address for downloading databases. Useful for
# multi-homed systems.
# Default: Use OS'es default outgoing IP address.
#LocalIPAddress aaa.bbb.ccc.ddd

# Send the RELOAD command to clamd.
# Default: disabled
#NotifyClamd
# By default it uses the hardcoded configuration file but you can force an
# another one.
#NotifyClamd /config/file/path

# Run command after successful database update.
# Default: disabled
#OnUpdateExecute command

# Run command when database update process fails.
# Default: disabled
#OnErrorExecute command

# Run command when freshclam reports outdated version.
# In the command string %v will be replaced by the new version number.
# Default: disabled
#OnOutdatedExecute command

# Don't fork into background.
# Default: disabled
#Foreground

# Enable debug messages in libclamav.
# Default: disabled
#Debug

# Timeout in seconds when connecting to the database server.
# Default: 30
#ConnectTimeout 60

# Timeout in seconds when reading from the database server.
# Default: 30
#ReceiveTimeout 60
 Re: ERRORが発生している ( No.4 )
????????? 2007/02/07 20:52
????????? 管理者

特に、おかしな所はありませんね。当方の内容と全く同じです。

「/var/log/freshclam.log」に定義ファイル更新結果が出力されますが、以下の様なログはありますか?

--------------------------------------
ClamAV update process started at Wed Feb 7 18:21:22 2007
main.cvd is up to date (version: 42, sigs: 83951, f-level: 10, builder: tkojm)
daily.cvd is up to date (version: 2529, sigs: 5312, f-level: 9, builder: sven)
 Re: ERRORが発生している ( No.5 )
????????? 2007/02/07 21:01
????????? とんとん

お世話になります。

>特に、おかしな所はありませんね。当方の内容と全く同じです。
そうですか、良かったです。

>「/var/log/freshclam.log」に定義ファイル更新結果が出力されますが、以下の様なログはありますか?

はい、ありました。
ちゃんと定義ファイル更新がされているみたいです。
どうもエラーの要因はClamAVではないみたいですね。



--------------------------------------
ClamAV update process started at Wed Feb 7 17:02:09 2007
main.cvd is up to date (version: 42, sigs: 83951, f-level: 10, builder: tkojm)
daily.cvd is up to date (version: 2529, sigs: 5312, f-level: 9, builder: sven)
 Re: ERRORが発生している ( No.6 )
????????? 2007/02/07 21:14
????????? 管理者

関連するものを列挙します。

?「/etc/clamd.d/amavisd.conf」の内容
# Use system logger.
LogSyslog

# Specify the type of syslog messages - please refer to 'man syslog'
# for facility names.
LogFacility LOG_MAIL

# This option allows you to save a process identifier of the listening
# daemon (main thread).
PidFile /var/run/amavisd/clamd.pid

# Remove stale socket after unclean shutdown.
# Default: disabled
FixStaleSocket

# Run as a selected user (clamd must be started by root).
User amavis

# Path to a local socket file the daemon will listen on.
LocalSocket /var/spool/amavisd/clamd.sock


?「/etc/cron.d/clamav-update」の内容
## Adjust this line...
MAILTO=root,postmaster,webmaster,clamav

## It is ok to execute it as root; freshclam drops privileges and becomes
## user 'clamav' as soon as possible
0 */3 * * * root /usr/share/clamav/freshclam-sleep
注意:当方は3時間毎に定義ファイルをアップデートしています。


?「/etc/freshclam.conf」の内容
##
## Example config file for freshclam
## Please read the freshclam.conf(5) manual before editing this file.
## This file may be optionally merged with clamd.conf.
##


# Comment or remove the line below.
#Example

# Path to the database directory.
# WARNING: It must match clamd.conf's directive!
# Default: hardcoded (depends on installation options)
#DatabaseDirectory /var/lib/clamav

# Path to the log file (make sure it has proper permissions)
# Default: disabled
UpdateLogFile /var/log/freshclam.log

# Enable verbose logging.
# Default: disabled
#LogVerbose

# Use system logger (can work together with UpdateLogFile).
# Default: disabled
#LogSyslog

# Specify the type of syslog messages - please refer to 'man syslog'
# for facility names.
# Default: LOG_LOCAL6
#LogFacility LOG_MAIL

# This option allows you to save the process identifier of the daemon
# Default: disabled
#PidFile /var/run/freshclam.pid

# By default when started freshclam drops privileges and switches to the
# "clamav" user. This directive allows you to change the database owner.
# Default: clamav (may depend on installation options)
#DatabaseOwner clamav

# Initialize supplementary group access (freshclam must be started by root).
# Default: disabled
#AllowSupplementaryGroups

# Use DNS to verify virus database version. Freshclam uses DNS TXT records
# to verify database and software versions. With this directive you can change
# the database verification domain.
# Default: enabled, pointing to current.cvd.clamav.net
#DNSDatabaseInfo current.cvd.clamav.net

# Uncomment the following line and replace XY with your country
# code. See http://www.iana.org/cctld/cctld-whois.htm for the full list.
# Default: There is no default, which results in an error when running freshclam
#DatabaseMirror db.XY.clamav.net

# database.clamav.net is a round-robin record which points to our most
# reliable mirrors. It's used as a fall back in case db.XY.clamav.net is
# not working. DO NOT TOUCH the following line unless you know what you
# are doing.
DatabaseMirror database.clamav.net

# How many attempts to make before giving up.
# Default: 3 (per mirror)
#MaxAttempts 5

# Number of database checks per day.
# Default: 12 (every two hours)
#Checks 24

# Proxy settings
# Default: disabled
#HTTPProxyServer myproxy.com
#HTTPProxyPort 1234
#HTTPProxyUsername myusername
#HTTPProxyPassword mypass

# Use aaa.bbb.ccc.ddd as client address for downloading databases. Useful for
# multi-homed systems.
# Default: Use OS'es default outgoing IP address.
#LocalIPAddress aaa.bbb.ccc.ddd

# Send the RELOAD command to clamd.
# Default: disabled
#NotifyClamd
# By default it uses the hardcoded configuration file but you can force an
# another one.
#NotifyClamd /config/file/path

# Run command after successful database update.
# Default: disabled
#OnUpdateExecute command

# Run command when database update process fails.
# Default: disabled
#OnErrorExecute command

# Run command when freshclam reports outdated version.
# In the command string %v will be replaced by the new version number.
# Default: disabled
#OnOutdatedExecute command

# Don't fork into background.
# Default: disabled
#Foreground

# Enable debug messages in libclamav.
# Default: disabled
#Debug

# Timeout in seconds when connecting to the database server.
# Default: 30
#ConnectTimeout 60

# Timeout in seconds when reading from the database server.
# Default: 30
#ReceiveTimeout 60


? 実行プロセスの表示
# ps -ef | grep clam
amavis  2192   1 0 Jan19 ?    00:01:51 clamd.amavisd -c /etc/clamd.d/amavisd.conf
root   20493 20482 0 21:00 ?    00:00:00 /bin/bash /usr/share/clamav/freshclam-sleep
root   20921 19061 0 21:10 pts/1  00:00:00 grep clam

# ps -ef | grep amavisd
amavis  2192   1 0 Jan19 ?    00:01:51 clamd.amavisd -c /etc/clamd.d/amavisd.conf
amavis  2203   1 0 Jan19 ?    00:00:01 amavisd (master)
amavis  20563 2203 0 21:00 ?    00:00:00 amavisd (ch2-avail)
amavis  20599 2203 0 21:00 ?    00:00:00 amavisd (ch1-avail)
root   20941 19061 0 21:11 pts/1  00:00:00 grep amavisd
 Re: ERRORが発生している ( No.7 )
????????? 2007/02/07 21:47
????????? とんとん

詳細にありがとうございます。
下記は私のですが問題ないように見えます、実際はどうなのでしょうか?

>?「/etc/clamd.d/amavisd.conf」の内容
# Use system logger.
LogSyslog

# Specify the type of syslog messages - please refer to 'man syslog'
# for facility names.
LogFacility LOG_MAIL

# This option allows you to save a process identifier of the listening
# daemon (main thread).
PidFile /var/run/amavisd/clamd.pid

# Remove stale socket after unclean shutdown.
# Default: disabled
FixStaleSocket

# Run as a selected user (clamd must be started by root).
User amavis

# Path to a local socket file the daemon will listen on.
LocalSocket /var/spool/amavisd/clamd.sock

ScanMail

>?「/etc/cron.d/clamav-update」の内容
## Adjust this line...
MAILTO=root,postmaster,webmaster,clamav

## It is ok to execute it as root; freshclam drops privileges and becomes
## user 'clamav' as soon as possible
0 */3 * * * root /usr/share/clamav/freshclam-sleep

>?「/etc/freshclam.conf」の内容
##
## Example config file for freshclam
## Please read the freshclam.conf(5) manual before editing this file.
## This file may be optionally merged with clamd.conf.
##


# Comment or remove the line below.
#Example

# Path to the database directory.
# WARNING: It must match clamd.conf's directive!
# Default: hardcoded (depends on installation options)
#DatabaseDirectory /var/lib/clamav

# Path to the log file (make sure it has proper permissions)
# Default: disabled
UpdateLogFile /var/log/freshclam.log

# Enable verbose logging.
# Default: disabled
#LogVerbose

# Use system logger (can work together with UpdateLogFile).
# Default: disabled
#LogSyslog

# Specify the type of syslog messages - please refer to 'man syslog'
# for facility names.
# Default: LOG_LOCAL6
#LogFacility LOG_MAIL

# This option allows you to save the process identifier of the daemon
# Default: disabled
#PidFile /var/run/freshclam.pid

# By default when started freshclam drops privileges and switches to the
# "clamav" user. This directive allows you to change the database owner.
# Default: clamav (may depend on installation options)
#DatabaseOwner clamav

# Initialize supplementary group access (freshclam must be started by root).
# Default: disabled
#AllowSupplementaryGroups

# Use DNS to verify virus database version. Freshclam uses DNS TXT records
# to verify database and software versions. With this directive you can change
# the database verification domain.
# Default: enabled, pointing to current.cvd.clamav.net
#DNSDatabaseInfo current.cvd.clamav.net

# Uncomment the following line and replace XY with your country
# code. See http://www.iana.org/cctld/cctld-whois.htm for the full list.
# Default: There is no default, which results in an error when running freshclam
#DatabaseMirror db.XY.clamav.net

# database.clamav.net is a round-robin record which points to our most
# reliable mirrors. It's used as a fall back in case db.XY.clamav.net is
# not working. DO NOT TOUCH the following line unless you know what you
# are doing.
DatabaseMirror database.clamav.net

# How many attempts to make before giving up.
# Default: 3 (per mirror)
#MaxAttempts 5

# Number of database checks per day.
# Default: 12 (every two hours)
#Checks 24

# Proxy settings
# Default: disabled
#HTTPProxyServer myproxy.com
#HTTPProxyPort 1234
#HTTPProxyUsername myusername
#HTTPProxyPassword mypass

# Use aaa.bbb.ccc.ddd as client address for downloading databases. Useful for
# multi-homed systems.
# Default: Use OS'es default outgoing IP address.
#LocalIPAddress aaa.bbb.ccc.ddd

# Send the RELOAD command to clamd.
# Default: disabled
#NotifyClamd
# By default it uses the hardcoded configuration file but you can force an
# another one.
#NotifyClamd /config/file/path

# Run command after successful database update.
# Default: disabled
#OnUpdateExecute command

# Run command when database update process fails.
# Default: disabled
#OnErrorExecute command

# Run command when freshclam reports outdated version.
# In the command string %v will be replaced by the new version number.
# Default: disabled
#OnOutdatedExecute command

# Don't fork into background.
# Default: disabled
#Foreground

# Enable debug messages in libclamav.
# Default: disabled
#Debug

# Timeout in seconds when connecting to the database server.
# Default: 30
#ConnectTimeout 60

# Timeout in seconds when reading from the database server.
# Default: 30
#ReceiveTimeout 60

>? 実行プロセスの表示
# ps -ef | grep clam
amavis  2021   1 0 08:06 ?    00:00:02 clamd.amavisd -c /etc/clamd.d/am avisd.conf
root   7211 7210 0 21:00 ?    00:00:00 /bin/bash /usr/share/clamav/fres hclam-sleep
root   7461 7360 0 21:35 pts/1  00:00:00 grep clam


# ps -ef | grep amavisd
amavis  2021   1 0 08:06 ?    00:00:02 clamd.amavisd -c /etc/clamd.d/amavisd.conf
amavis  2040   1 0 08:06 ?    00:00:00 amavisd (master)
amavis  2069 2040 0 08:06 ?    00:00:00 amavisd (virgin child)
amavis  2070 2040 0 08:06 ?    00:00:00 amavisd (virgin child)
root   7472 7360 0 21:38 pts/1  00:00:00 grep amavisd

■ その他

ページ先頭へ


Copyright(©)2004-2018 First home server construction. All Right Reserved.