Вроде с горем пополам настроил, но все-таки валится.
Хотел показать свои конфиги, вдруг, где-то не так у меня что-то, подскажите, не сочтите за труд. Премного благодарен.
main.cf
# Global Postfix configuration file. This file lists only a small subset
# of all parameters. For the syntax, and for a complete parameter list,
# see the postconf(5) manual page. For a commented and more complete
# version of this file see /etc/postfix/main.cf.dist
mynetworks = localhost, $myhostname, $mydomain, $config_directory/mynetworks
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_use_tls = no
smtpd_tls_key_file = /var/lib/ssl/private/postfix.key
smtpd_tls_cert_file = /var/lib/ssl/certs/postfix.cert
smtpd_helo_required = no
smtpd_helo_restrictions = check_recipient_access cdb:/etc/postfix/whitelist, permit_mynetworks, permit_sasl_authenticated, check_helo_access cdb:/etc/postfix/helo_access, reject_non_fqdn_hostname, reject_invalid_hostname, permit
smtpd_client_restrictions = check_recipient_access cdb:/etc/postfix/whitelist, permit_mynetworks, permit_sasl_authenticated, check_client_access cdb:/etc/postfix/client_access, reject_rbl_client xbl.spamhaus.org, permit
smtpd_sender_restrictions = check_recipient_access cdb:/etc/postfix/whitelist, permit_mynetworks, permit_sasl_authenticated, check_sender_access cdb:/etc/postfix/sender_access, reject_non_fqdn_sender, reject_unknown_sender_domain, permit
smtpd_recipient_restrictions = check_recipient_access cdb:/etc/postfix/recipient_access, permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_recipient, reject_unknown_recipient_domain, reject_invalid_hostname,reject_unauth_destination, reject_rbl_client sbl.spamhaus.org, reject_rbl_client zen.spamhaus.org, reject_rbl_client dnsbl.ahbl.org, permit
virtual_alias_maps = ldap:/etc/postfix/ldap-aliases.cf, ldap:/etc/postfix/ldap-users.cf
local_recipient_maps = proxy:unix:passwd.byname $alias_maps ldap:/etc/postfix/ldap-users.cf
mailbox_unpriv_delivery = no
relayhost =
mailbox_size_limit = 0
message_size_limit = 20971520
smtpd_sasl_security_options = noanonymous
В папке spamassasin есть такой файлик local.cf
В нем я, если не ошибаюсь, только подкручивал циферку, которая определяет насколько критично относиться к письму.
Вот он:
# These values can be overridden by editing ~/.spamassassin/user_prefs.cf
# (see spamassassin(1) for details)
# How many hits before a message is considered spam.
required_hits 4
# Text to prepend to subject of suspected spam
rewrite_header Subject *SPAM*
# Encapsulate spam in an attachment (safe) or not
report_safe 1
# Disable AWL by default
use_auto_whitelist 0
# Enable the Bayes system
use_bayes 1
bayes_path /var/spool/spamassassin/bayes
bayes_file_mode 0775
# Enable Bayes auto-learning
bayes_auto_learn 1
# Enable or disable network checks
skip_rbl_checks 0
# Uncomment when you load correspondent plugins
use_razor2 1
use_dcc 1
use_pyzor 1
# Mail using locales used in these country codes will not be marked
# as being possibly spam in a foreign language.
ok_locales all
# Terse report template mainly for using by exim+exiscan in
# "Always put X-Spam-Report header in the message" mode. Default
# report template claims that email containing such report is
# spam. Such claim is wrong when we add report to all emails.
clear_report_template
report Content analysis details on host _HOSTNAME_: _HITS_ points, _REQD_ required
report _SUMMARY_
Может, я что-то где-то не доделал? Вроде ведь пользуюсь и абазами антиспамовыми и циферка уже аж 4 required_hits, а все-равно лезет.
Я понимаю что антиспам штука тонкая, но подозреваю что у меня он толком ваще не работает, возможно, я что-то забыл прописать где-то.
Старался конфиги особо не трогать, ибо нуб.
Если что-то не показал, вы скажите, я покажу.
Помогите, пожалуйста, разобраться