메뉴 건너뛰기

리눅스 관련 모음

본문시작

조회 수 31628 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부

국산 통나무 수공예 남원제기, 남원목기

자료가 도움이 되셨다면
혼수용품제수용품 필요시
남원제기 공식 홈페이지 http://남원제기.kr
남원목기 공식 홈페이지 http://otchil.kr
에서 구매 해 주세요
정성껏 모시겠습니다.
 

DCC+razor2+pyzor how to

Hi, a small how to for dcc+razor+pyzor for spamassassin

cd /usr/ports/mail/razor-agents
make install
cd /usr/ports/mail/pyzor
make install
cd /usr/ports/mail/dcc-dccd
make install

vi /etc/rc.conf
---------------------------------------------
dccifd_enable="YES"
dccifd_flags="-A -h /usr/local/dcc"
---------------------------------------------

cd /etc/mail/spamassassin
mkdir .razor
mkdir .pyzor

pyzor --homedir /etc/mail/spamassassin/.pyzor discover

razor-admin -create -home /etc/mail/spamassassin/.razor
razor-admin -discover -home /etc/mail/spamassassin/.razor
razor-admin -register -home /etc/mail/spamassassin/.razor

vi local.cf
---------------------------------------------------
use_dcc 1
dcc_timeout 10
dcc_home /usr/local/dcc
dcc_dccifd_path /usr/local/dcc/dccifd

use_razor2 1
razor_config /etc/mail/spamassassin/.razor/razor-agent.conf

use_pyzor 1
pyzor_options --homedir /etc/mail/spamassassin/.pyzor

add_header all Status _YESNO_, score=_SCORE_ required=_REQD_ tests=_TESTSSCORES(,)_ _DCCR_ _PYZOR_ _RBL_ autolearn=_AUTOLEARN_ version=_VERSION_
--------------------------------------------------

check that
loadplugin Mail::SpamAssassin::Plugin:CC
loadplugin Mail::SpamAssassin::Plugin::Pyzor
loadplugin Mail::SpamAssassin::Plugin::Razor2
are uncommented in the .pre files in /etc/mail/spamassassin/ directory

cd /usr/local/dcc
vi dcc_conf
check these values :

DCCD_ENABLE=on
DNSBL_ARGS="'-Bset:rej-msg=5.7.1 550 mail %s from %s rejected; see http://www.spamhaus.org/xbl/' -Bsbl-xbl.spamhaus.org,any"
DCCIFD_ENABLE=on
DCCM_ENABLE=off

vi /etc/crontab
------------------------------------------
25 1 * * * root /usr/local/dcc/libexec/cron-dccd 2>&1
------------------------------------------
/usr/local/etc/rc.d/dccifd start
ps auxw |grep dcc to see if deamon runs or we forgot something
/usr/local/etc/rc.d/sa-spamd restart
ps auxw |grep spam to see if deamon runs or we forgot something

tail -f /var/log/mailog to see the log of the spamd restart

log in your squirrel and check view full header of an email
copy all that you see

cd /tmp
vi test
paste and add at the bottom the word test or something

spamassassin -D <test 2>debug      -->  test파일의 내용을 체크하여 debug 파일에 기록한다.


스패머씬 설치 디렉토리 샘플 파일로 아래 명령을 사용하여 테스트 한다.

# spamassassin -t -D razor2 < /usr/share/doc/spamassassin-3.2.5/sample-spam.txt
# spamassassin -t -D pyzor < /usr/share/doc/spamassassin-3.2.5/sample-spam.txt



vi debug
search for
[57380] dbg: dcc: dccifd is available: /usr/local/dcc/dccifd
[57380] dbg: info: entering helper-app run mode
[57380] dbg: dcc: dccifd got response: X-DCC-CTc-dcc2-Metrics: server 1031; Body=0

[57380] dbg: razor2: part=0 engine=4 contested=0 confidence=0
[57380] dbg: razor2: results: spam? 0
[57380] dbg: razor2: results: engine 8, highest cf score: 0
[57380] dbg: razor2: results: engine 4, highest cf score: 0

[57380] dbg: util: executable for pyzor was found at /usr/local/bin/pyzor
[57380] dbg: pyzor: pyzor is available: /usr/local/bin/pyzor
[57380] dbg: info: entering helper-app run mode
[57380] dbg: pyzor: opening pipe: /usr/local/bin/pyzor --homedir /etc/mail/spamassassin/.pyzor check < /tmp/$

to see if working...
I hope that i didnt forget anything, if have probles post a reply..

   

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
50 설치관련 MySQL 데이타베이스 (DB) euckr => utf8 로 변환하여 이전 작업 하기 햇빛소년 2014.03.10 3845
49 설치관련 PHP53Compatibility - PHP_CodeSniffer를 기반으로 한 PHP5.3 으로 버전업시 발생되는 문제점 체크 햇빛소년 2014.03.11 4190
48 에러해결 PHP COMPILE - error: wrong mysql library version or lib not found. 햇빛소년 2014.03.15 4129
47 에러해결 error: wrong mysql library version or lib not found. 햇빛소년 2014.03.16 16582
46 설치관련 openssl 소스설치 햇빛소년 2014.03.16 4887
45 에러해결 sql_mode = NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION 햇빛소년 2014.03.22 4856
44 설치관련 HTML태그+++JavaScript +객체 +정리 [펌] file 햇빛소년 2014.04.14 42417
43 설치관련 html 문자 및 문단과련 기본테그 file 햇빛소년 2014.04.14 5092
42 설치관련 당신이 대통령이어선 안 되는 이유 -- 청와대에 올라 온 글 [펌] secret 햇빛소년 2014.04.28 1
41 에러해결 abrt 에러 메세지 /var/log/messages 햇빛소년 2014.05.16 8520
40 설치관련 html코딩 dtd선언 - <!DOCTYPE HTML PUBLIC 햇빛소년 2014.07.21 4729
39 설치관련 경영학과의 눈물… 예고된 취업 바늘구멍 햇빛소년 2014.10.12 4048
38 설치관련 처음 설치 해 보는 mariadb 소스설치 햇빛소년 2014.10.16 5627
37 에러해결 php 소스컴파일시 - /usr/bin/ld: cannot find -lltdl 에러 날 때. 햇빛소년 2014.10.17 3815
36 설치관련 centos 7 : iconv 컴파일 설치시 에러 해결 햇빛소년 2014.10.18 8175
35 에러해결 centos 7 : modsecurity 컴파일 설치시 iconv 찾지 못하는 에러... 햇빛소년 2014.10.18 3972
34 에러해결 php5:::configure: error: Cannot find libmysqlclient_r under /usr/local/mysql 햇빛소년 2014.10.24 7509
33 에러해결 httpd 서비스는 chkconfig 를 지원하지 않습니다. 햇빛소년 2014.10.25 4659
32 에러해결 CentOS 7 rc.local 자동실행 boot 햇빛소년 2014.10.26 23880
31 에러해결 CentOS-7 Network 설정에 관하여.... 햇빛소년 2014.10.27 7707
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 Next
/ 10