[Lug-bg] Postfix и SPAM
- Subject: [Lug-bg] Postfix и SPAM
- From: Атанас Мавров / Atanas Mavrov <bugar@xxxxxxxxxxxx>
- Date: Mon, 22 Jan 2007 11:10:37 +0200
Здравейте,
искам да ви помоля за съвет къде бъркам при конфигурацията на postfix, тъй
като спама които получавам е меко казано доста, а в директорията в която
трябва да се съхранява намерения спам няма почти нищо. И така да уточня само
каква е системата - Debian testing, инсталирани са postfix, amavis-new,
spamassassin, razor, spambayes, clamav. Postfix е настроен с виртуални
пощенски кутии, ако има някакво значение де. Ето какви са настройките на
postfix (взети са от тук
http://linux-bg.org/cgi-bin/y/index.pl?page=article&id=advices&key=388152596
с много благодарности на Никола Антонов):
main.cf
strict_8bitmime = no
strict_8bitmime_body = no
strict_mime_encoding_domain = yes
strict_7bit_header = no
smtpd_etrn_restriction = reject
allow_untrusted_routing = no
smtpd_soft_error_limit = 10
smtpd_hard_error_limit = 20
smtpd_error_sleep_time = 1s
smtpd_delay_reject = yes
disable_dns_lookups = no
smtpd_helo_required = yes
strict_rfc821_envelopes = yes
disable_vrfy_command = yes
smtp_always_send_ehlo = yes
smtpd_delay_reject = yes
smtpd_helo_required = yes
smtpd_recipient_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
permit_tls_clientcerts,
reject_non_fqdn_recipient,
reject_unauth_destination,
reject_invalid_hostname,
reject_unauth_pipelining,
reject_non_fqdn_sender,
reject_unknown_sender_domain,
reject_non_fqdn_recipient,
reject_unknown_hostname,
reject_unknown_recipient_domain,
reject_rbl_client bl.spamcop.net,
reject_rbl_client relays.ordb.org,
reject_rbl_client sbl-xbl.spamhaus.org,
reject_rbl_client list.dsbl.org,
reject_rbl_client dnsbl.njabl.org,
reject_rbl_client dnsbl.ahbl.org,
reject_rbl_client dnsbl.sorbs.net,
reject_rhsbl_client blackhole.securitysage.com,
reject_rhsbl_sender blackhole.securitysage.com,
reject_rhsbl_client rhsbl.ahbl.org,
reject_rhsbl_sender rhsbl.ahbl.org,
reject_rhsbl_client rhsbl.sorbs.net,
reject_rhsbl_sender rhsbl.sorbs.net,
reject_rhsbl_client block.rhs.mailpolice.com,
reject_rhsbl_sender block.rhs.mailpolice.com,
reject_rhsbl_client dynamic.rhs.mailpolice.com,
reject_rhsbl_sender dynamic.rhs.mailpolice.com,
reject_rhsbl_client bogusmx.rfc-ignorant.org,
reject_rhsbl_sender bogusmx.rfc-ignorant.org,
reject_rhsbl_client dsn.rfc-ignorant.org,
reject_rhsbl_sender dsn.rfc-ignorant.org,
permit
smtpd_helo_restrictions =
reject_invalid_hostname
reject_non_fqdn_hostname
check_helo_access hash:/etc/postfix/helo_access
smtpd_sender_restrictions = reject_unknown_sender_domain,
permit_sasl_authenticated,
reject_rhsbl_sender dsn.rfc-ignorant.org
master.cf
smtp-amavis unix - - n - 2 lmtp
-o lmtp_data_done_timeout=1200
-o disable_dns_lookups=yes
-o lmtp_send_xforward_command=yes
127.0.0.1:10026 inet n - n - 16 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_style=host
-o smtpd_authorized_xforward_hosts=127.0.0.0/8
Съответно в amavis-new е направено следното:
@bypass_virus_checks_acl = qw( . );
# @bypass_spam_checks_acl = qw( . );
$forward_method = 'smtp:127.0.0.1:10025';
$notify_method = $forward_method;
и в clamav:
OutAddress: 10026
Listen: 127.0.0.1:10025
Не знам къде точно бъркам, но явно нещо не съм настроил както трябва. Освен
това предполагам, че когато искам да "обучавам" spamassassin трябва да съм
като потребител "amavis" или бъркам? И последен въпрос - spamassassin може ли
да си взема база с данни за спама, освен това което аз му подавам като данни.
Благодаря много!
_______________________________________________
Lug-bg mailing list
Lug-bg@xxxxxxxxxxxxxxxxxx
http://linux-bulgaria.org/mailman/listinfo/lug-bg
|