2014-03-25 2 views
2

Amavis에서 두 번째 콘텐츠 필터를 사용할 수 있습니까?Amavis로 두 번째 콘텐츠 필터 구성

표준 스팸 메일 + Amavis Ubuntu 설정이 있지만 스팸 필터링 후 메시지 본문을 암호화하기 위해 두 번째 메일을 실행하고 싶습니다.이 비트는 정상적으로 작동하지만 설정 방법은 없습니다. Postfix가 여러 콘텐츠 필터를 사용하거나 Amavis가 두 번째 필터를 통해 밀어 넣을 수있는 방법.

emailcrypt unix - n n - - pipe flags= user=cryptuser argv=/usr/local/bin/emailcrypt.py

여기에 다시 반사 :

두 번째 필터는 파이프를 사용

그래서 127.0.0.1:10099 inet n - n - 10 smtpd -o content_filter= -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks -o smtpd_helo_restrictions= -o smtpd_client_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o mynetworks=127.0.0.0/8 -o smtpd_authorized_xforward_hosts=127.0.0.0/8

가, 내가 바보 또는 뭔가 것으로 짐작를 .. :)

누군가 나를 도울 수 있다면 고맙겠습니다! :)

답변

2

당신은 당신의 main.cf 파일의 첫 번째 content_filter (즉 amavis)

#/etc/postfix/main.cf 
#... 
content_filter = smtp:[localhost]:10097 
#... 

또는 master.cf 파일을 지정할 수 있습니다.

#/etc/postfix/master.cf 
smtp  inet n  -  n  -  -  smtpd 
    -o content_filter=smtp:[localhost]:10097 

amavis에서 보낸 이메일을 수신하려면 smtpd 서버를 다시 정의해야합니다. 이제 두 번째 필터가 다시 10099에 듣고 smtpd 서버에 메일을 삽입 할 수

#/etc/postfix/master.cf 
127.0.0.1:10098  inet n - n - 10  smtpd 
     -o content_filter=emailcrypt:dummy 
# other options if any 

처럼이 두 번째 content_filter를 지정합니다. 희망이 도움이됩니다.

+0

환상적! 치료를 했어. 매우 감사합니다! :) – Andy