메뉴 건너뛰기

리눅스 관련 모음

본문시작

조회 수 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..

   

  1. mysql 컴파일 설치 후 해야 할 일...

    Date2014.02.23 Category설치관련 By햇빛소년 Views4
    Read More
  2. 리눅스 콘솔에서 SSH 원격 서버 접속하기

    Date2014.02.23 Category설치관련 By햇빛소년 Views3531
    Read More
  3. 원격 서버에 파일 올리거나 가져오기...

    Date2014.02.22 Category설치관련 By햇빛소년 Views9161
    Read More
  4. What do these PHP mbstring settings do?

    Date2013.08.25 Category설치관련 By햇빛소년 Views11074
    Read More
  5. 메일계정 관련 명령어...

    Date2013.08.19 Category설치관련 By햇빛소년 Views0
    Read More
  6. procmail 소스설치

    Date2013.07.24 Category설치관련 By햇빛소년 Views14495
    Read More
  7. The ClamAV Plugin --> clamav.cf , clamav.pm

    Date2013.07.07 Category설치관련 By햇빛소년 Views14881
    Read More
  8. clamav.cf --> Clamav Multiple Score

    Date2013.07.07 Category설치관련 By햇빛소년 Views18141
    Read More
  9. [bind] DNSSEC 구축방법

    Date2013.07.07 Category설치관련 By햇빛소년 Views16474
    Read More
  10. [Linux Password 정책변경] linux 비밀번호 md5에서 SHA-512로 변경하기

    Date2013.06.30 Category설치관련 By햇빛소년 Views0
    Read More
  11. ssh 포트변경 및 iptables 수정

    Date2013.06.25 Category설치관련 By햇빛소년 Views15240
    Read More
  12. rewrite 도메인 포워딩

    Date2013.06.22 Category설치관련 By햇빛소년 Views15155
    Read More
  13. /etc/init.d/proftpd 실행 스크립트

    Date2013.06.19 Category설치관련 By햇빛소년 Views0
    Read More
  14. httpd-2.4.4 httpd.conf 설정 옵션 변경.

    Date2013.06.13 Category설치관련 By햇빛소년 Views14021
    Read More
  15. dnssec-keygen 사용법 및 구축과 검증

    Date2013.06.07 Category설치관련 By햇빛소년 Views24036
    Read More
  16. rndc-confgen — rndc key generation tool

    Date2013.05.31 Category설치관련 By햇빛소년 Views17372
    Read More
  17. Luajit 다운로드 및 설치

    Date2013.01.19 Category설치관련 By햇빛소년 Views22842
    Read More
  18. .htaccess 이용 스팸 IP 차단

    Date2013.01.17 Category설치관련 By햇빛소년 Views25201
    Read More
  19. PHP CodeSniffer 코딩검사

    Date2013.01.14 Category설치관련 By햇빛소년 Views0
    Read More
  20. DCC+razor2+pyzor how to ---[ spamassassin -D <test 2>debug ]

    Date2012.05.31 Category설치관련 By햇빛소년 Views31628
    Read More
Board Pagination Prev 1 2 3 Next
/ 3