메뉴 건너뛰기

리눅스 관련 모음

본문시작

조회 수 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
번호 분류 제목 글쓴이 날짜 조회 수
150 cpanm 햇빛소년 2011.04.04 47599
149 crontab 설정 햇빛소년 2011.05.12 45047
» 설치관련 DCC+razor2+pyzor how to ---[ spamassassin -D <test 2>debug ] file 햇빛소년 2012.05.31 31628
147 DCC관련 명령어 모음 햇빛소년 2012.06.02 43924
146 DCC로 안티스팸 기능 확장하기 햇빛소년 2011.03.18 51328
145 설치관련 dnssec-keygen 사용법 및 구축과 검증 햇빛소년 2013.06.07 24036
144 에러해결 dovecot 설치 후 squirrelmail 가동하면 /.imap/INBOX, group=12(mail)) failed: Operation not permitted 햇빛소년 2013.06.30 19280
143 에러해결 eaccelerator.c:66:23: error: php_logos.h: 그런 파일이나 디렉터리가 없습니다. 햇빛소년 2014.02.28 9609
142 에러해결 error on line at column Input is not proper UTF-8, indicate encoding ! 햇빛소년 2013.12.26 4628
141 에러해결 error: wrong mysql library version or lib not found. 햇빛소년 2014.03.16 16582
140 설치관련 euckr <-> utf8 일괄 변환...php, txt, html, htm, js, css 등등 file 햇빛소년 2014.03.09 4009
139 설정 및 사용법 firefox 재 시작시 특정 사이트만 자동로그인이 풀릴 때 file 햇빛소년 2016.07.11 1284
138 에러해결 HTML <meta> Tag 햇빛소년 2013.12.26 11317
137 설치관련 html 문자 및 문단과련 기본테그 file 햇빛소년 2014.04.14 5092
136 설치관련 html코딩 dtd선언 - <!DOCTYPE HTML PUBLIC 햇빛소년 2014.07.21 4729
135 설치관련 HTML태그+++JavaScript +객체 +정리 [펌] file 햇빛소년 2014.04.14 42425
134 에러해결 httpd 서비스는 chkconfig 를 지원하지 않습니다. 햇빛소년 2014.10.25 4662
133 httpd 스크립트 - /etc/rc.d 햇빛소년 2011.05.01 51811
132 설치관련 httpd-2.4.4 httpd.conf 설정 옵션 변경. 햇빛소년 2013.06.13 14020
131 에러해결 httpd: undefined symbol: apr_procattr_perms_set_register 에러 해결 햇빛소년 2018.12.04 3255
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 Next
/ 10