WARNING failed to start amavisd
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
CONTENTS
#contents
----
Lastmodified &lastmod;
----
*failed to start amavisd [#u11987b1]
Starting amavisd.
/usr/local/etc/rc.d/amavisd: WARNING: failed to start am...
/usr/local/etc/amavisd.conf を削除してから、再インストー...
*/usr/local/etc/rc.d/amavisd: WARNING: failed to start am...
FreeBSD 13.0 へUPした機体で
# /usr/local/etc/rc.d/amavisd start
Starting amavisd.
/usr/local/etc/rc.d/amavisd: WARNING: failed to start am...
と、amavisd が起動しない。
portupgrade -rfR --batach amavisd-new-2.12.0_1,1
したりしてもお不動様なので、
pkg info -dr amavisd-new-2.12.0_1,1
amavisd-new-2.12.0_1,1
Depends on :
ripole-0.2.2
p5-Unix-Syslog-1.1_1
file-5.39
p5-Net-Server-2.010
p5-IO-Socket-INET6-2.72_1
spamassassin-3.4.5
p5-Mail-DKIM-1.20200907
p5-MIME-Tools-5.509,2
perl5-5.28.3_1
p5-Net-LibIDN-0.12_5
p5-BerkeleyDB-0.64
p5-Convert-UUlib-1.70,1
p5-Convert-TNEF-0.18_2
zoo-2.10.1_4
unrar-6.01,6
rpm2cpio-1.4_2
p7zip-16.02_3
p5-Archive-Zip-1.68
lzop-1.04
lha-1.14i_8
cabextract-1.9.1
arj-3.10.22_8
arc-5.21p
の、全pkg を
portupgrade -f ripole-0.2.2 p5-Unix-Syslog-1.1_1 file-5....
してから、
cd /usr/ports/security/amavisd-new
make deinstall clean
rm /usr/local/etc/amavisd.conf
make install clean
した後、
vi /usr/local/etc/amavisd.conf
で、
# $myhostname = 'host.example.com'; # must be a fully-q...
$myhostname = 'piano2nd.smb.net';
等とやって置かないと起動しない、
/usr/local/etc/rc.d/amavisd start
で、起動した。
* /var/amavis/amavisd.sock が生成されない!? 2016-06-14 ...
例によってportupgradeした後で、/var/amavis/amavisd.sock ...
kernel: Starting amavisd.
Jun 14 07:09:16 amavis[996]: starting. /usr/local/sbin/a...
Jun 14 07:09:16 amavis[1004]: starting. /usr/local/sbin/...
Jun 14 07:09:20 amavis[1006]: (!)Net::Server: 2016/06/14...
Jun 14 07:09:20 kernel: Starting clamav_clamd.
Jun 14 07:09:20 amavis[1005]: Net::Server: Group Not Def...
Jun 14 07:09:20 amavis[1005]: Net::Server: User Not Defi...
Jun 14 07:09:20 amavis[1005]: Module Amavis::Conf ...
Jun 14 07:09:20 amavis[1005]: Module Archive::Zip ...
Jun 14 07:09:20 amavis[1005]: Module BerkeleyDB ...
という風なエラー。
top では、amavisdのプロセスは起動しているものの、そのプロ...
/var/amavis/amavisd.pid などが無いため、/usr/local/etc/rc...
monitなどで死活監視してると、延々とコンソールにエラーが・...
** 解決策 [#vaec3f36]
種々やった中で好奏したのが・・・w
987 10:03 locate amavisd-new
988 10:03 cd /usr/ports/security/amavisd-new
989 10:03 make config
991 10:04 make rmconfig
992 10:04 make config
993 10:05 portupgrade -fr security/amavisd-new
*WARNING: failed to start amavisd その2 [#z1df6dfa]
わらわらとportupgrade -r したら、amavisd がうごかなくなっ...
再インストールしても、状況変わらず。
どうやら、なんか、依存しているパッケージがおかしくなった...
# cd /usr/ports/security/amavisd-new
root@blackcube:/usr/ports/security/amavisd-new # make al...
/usr/ports/sysutils/p5-Unix-Syslog
/usr/ports/mail/p5-MIME-Tools
/usr/ports/converters/p5-Convert-TNEF
/usr/ports/converters/p5-Convert-UUlib
/usr/ports/archivers/p5-Archive-Zip
/usr/ports/net/p5-Net-Server
/usr/ports/mail/p5-Mail-DKIM
/usr/ports/net/p5-IO-Socket-INET6
/usr/ports/databases/p5-BerkeleyDB
/usr/ports/databases/p5-DBD-mysql
/usr/ports/mail/p5-Mail-SpamAssassin
/usr/ports/sysutils/file
/usr/ports/archivers/unrar
/usr/ports/archivers/arj
/usr/ports/archivers/lha
/usr/ports/archivers/arc
/usr/ports/archivers/cabextract
/usr/ports/archivers/rpm2cpio
/usr/ports/archivers/zoo
/usr/ports/archivers/lzop
/usr/ports/archivers/freeze
/usr/ports/archivers/p7zip
/usr/ports/textproc/ripole
/usr/ports/lang/perl5.14
/usr/ports/converters/p5-Convert-BinHex
/usr/ports/devel/p5-IO-stringy
/usr/ports/mail/p5-Mail-Tools
/usr/ports/devel/p5-IO-Multiplex
/usr/ports/net/p5-Socket6
/usr/ports/security/p5-Crypt-OpenSSL-RSA
/usr/ports/dns/p5-Net-DNS
/usr/ports/databases/db47
/usr/ports/databases/p5-DBI
/usr/ports/security/p5-Crypt-SSLeay
/usr/ports/databases/mysql51-client
/usr/ports/net-mgmt/p5-NetAddr-IP
/usr/ports/www/p5-HTML-Parser
/usr/ports/www/p5-libwww
/usr/ports/converters/p5-Encode-Detect
/usr/ports/security/p5-IO-Socket-SSL
/usr/ports/security/gnupg1
/usr/ports/mail/razor-agents
/usr/ports/devel/libtool
/usr/ports/devel/gmake
/usr/ports/devel/autoconf
/usr/ports/archivers/lzo2
/usr/ports/devel/p5-TimeDate
/usr/ports/security/p5-Crypt-OpenSSL-Bignum
/usr/ports/security/p5-Crypt-OpenSSL-Random
/usr/ports/security/p5-Digest-HMAC
/usr/ports/dns/p5-Net-LibIDN
/usr/ports/www/p5-LWP-Protocol-https
/usr/ports/www/p5-HTML-Tagset
/usr/ports/security/p5-Authen-NTLM
/usr/ports/converters/p5-Encode-Locale
/usr/ports/sysutils/p5-File-Listing
/usr/ports/www/p5-HTTP-Cookies
/usr/ports/www/p5-HTTP-Daemon
/usr/ports/www/p5-HTTP-Date
/usr/ports/www/p5-HTTP-Message
/usr/ports/www/p5-HTTP-Negotiate
/usr/ports/www/p5-LWP-MediaTypes
/usr/ports/net/p5-Net-HTTP
/usr/ports/net/p5-URI
/usr/ports/www/p5-WWW-RobotRules
/usr/ports/devel/p5-ExtUtils-CBuilder
/usr/ports/devel/p5-Module-Build
/usr/ports/security/p5-Net-SSLeay
/usr/ports/net/p5-IO-Socket-IP
/usr/ports/net/p5-Socket
/usr/ports/ftp/curl
/usr/ports/devel/gettext
/usr/ports/security/p5-Digest-SHA1
/usr/ports/converters/libiconv
/usr/ports/devel/m4
/usr/ports/misc/help2man
/usr/ports/devel/autoconf-wrapper
/usr/ports/dns/libidn
/usr/ports/www/p5-Mozilla-CA
/usr/ports/devel/p5-IO-HTML
/usr/ports/security/ca_root_nss
/usr/ports/devel/p5-Locale-gettext
/usr/ports/devel/pkgconf
root@blackcube:/usr/ports/security/amavisd-new #
うわっ、こんなにある・・・。ということで、まず、リーフパ...
# pkg_cleanup
で、amavisd-new とその依存リーフパッケージを削除。
http://gihyo.jp/admin/clip/01/fdt/201111/28
portinstall security/amavisd-new
依然として起動せず。(;。;)
reload オプションを試してみる。
root@blackcube:/root # /usr/local/etc/rc.d/amavisd reload
ERROR: MISSING REQUIRED BASIC MODULES:
IO::Stringy
Unix::Syslog
BEGIN failed--compilation aborted at /usr/local/sbin/ama...
root@blackcube:/root # portupgrade -fr p5-IO-stringy-2.110
root@blackcube:/root # /usr/local/etc/rc.d/amavisd reload
ERROR: MISSING REQUIRED BASIC MODULES:
Unix::Syslog
BEGIN failed--compilation aborted at /usr/local/sbin/ama...
root@blackcube:/root # portupgrade -rf p5-Unix-Syslog-1.1
root@blackcube:/root # /usr/local/etc/rc.d/amavisd reload
Problem in Amavis::DKIM code: Can't locate Crypt/OpenSSL...
/usr/local/lib/perl5/5.14/mach /usr/local/lib/perl5/5.14...
BEGIN failed--compilation aborted at (eval 97) line 50.
root@blackcube:/root # portupgrade -rf p5-Crypt-OpenSSL-...
root@blackcube:/root # /usr/local/etc/rc.d/amavisd reload
Problem in Amavis::Unpackers code: Can't locate Archive/...
/usr/local/lib/perl5/site_perl/5.14/mach /usr/local/lib/...
at (eval 119) line 33.
BEGIN failed--compilation aborted at (eval 119) line 33.
root@blackcube:/root # portupgrade -rf p5-Archive-Zip-1....
root@blackcube:/root # /usr/local/etc/rc.d/amavisd reload
Problem in Amavis::Unpackers code: Can't locate Convert/...
/usr/local/lib/perl5/site_perl/5.14/mach /usr/local/lib/...
at (eval 119) line 35.
BEGIN failed--compilation aborted at (eval 119) line 35.
root@blackcube:/root # portupgrade -rf p5-Convert-UUlib-...
root@blackcube:/root # /usr/local/etc/rc.d/amavisd reload
The amavisd daemon is apparently not running, no PID fil...
root@blackcube:/root # /usr/local/etc/rc.d/amavisd start
Starting amavisd.
うっ・・・うごいた!ヽ(^。^)丿
と思ったら、エラー吐かずに動かない状態ですた。大泣き
どうやら、p5-関連で転けてる風味なので、
root@blackcube:/usr/ports/security/amavisd-new # make al...
/usr/ports/sysutils/p5-Unix-Syslog
/usr/ports/mail/p5-MIME-Tools
/usr/ports/converters/p5-Convert-TNEF
/usr/ports/converters/p5-Convert-UUlib
/usr/ports/archivers/p5-Archive-Zip
/usr/ports/net/p5-Net-Server
/usr/ports/mail/p5-Mail-DKIM
/usr/ports/net/p5-IO-Socket-INET6
/usr/ports/databases/p5-BerkeleyDB
/usr/ports/databases/p5-DBD-mysql
/usr/ports/mail/p5-Mail-SpamAssassin
/usr/ports/converters/p5-Convert-BinHex
/usr/ports/devel/p5-IO-stringy
/usr/ports/mail/p5-Mail-Tools
/usr/ports/devel/p5-IO-Multiplex
/usr/ports/net/p5-Socket6
/usr/ports/security/p5-Crypt-OpenSSL-RSA
/usr/ports/dns/p5-Net-DNS
/usr/ports/databases/p5-DBI
/usr/ports/security/p5-Crypt-SSLeay
/usr/ports/net-mgmt/p5-NetAddr-IP
/usr/ports/www/p5-HTML-Parser
/usr/ports/www/p5-libwww
/usr/ports/converters/p5-Encode-Detect
/usr/ports/security/p5-IO-Socket-SSL
/usr/ports/devel/p5-TimeDate
/usr/ports/security/p5-Crypt-OpenSSL-Bignum
/usr/ports/security/p5-Crypt-OpenSSL-Random
/usr/ports/security/p5-Digest-HMAC
/usr/ports/dns/p5-Net-LibIDN
/usr/ports/www/p5-LWP-Protocol-https
/usr/ports/www/p5-HTML-Tagset
/usr/ports/security/p5-Authen-NTLM
/usr/ports/converters/p5-Encode-Locale
/usr/ports/sysutils/p5-File-Listing
/usr/ports/www/p5-HTTP-Cookies
/usr/ports/www/p5-HTTP-Daemon
/usr/ports/www/p5-HTTP-Date
/usr/ports/www/p5-HTTP-Message
/usr/ports/www/p5-HTTP-Negotiate
/usr/ports/www/p5-LWP-MediaTypes
/usr/ports/net/p5-Net-HTTP
/usr/ports/net/p5-URI
/usr/ports/www/p5-WWW-RobotRules
/usr/ports/devel/p5-ExtUtils-CBuilder
/usr/ports/devel/p5-Module-Build
/usr/ports/security/p5-Net-SSLeay
/usr/ports/net/p5-IO-Socket-IP
/usr/ports/net/p5-Socket
/usr/ports/security/p5-Digest-SHA1
/usr/ports/www/p5-Mozilla-CA
/usr/ports/devel/p5-IO-HTML
/usr/ports/devel/p5-Locale-gettext
root@blackcube:/usr/ports/security/amavisd-new #
もう、上から順番に、
portupgrade -rf devel/p5-IO-Multiplex net/p5-Socket6 sec...
net-mgmt/p5-NetAddr-IP www/p5-HTML-Parser www/p5-libwww ...
みたいに、強制UPさせて、/usr/local/etc/rc.d/amavisd start...
root@blackcube:/usr/ports/security/amavisd-new # /usr/lo...
Starting amavisd.
root@blackcube:/usr/ports/security/amavisd-new # /usr/lo...
root@blackcube:/usr/ports/security/amavisd-new # /usr/lo...
amavisd already running? (pid=12278).
なんか、今度は、動いたっぽい! (?_?)
----
*WARNING: failed to start amavisd [#d23318c5]
http://forums.freebsd.org/showthread.php?t=16379
WARNING: failed to start amavisdと言ってamavisdが起ち上が...
こうなると、connect to 127.0.0.1[127.0.0.1]:10024: Connec...
コンソールで、
# /usr/local/etc/rc.d/amavisd start
してもダメなときは、さっさと
# rm -r /var/amavis
して、amavisd-newを再インストールする、ヨロシ。( ̄^ ̄)ゞ
[[VirusScan on FreeBSD 9.0R]]~
[[amavisd-new のインストール:http://piano2nd.smb.net/~kuj...
# cd /usr/ports/security/amavisd-new
# make deinstall
# cp Makefile Makefile_dist
# vi Makefile
---------------------------------
- AMAVISUSER?= vscan #この部分を
- AMAVISGROUP?= vscan
---------------------------------
+ AMAVISUSER?= clamav #このように編集
+ AMAVISGROUP?= clamav
---------------------------------
# portinstall security/amavisd-new
# rehash
# /usr/local/etc/rc.d/amavisd start
# /usr/local/etc/rc.d/amavisd status
amavisd is running as pid 12663.
#hr
*タイトルに ***UNCHECKED*** が付く [#z02b4a59]
/var/log/console.log
Apr 1 09:24:35 flora kernel: Mon Apr 1 09:24:35 JST 2013
Apr 1 13:35:41 flora kernel: Apr 1 13:35:41 flora kern...
Apr 1 16:41:59 flora kernel: Apr 1 16:41:59 flora post...
Apr 1 16:43:02 flora kernel: Apr 1 16:43:01 flora post...
と言うわけで、pid 1418 (clamd)が落ちてるわけで・・・スク...
flora{102} % ps aux | grep clamd
clamav 1420 0.0 6.9 182920 16344 ?? Is 5:43PM 0...
root 1627 0.0 0.6 9636 1492 0 S+ 5:47PM 0...
flora{103} % ps aux | grep clamav
clamav 1415 0.0 1.7 83356 4056 ?? Ss 5:41PM 0...
clamav 1418 0.0 1.4 84172 3300 ?? I 5:42PM 0...
clamav 1419 0.0 0.0 84172 0 ?? IW - 0...
clamav 1420 0.0 6.9 182920 16344 ?? Is 5:43PM 0...
clamav 1423 0.0 1.5 21100 3592 ?? Is 5:45PM 0...
root 1629 0.0 0.6 9636 1492 0 S+ 5:48PM 0...
どっちがよいのでしょうか?
参考URL
[[多量のspamが来て/usr/local/sbin/spamass-milter が停止 :...
killedでclamd が動かなくなり、spam判定がスルーされて「***...
これを避ける為にaddhock だけど、スクリプトを仕掛けcronで1...
以下が /etc/crontab に追加した行、10分に1回立ち上がりま...
10 * * * * root /root/bin/checkclamd.sh
checkclamd.shの内容
clamdというプロセスがあるかどうか調べ無かったら立ち上げた...
#!/usr/local/bin/bash
r=`ps -ax | grep clamd | grep -v grep`
if [ "$r" == "" ]
then
/usr/local/etc/rc.d/clamav-clamd start
echo "clamd@mail was down, it is UP now" | mail -s "clam...
fi
exit 0
これで安心。チェックする間隔があまりにも短いとまだswapが...
抜本的には多量のspamが来てもいいよう高速のCPUと大容量のメ...
----
Total access &counter(total);:本日 &counter(today);:昨...
#counter([total|today|yesterday]);
終了行:
CONTENTS
#contents
----
Lastmodified &lastmod;
----
*failed to start amavisd [#u11987b1]
Starting amavisd.
/usr/local/etc/rc.d/amavisd: WARNING: failed to start am...
/usr/local/etc/amavisd.conf を削除してから、再インストー...
*/usr/local/etc/rc.d/amavisd: WARNING: failed to start am...
FreeBSD 13.0 へUPした機体で
# /usr/local/etc/rc.d/amavisd start
Starting amavisd.
/usr/local/etc/rc.d/amavisd: WARNING: failed to start am...
と、amavisd が起動しない。
portupgrade -rfR --batach amavisd-new-2.12.0_1,1
したりしてもお不動様なので、
pkg info -dr amavisd-new-2.12.0_1,1
amavisd-new-2.12.0_1,1
Depends on :
ripole-0.2.2
p5-Unix-Syslog-1.1_1
file-5.39
p5-Net-Server-2.010
p5-IO-Socket-INET6-2.72_1
spamassassin-3.4.5
p5-Mail-DKIM-1.20200907
p5-MIME-Tools-5.509,2
perl5-5.28.3_1
p5-Net-LibIDN-0.12_5
p5-BerkeleyDB-0.64
p5-Convert-UUlib-1.70,1
p5-Convert-TNEF-0.18_2
zoo-2.10.1_4
unrar-6.01,6
rpm2cpio-1.4_2
p7zip-16.02_3
p5-Archive-Zip-1.68
lzop-1.04
lha-1.14i_8
cabextract-1.9.1
arj-3.10.22_8
arc-5.21p
の、全pkg を
portupgrade -f ripole-0.2.2 p5-Unix-Syslog-1.1_1 file-5....
してから、
cd /usr/ports/security/amavisd-new
make deinstall clean
rm /usr/local/etc/amavisd.conf
make install clean
した後、
vi /usr/local/etc/amavisd.conf
で、
# $myhostname = 'host.example.com'; # must be a fully-q...
$myhostname = 'piano2nd.smb.net';
等とやって置かないと起動しない、
/usr/local/etc/rc.d/amavisd start
で、起動した。
* /var/amavis/amavisd.sock が生成されない!? 2016-06-14 ...
例によってportupgradeした後で、/var/amavis/amavisd.sock ...
kernel: Starting amavisd.
Jun 14 07:09:16 amavis[996]: starting. /usr/local/sbin/a...
Jun 14 07:09:16 amavis[1004]: starting. /usr/local/sbin/...
Jun 14 07:09:20 amavis[1006]: (!)Net::Server: 2016/06/14...
Jun 14 07:09:20 kernel: Starting clamav_clamd.
Jun 14 07:09:20 amavis[1005]: Net::Server: Group Not Def...
Jun 14 07:09:20 amavis[1005]: Net::Server: User Not Defi...
Jun 14 07:09:20 amavis[1005]: Module Amavis::Conf ...
Jun 14 07:09:20 amavis[1005]: Module Archive::Zip ...
Jun 14 07:09:20 amavis[1005]: Module BerkeleyDB ...
という風なエラー。
top では、amavisdのプロセスは起動しているものの、そのプロ...
/var/amavis/amavisd.pid などが無いため、/usr/local/etc/rc...
monitなどで死活監視してると、延々とコンソールにエラーが・...
** 解決策 [#vaec3f36]
種々やった中で好奏したのが・・・w
987 10:03 locate amavisd-new
988 10:03 cd /usr/ports/security/amavisd-new
989 10:03 make config
991 10:04 make rmconfig
992 10:04 make config
993 10:05 portupgrade -fr security/amavisd-new
*WARNING: failed to start amavisd その2 [#z1df6dfa]
わらわらとportupgrade -r したら、amavisd がうごかなくなっ...
再インストールしても、状況変わらず。
どうやら、なんか、依存しているパッケージがおかしくなった...
# cd /usr/ports/security/amavisd-new
root@blackcube:/usr/ports/security/amavisd-new # make al...
/usr/ports/sysutils/p5-Unix-Syslog
/usr/ports/mail/p5-MIME-Tools
/usr/ports/converters/p5-Convert-TNEF
/usr/ports/converters/p5-Convert-UUlib
/usr/ports/archivers/p5-Archive-Zip
/usr/ports/net/p5-Net-Server
/usr/ports/mail/p5-Mail-DKIM
/usr/ports/net/p5-IO-Socket-INET6
/usr/ports/databases/p5-BerkeleyDB
/usr/ports/databases/p5-DBD-mysql
/usr/ports/mail/p5-Mail-SpamAssassin
/usr/ports/sysutils/file
/usr/ports/archivers/unrar
/usr/ports/archivers/arj
/usr/ports/archivers/lha
/usr/ports/archivers/arc
/usr/ports/archivers/cabextract
/usr/ports/archivers/rpm2cpio
/usr/ports/archivers/zoo
/usr/ports/archivers/lzop
/usr/ports/archivers/freeze
/usr/ports/archivers/p7zip
/usr/ports/textproc/ripole
/usr/ports/lang/perl5.14
/usr/ports/converters/p5-Convert-BinHex
/usr/ports/devel/p5-IO-stringy
/usr/ports/mail/p5-Mail-Tools
/usr/ports/devel/p5-IO-Multiplex
/usr/ports/net/p5-Socket6
/usr/ports/security/p5-Crypt-OpenSSL-RSA
/usr/ports/dns/p5-Net-DNS
/usr/ports/databases/db47
/usr/ports/databases/p5-DBI
/usr/ports/security/p5-Crypt-SSLeay
/usr/ports/databases/mysql51-client
/usr/ports/net-mgmt/p5-NetAddr-IP
/usr/ports/www/p5-HTML-Parser
/usr/ports/www/p5-libwww
/usr/ports/converters/p5-Encode-Detect
/usr/ports/security/p5-IO-Socket-SSL
/usr/ports/security/gnupg1
/usr/ports/mail/razor-agents
/usr/ports/devel/libtool
/usr/ports/devel/gmake
/usr/ports/devel/autoconf
/usr/ports/archivers/lzo2
/usr/ports/devel/p5-TimeDate
/usr/ports/security/p5-Crypt-OpenSSL-Bignum
/usr/ports/security/p5-Crypt-OpenSSL-Random
/usr/ports/security/p5-Digest-HMAC
/usr/ports/dns/p5-Net-LibIDN
/usr/ports/www/p5-LWP-Protocol-https
/usr/ports/www/p5-HTML-Tagset
/usr/ports/security/p5-Authen-NTLM
/usr/ports/converters/p5-Encode-Locale
/usr/ports/sysutils/p5-File-Listing
/usr/ports/www/p5-HTTP-Cookies
/usr/ports/www/p5-HTTP-Daemon
/usr/ports/www/p5-HTTP-Date
/usr/ports/www/p5-HTTP-Message
/usr/ports/www/p5-HTTP-Negotiate
/usr/ports/www/p5-LWP-MediaTypes
/usr/ports/net/p5-Net-HTTP
/usr/ports/net/p5-URI
/usr/ports/www/p5-WWW-RobotRules
/usr/ports/devel/p5-ExtUtils-CBuilder
/usr/ports/devel/p5-Module-Build
/usr/ports/security/p5-Net-SSLeay
/usr/ports/net/p5-IO-Socket-IP
/usr/ports/net/p5-Socket
/usr/ports/ftp/curl
/usr/ports/devel/gettext
/usr/ports/security/p5-Digest-SHA1
/usr/ports/converters/libiconv
/usr/ports/devel/m4
/usr/ports/misc/help2man
/usr/ports/devel/autoconf-wrapper
/usr/ports/dns/libidn
/usr/ports/www/p5-Mozilla-CA
/usr/ports/devel/p5-IO-HTML
/usr/ports/security/ca_root_nss
/usr/ports/devel/p5-Locale-gettext
/usr/ports/devel/pkgconf
root@blackcube:/usr/ports/security/amavisd-new #
うわっ、こんなにある・・・。ということで、まず、リーフパ...
# pkg_cleanup
で、amavisd-new とその依存リーフパッケージを削除。
http://gihyo.jp/admin/clip/01/fdt/201111/28
portinstall security/amavisd-new
依然として起動せず。(;。;)
reload オプションを試してみる。
root@blackcube:/root # /usr/local/etc/rc.d/amavisd reload
ERROR: MISSING REQUIRED BASIC MODULES:
IO::Stringy
Unix::Syslog
BEGIN failed--compilation aborted at /usr/local/sbin/ama...
root@blackcube:/root # portupgrade -fr p5-IO-stringy-2.110
root@blackcube:/root # /usr/local/etc/rc.d/amavisd reload
ERROR: MISSING REQUIRED BASIC MODULES:
Unix::Syslog
BEGIN failed--compilation aborted at /usr/local/sbin/ama...
root@blackcube:/root # portupgrade -rf p5-Unix-Syslog-1.1
root@blackcube:/root # /usr/local/etc/rc.d/amavisd reload
Problem in Amavis::DKIM code: Can't locate Crypt/OpenSSL...
/usr/local/lib/perl5/5.14/mach /usr/local/lib/perl5/5.14...
BEGIN failed--compilation aborted at (eval 97) line 50.
root@blackcube:/root # portupgrade -rf p5-Crypt-OpenSSL-...
root@blackcube:/root # /usr/local/etc/rc.d/amavisd reload
Problem in Amavis::Unpackers code: Can't locate Archive/...
/usr/local/lib/perl5/site_perl/5.14/mach /usr/local/lib/...
at (eval 119) line 33.
BEGIN failed--compilation aborted at (eval 119) line 33.
root@blackcube:/root # portupgrade -rf p5-Archive-Zip-1....
root@blackcube:/root # /usr/local/etc/rc.d/amavisd reload
Problem in Amavis::Unpackers code: Can't locate Convert/...
/usr/local/lib/perl5/site_perl/5.14/mach /usr/local/lib/...
at (eval 119) line 35.
BEGIN failed--compilation aborted at (eval 119) line 35.
root@blackcube:/root # portupgrade -rf p5-Convert-UUlib-...
root@blackcube:/root # /usr/local/etc/rc.d/amavisd reload
The amavisd daemon is apparently not running, no PID fil...
root@blackcube:/root # /usr/local/etc/rc.d/amavisd start
Starting amavisd.
うっ・・・うごいた!ヽ(^。^)丿
と思ったら、エラー吐かずに動かない状態ですた。大泣き
どうやら、p5-関連で転けてる風味なので、
root@blackcube:/usr/ports/security/amavisd-new # make al...
/usr/ports/sysutils/p5-Unix-Syslog
/usr/ports/mail/p5-MIME-Tools
/usr/ports/converters/p5-Convert-TNEF
/usr/ports/converters/p5-Convert-UUlib
/usr/ports/archivers/p5-Archive-Zip
/usr/ports/net/p5-Net-Server
/usr/ports/mail/p5-Mail-DKIM
/usr/ports/net/p5-IO-Socket-INET6
/usr/ports/databases/p5-BerkeleyDB
/usr/ports/databases/p5-DBD-mysql
/usr/ports/mail/p5-Mail-SpamAssassin
/usr/ports/converters/p5-Convert-BinHex
/usr/ports/devel/p5-IO-stringy
/usr/ports/mail/p5-Mail-Tools
/usr/ports/devel/p5-IO-Multiplex
/usr/ports/net/p5-Socket6
/usr/ports/security/p5-Crypt-OpenSSL-RSA
/usr/ports/dns/p5-Net-DNS
/usr/ports/databases/p5-DBI
/usr/ports/security/p5-Crypt-SSLeay
/usr/ports/net-mgmt/p5-NetAddr-IP
/usr/ports/www/p5-HTML-Parser
/usr/ports/www/p5-libwww
/usr/ports/converters/p5-Encode-Detect
/usr/ports/security/p5-IO-Socket-SSL
/usr/ports/devel/p5-TimeDate
/usr/ports/security/p5-Crypt-OpenSSL-Bignum
/usr/ports/security/p5-Crypt-OpenSSL-Random
/usr/ports/security/p5-Digest-HMAC
/usr/ports/dns/p5-Net-LibIDN
/usr/ports/www/p5-LWP-Protocol-https
/usr/ports/www/p5-HTML-Tagset
/usr/ports/security/p5-Authen-NTLM
/usr/ports/converters/p5-Encode-Locale
/usr/ports/sysutils/p5-File-Listing
/usr/ports/www/p5-HTTP-Cookies
/usr/ports/www/p5-HTTP-Daemon
/usr/ports/www/p5-HTTP-Date
/usr/ports/www/p5-HTTP-Message
/usr/ports/www/p5-HTTP-Negotiate
/usr/ports/www/p5-LWP-MediaTypes
/usr/ports/net/p5-Net-HTTP
/usr/ports/net/p5-URI
/usr/ports/www/p5-WWW-RobotRules
/usr/ports/devel/p5-ExtUtils-CBuilder
/usr/ports/devel/p5-Module-Build
/usr/ports/security/p5-Net-SSLeay
/usr/ports/net/p5-IO-Socket-IP
/usr/ports/net/p5-Socket
/usr/ports/security/p5-Digest-SHA1
/usr/ports/www/p5-Mozilla-CA
/usr/ports/devel/p5-IO-HTML
/usr/ports/devel/p5-Locale-gettext
root@blackcube:/usr/ports/security/amavisd-new #
もう、上から順番に、
portupgrade -rf devel/p5-IO-Multiplex net/p5-Socket6 sec...
net-mgmt/p5-NetAddr-IP www/p5-HTML-Parser www/p5-libwww ...
みたいに、強制UPさせて、/usr/local/etc/rc.d/amavisd start...
root@blackcube:/usr/ports/security/amavisd-new # /usr/lo...
Starting amavisd.
root@blackcube:/usr/ports/security/amavisd-new # /usr/lo...
root@blackcube:/usr/ports/security/amavisd-new # /usr/lo...
amavisd already running? (pid=12278).
なんか、今度は、動いたっぽい! (?_?)
----
*WARNING: failed to start amavisd [#d23318c5]
http://forums.freebsd.org/showthread.php?t=16379
WARNING: failed to start amavisdと言ってamavisdが起ち上が...
こうなると、connect to 127.0.0.1[127.0.0.1]:10024: Connec...
コンソールで、
# /usr/local/etc/rc.d/amavisd start
してもダメなときは、さっさと
# rm -r /var/amavis
して、amavisd-newを再インストールする、ヨロシ。( ̄^ ̄)ゞ
[[VirusScan on FreeBSD 9.0R]]~
[[amavisd-new のインストール:http://piano2nd.smb.net/~kuj...
# cd /usr/ports/security/amavisd-new
# make deinstall
# cp Makefile Makefile_dist
# vi Makefile
---------------------------------
- AMAVISUSER?= vscan #この部分を
- AMAVISGROUP?= vscan
---------------------------------
+ AMAVISUSER?= clamav #このように編集
+ AMAVISGROUP?= clamav
---------------------------------
# portinstall security/amavisd-new
# rehash
# /usr/local/etc/rc.d/amavisd start
# /usr/local/etc/rc.d/amavisd status
amavisd is running as pid 12663.
#hr
*タイトルに ***UNCHECKED*** が付く [#z02b4a59]
/var/log/console.log
Apr 1 09:24:35 flora kernel: Mon Apr 1 09:24:35 JST 2013
Apr 1 13:35:41 flora kernel: Apr 1 13:35:41 flora kern...
Apr 1 16:41:59 flora kernel: Apr 1 16:41:59 flora post...
Apr 1 16:43:02 flora kernel: Apr 1 16:43:01 flora post...
と言うわけで、pid 1418 (clamd)が落ちてるわけで・・・スク...
flora{102} % ps aux | grep clamd
clamav 1420 0.0 6.9 182920 16344 ?? Is 5:43PM 0...
root 1627 0.0 0.6 9636 1492 0 S+ 5:47PM 0...
flora{103} % ps aux | grep clamav
clamav 1415 0.0 1.7 83356 4056 ?? Ss 5:41PM 0...
clamav 1418 0.0 1.4 84172 3300 ?? I 5:42PM 0...
clamav 1419 0.0 0.0 84172 0 ?? IW - 0...
clamav 1420 0.0 6.9 182920 16344 ?? Is 5:43PM 0...
clamav 1423 0.0 1.5 21100 3592 ?? Is 5:45PM 0...
root 1629 0.0 0.6 9636 1492 0 S+ 5:48PM 0...
どっちがよいのでしょうか?
参考URL
[[多量のspamが来て/usr/local/sbin/spamass-milter が停止 :...
killedでclamd が動かなくなり、spam判定がスルーされて「***...
これを避ける為にaddhock だけど、スクリプトを仕掛けcronで1...
以下が /etc/crontab に追加した行、10分に1回立ち上がりま...
10 * * * * root /root/bin/checkclamd.sh
checkclamd.shの内容
clamdというプロセスがあるかどうか調べ無かったら立ち上げた...
#!/usr/local/bin/bash
r=`ps -ax | grep clamd | grep -v grep`
if [ "$r" == "" ]
then
/usr/local/etc/rc.d/clamav-clamd start
echo "clamd@mail was down, it is UP now" | mail -s "clam...
fi
exit 0
これで安心。チェックする間隔があまりにも短いとまだswapが...
抜本的には多量のspamが来てもいいよう高速のCPUと大容量のメ...
----
Total access &counter(total);:本日 &counter(today);:昨...
#counter([total|today|yesterday]);
ページ名: