amavisd-new TROUBLE 2020
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
CONTENTS
#contents
----
Lastmodified &lastmod;
----
*Amavisd-new [#abd16bb9]
/etc/rc.conf での起動順
Starting clamav_clamd.
Starting clamav_freshclam.
Starting amavisd.
良く?w起こるエラー
Aug 8 00:19:31 macinename amavis[40589]: (!!)TROUBLE in...
Aug 8 00:19:31 macinename amavis[40589]: (!)_DIE: Suici...
Aug 8 00:19:31 macinename amavis[2504]: sd_notify (no s...
Aug 8 00:19:35 macinename postfix/error[40807]: 877053C...
Aug 8 00:19:35 macinename postfix/error[40810]: 8091B3C...
Aug 8 00:19:35 macinename postfix/error[40781]: 8BB7A3C...
Aug 8 00:19:35 macinename postfix/error[40780]: 8BAC03C...
Aug 8 00:19:35 macinename postfix/error[40782]: 8A9E23C...
----
*amavisd-new TROUBLE 20230804 [#k9c16353]
FreeBSD 13.1 を 13.2 へUpgradeした後辺りから、/var/log/ma...
Aug 7 02:33:08 guard amavis[63433]: (!!)TROUBLE in chil...
Aug 7 02:33:08 guard amavis[63434]: (!!)TROUBLE in chil...
Aug 7 02:33:08 guard amavis[63430]: (!)_DIE: Suicide in...
Aug 7 02:33:08 guard amavis[63433]: (!)_DIE: Suicide in...
Aug 7 02:33:08 guard amavis[63434]: (!)_DIE: Suicide in...
Aug 7 02:33:08 guard amavis[63431]: (!)_DIE: Suicide in...
Aug 7 02:33:08 guard amavis[63432]: (!)_DIE: Suicide in...
Aug 7 02:33:08 guard amavis[63435]: (!!)TROUBLE in chil...
Aug 7 02:33:08 guard amavis[63436]: (!!)TROUBLE in chil...
Aug 7 02:33:08 guard amavis[63435]: (!)_DIE: Suicide in...
Aug 7 02:33:08 guard amavis[63436]: (!)_DIE: Suicide in...
のようなエラーがでて、mailq が増加するトラブル。amavisd--...
**amavisd-new deinstall install again [#ma998c41]
966 11:11 cd /usr/ports/security/amavisd-new/
/usr/ports/security/amavisd-new/makefile の usr:group がv...
967 11:11 make deinstall
968 11:12 make install clean
***/usr/local/etc/amavisd.conf の確認 [#n756f2c6]
/usr/local/etc/amavisd.conf.sample を /usr/local/etc/ama...
23 $mydomain = ''; # a convenient default for other se...
384 ### http://www.clamav.net/
385 ['ClamAV-clamd',
386 \&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/cl...
387 qr/\bOK$/m, qr/\bFOUND$/m,
388 qr/^.*?: (?!Infected Archive)(.*) FOUND$/m ],
のコメントアウトを外す。
**clamav もついでに最新版へ [#qed5ba6f]
994 11:27 cd /usr/ports/security/clamav
995 11:27 make deinstall
996 11:27 make install clean
997 11:38 /usr/local/etc/rc.d/amavisd start
998 11:38 /usr/local/etc/rc.d/amavisd restart
/usr/local/etc/clamd.sample を /usr/local/etc/clamd.conf...
/usr/local/etc/clamd.conf の226行目をコメントアウト
#User clamav
User root
さらに、
/usr/local/etc/freshclam.conf は、
59 #DatabaseOwner clamav
DatabaseOwner root
----
*amavisd-new TROUBLE 2020 [#bd9469dc]
**TCP port 10024 on 127.0.0.1 [Address already in use] [#...
2020年正月休みにあれこれ ports を upgrade したら、それま...
以下をアップグレードした後かも知れない。
oniguruma-6.9.3 < needs updating (port has ...
python36-3.6.9_3 < needs updating (port has ...
と、同時に、以下の様なエラーも発生。
(!)Net::Server: 2020/01/07-15:57:40 Can't connect to TCP...
in file /usr/local/lib/perl5/site_perl/Net/Server/Proto/...
1基のamavisd-newだけではなく、複数のサーバ機で発生したの...
調べて見ると、実はamavisd-new は起動してるのに、amavis.pi...
**Clamav との連携について [#x63e4fca]
Clamav と併用して使用する場合、以前は amavisd-new のMake....
amavisd-new のユーザ・グループは、ports のオリジナル設定...
また、clamav の側はrootで動作させるため、
/usr/local/etc/clamd.conf の226行目をコメントアウト
#User clamav
User root
さらに、
/usr/local/etc/freshclam.conf は、
#DatabaseOwner clamav
DatabaseOwner root
とする事でこのamavisd-new と clamav とのDB連携エラーは回...
【参考サイト】
https://www.mk-mode.com/blog/2014/10/25/freebsd-10-0-inst...
# top -a
3778 vscan 1 20 0 81980K 76876K select 1 ...
3779 vscan 1 52 0 83444K 77208K select 0 ...
3780 vscan 1 52 0 83436K 77200K lockf 1 ...
Jan 10 08:39:23 blackcube amavis[3778]: Using primary in...
Jan 10 08:39:23 blackcube amavis[3778]: Found secondary ...
Jan 10 08:39:23 blackcube amavis[3778]: Deleting db file...
Jan 10 08:39:23 blackcube amavis[3778]: Creating db in /...
Jan 10 08:39:23 blackcube amavis[3778]: sd_notify (no so...
Jan 10 08:39:23 blackcube amavis[3778]: sd_notify (no so...
Jan 10 08:39:24 blackcube monit[659]: 'amavisd' started
Jan 10 08:39:54 blackcube monit[659]: 'amavisd' process ...
* amavisd-new usr:group clamav:clamav de run [#k95e14a7]
FreeBSD smb212 12.0-RELEASE-p12 FreeBSD 12.0-RELEASE-p12 ...
0)古いamavisd-new があれば、deinstall し、/var/amavis も...
1)/usr/ports/security/Makefile vscan ⇒ clamav
AMAVISUSER?= clamav
AMAVISGROUP?= clamav
2)古い/usr/local/etc/amavisd.conf を削除または改名
3)amavisd-new install
4)# /usr/local/etc/rc.d/amavisd reload
で、エラーがないようなら、
5) /usr/local/etc/rc.d/amavisd start
42204 clamav 1 20 0 161M 151M select 0 ...
42205 clamav 1 52 0 163M 151M select 0 ...
42206 clamav 1 52 0 163M 151M lockf 1 ...
* Permission denied [#o161ae41]
/usr/local/etc/rc.d/amavisd start
Starting amavisd.
PID file /var/amavis/amavisd.pid is inaccessible: Permis...
/usr/local/etc/rc.d/amavisd: WARNING: failed to start am...
portupgrade -rRf などをしたとき、clamd も強制upgrade さ...
/usr/local/etc/clamd.conf の200行目付近のこれが、User vsc...
# Run as another user (clamd must be started by root for...
# Default: don't drop privileges
#User clamav
#User vscan
User root
amavisd がプロセスファイルの書き込み権限が・・・というこ...
----
Total access &counter(total);:本日 &counter(today);:昨...
#counter([total|today|yesterday]);
終了行:
CONTENTS
#contents
----
Lastmodified &lastmod;
----
*Amavisd-new [#abd16bb9]
/etc/rc.conf での起動順
Starting clamav_clamd.
Starting clamav_freshclam.
Starting amavisd.
良く?w起こるエラー
Aug 8 00:19:31 macinename amavis[40589]: (!!)TROUBLE in...
Aug 8 00:19:31 macinename amavis[40589]: (!)_DIE: Suici...
Aug 8 00:19:31 macinename amavis[2504]: sd_notify (no s...
Aug 8 00:19:35 macinename postfix/error[40807]: 877053C...
Aug 8 00:19:35 macinename postfix/error[40810]: 8091B3C...
Aug 8 00:19:35 macinename postfix/error[40781]: 8BB7A3C...
Aug 8 00:19:35 macinename postfix/error[40780]: 8BAC03C...
Aug 8 00:19:35 macinename postfix/error[40782]: 8A9E23C...
----
*amavisd-new TROUBLE 20230804 [#k9c16353]
FreeBSD 13.1 を 13.2 へUpgradeした後辺りから、/var/log/ma...
Aug 7 02:33:08 guard amavis[63433]: (!!)TROUBLE in chil...
Aug 7 02:33:08 guard amavis[63434]: (!!)TROUBLE in chil...
Aug 7 02:33:08 guard amavis[63430]: (!)_DIE: Suicide in...
Aug 7 02:33:08 guard amavis[63433]: (!)_DIE: Suicide in...
Aug 7 02:33:08 guard amavis[63434]: (!)_DIE: Suicide in...
Aug 7 02:33:08 guard amavis[63431]: (!)_DIE: Suicide in...
Aug 7 02:33:08 guard amavis[63432]: (!)_DIE: Suicide in...
Aug 7 02:33:08 guard amavis[63435]: (!!)TROUBLE in chil...
Aug 7 02:33:08 guard amavis[63436]: (!!)TROUBLE in chil...
Aug 7 02:33:08 guard amavis[63435]: (!)_DIE: Suicide in...
Aug 7 02:33:08 guard amavis[63436]: (!)_DIE: Suicide in...
のようなエラーがでて、mailq が増加するトラブル。amavisd--...
**amavisd-new deinstall install again [#ma998c41]
966 11:11 cd /usr/ports/security/amavisd-new/
/usr/ports/security/amavisd-new/makefile の usr:group がv...
967 11:11 make deinstall
968 11:12 make install clean
***/usr/local/etc/amavisd.conf の確認 [#n756f2c6]
/usr/local/etc/amavisd.conf.sample を /usr/local/etc/ama...
23 $mydomain = ''; # a convenient default for other se...
384 ### http://www.clamav.net/
385 ['ClamAV-clamd',
386 \&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/cl...
387 qr/\bOK$/m, qr/\bFOUND$/m,
388 qr/^.*?: (?!Infected Archive)(.*) FOUND$/m ],
のコメントアウトを外す。
**clamav もついでに最新版へ [#qed5ba6f]
994 11:27 cd /usr/ports/security/clamav
995 11:27 make deinstall
996 11:27 make install clean
997 11:38 /usr/local/etc/rc.d/amavisd start
998 11:38 /usr/local/etc/rc.d/amavisd restart
/usr/local/etc/clamd.sample を /usr/local/etc/clamd.conf...
/usr/local/etc/clamd.conf の226行目をコメントアウト
#User clamav
User root
さらに、
/usr/local/etc/freshclam.conf は、
59 #DatabaseOwner clamav
DatabaseOwner root
----
*amavisd-new TROUBLE 2020 [#bd9469dc]
**TCP port 10024 on 127.0.0.1 [Address already in use] [#...
2020年正月休みにあれこれ ports を upgrade したら、それま...
以下をアップグレードした後かも知れない。
oniguruma-6.9.3 < needs updating (port has ...
python36-3.6.9_3 < needs updating (port has ...
と、同時に、以下の様なエラーも発生。
(!)Net::Server: 2020/01/07-15:57:40 Can't connect to TCP...
in file /usr/local/lib/perl5/site_perl/Net/Server/Proto/...
1基のamavisd-newだけではなく、複数のサーバ機で発生したの...
調べて見ると、実はamavisd-new は起動してるのに、amavis.pi...
**Clamav との連携について [#x63e4fca]
Clamav と併用して使用する場合、以前は amavisd-new のMake....
amavisd-new のユーザ・グループは、ports のオリジナル設定...
また、clamav の側はrootで動作させるため、
/usr/local/etc/clamd.conf の226行目をコメントアウト
#User clamav
User root
さらに、
/usr/local/etc/freshclam.conf は、
#DatabaseOwner clamav
DatabaseOwner root
とする事でこのamavisd-new と clamav とのDB連携エラーは回...
【参考サイト】
https://www.mk-mode.com/blog/2014/10/25/freebsd-10-0-inst...
# top -a
3778 vscan 1 20 0 81980K 76876K select 1 ...
3779 vscan 1 52 0 83444K 77208K select 0 ...
3780 vscan 1 52 0 83436K 77200K lockf 1 ...
Jan 10 08:39:23 blackcube amavis[3778]: Using primary in...
Jan 10 08:39:23 blackcube amavis[3778]: Found secondary ...
Jan 10 08:39:23 blackcube amavis[3778]: Deleting db file...
Jan 10 08:39:23 blackcube amavis[3778]: Creating db in /...
Jan 10 08:39:23 blackcube amavis[3778]: sd_notify (no so...
Jan 10 08:39:23 blackcube amavis[3778]: sd_notify (no so...
Jan 10 08:39:24 blackcube monit[659]: 'amavisd' started
Jan 10 08:39:54 blackcube monit[659]: 'amavisd' process ...
* amavisd-new usr:group clamav:clamav de run [#k95e14a7]
FreeBSD smb212 12.0-RELEASE-p12 FreeBSD 12.0-RELEASE-p12 ...
0)古いamavisd-new があれば、deinstall し、/var/amavis も...
1)/usr/ports/security/Makefile vscan ⇒ clamav
AMAVISUSER?= clamav
AMAVISGROUP?= clamav
2)古い/usr/local/etc/amavisd.conf を削除または改名
3)amavisd-new install
4)# /usr/local/etc/rc.d/amavisd reload
で、エラーがないようなら、
5) /usr/local/etc/rc.d/amavisd start
42204 clamav 1 20 0 161M 151M select 0 ...
42205 clamav 1 52 0 163M 151M select 0 ...
42206 clamav 1 52 0 163M 151M lockf 1 ...
* Permission denied [#o161ae41]
/usr/local/etc/rc.d/amavisd start
Starting amavisd.
PID file /var/amavis/amavisd.pid is inaccessible: Permis...
/usr/local/etc/rc.d/amavisd: WARNING: failed to start am...
portupgrade -rRf などをしたとき、clamd も強制upgrade さ...
/usr/local/etc/clamd.conf の200行目付近のこれが、User vsc...
# Run as another user (clamd must be started by root for...
# Default: don't drop privileges
#User clamav
#User vscan
User root
amavisd がプロセスファイルの書き込み権限が・・・というこ...
----
Total access &counter(total);:本日 &counter(today);:昨...
#counter([total|today|yesterday]);
ページ名: