amavisd

Q: 运行amavis后,自行退出
Q: 观察ANTI-VIRUS,ANTI-SPAM模块是否起作用
Q: 请除隔离区/var/virusmails/目录下的广告,病毒

Q: 运行amavis后,自行退出

A: 首选进入调式模式

[root@linuxas3 amavis]# /usr/local/sbin/amavisd debug

Sep 23 20:58:41 mail.gomi.com.hk amavisd[27570]: TROUBLE in pre_loop_hook: QUARANTINEDIR directory not writable: /var/virusmails at /usr/local/sbin/amavisd line 4982.
Suicide () TROUBLE in pre_loop_hook: QUARANTINEDIR directory not writable: /var/virusmails at /usr/local/sbin/amavisd line 4982.			
解决方法
# chown amavis.amavis -R /var/virusmails
			

Q: 观察ANTI-VIRUS,ANTI-SPAM模块是否起作用

A: /usr/local/sbin/amavisd debug

Sep 23 21:04:31 mail.gomi.com.hk amavisd[27706]: ANTI-VIRUS code        loaded
Sep 23 21:04:31 mail.gomi.com.hk amavisd[27706]: ANTI-SPAM  code        loaded			
			

Q: 请除隔离区/var/virusmails/目录下的广告,病毒

A: 如果企业用户建议保留隔离区

[root@linuxas3 root]# cd /var/virusmails/
[root@linuxas3 virusmails]# ls /var/virusmails/
spam-1fbb3cddcd1cde126b1668da560a05b5-20040923-211022-27759-06.gz  virus-20040923-211000-27762-03
spam-5f21afef0a043b2d002ed8b21508fa58-20040923-210631-27708-01.gz  virus-20040923-211002-27760-03
spam-627a5ca8148d257386a537a83d3d7a5c-20040923-211018-27762-07.gz  virus-20040923-211003-27762-04
spam-627a5ca8148d257386a537a83d3d7a5c-20040923-211036-27759-08.gz  virus-20040923-211007-27762-05
spam-b4c3b16cbe76ce206584785701c7bc9a-20040923-211057-27760-10.gz  virus-20040923-211012-27760-04
spam-b4c3b16cbe76ce206584785701c7bc9a-20040923-211059-27761-06.gz  virus-20040923-211012-27762-06
virus-20040923-210339-27580-01                                     virus-20040923-211013-27759-05
virus-20040923-210632-27710-01                                     virus-20040923-211028-27761-03
virus-20040923-210635-27709-01                                     virus-20040923-211031-27762-08
virus-20040923-210946-27760-01                                     virus-20040923-211043-27760-08
virus-20040923-210947-27762-02                                     virus-20040923-211045-27761-04
virus-20040923-210951-27761-01                                     virus-20040923-211054-27759-10
virus-20040923-210953-27759-03                                     virus-20040923-211200-27762-10
virus-20040923-211000-27759-04      

[root@linuxas3 virusmails]# ls |xargs -i rm -rf {}
[root@linuxas3 virusmails]# ls
[root@linuxas3 virusmails]#