Доброго времени суток форумчане. Помогите решить проблемы с рассылкой спама.
Имеется почтовый сервер на базе Postfix+Dovecot+Mysql
Конфиг main.cf:alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
alias_database = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, proxy:mysql:/etc/postfix/mysql-virtual_email2email.cf, hash:/var/lib/mailman/data/virtual-mailman
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_base = /var/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
inet_protocols = all
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = check_recipient_access mysql:/etc/postfix/mysql-virtual_recipient.cf,reject_invalid_hostname,reject_unknown_recipient_domain,reject_unauth_pipelining,permit_mynetworks, permit_sasl_authenticated,reject_unauth_destination,reject_non_fqdn_recipient,reject_unknown_recipient_domain,reject_unauth_destination,reject_unlisted_recipient,reject_rbl_client dsn.rfc-ignorant.org,reject_rbl_client sbl-xbl.spamhaus.org,reject_rbl_client cbl.abuseat.org,reject_rbl_client combined.rbl.msrbl.net,reject_rbl_client rabl.nuclearelephant.com,reject_rbl_client b.barracudacentral.org
smtpd_use_tls = yes
smtpd_tls_security_level = may
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
smtpd_tls_always_issue_session_ids = yes
smtpd_tls_ask_ccert = no
smtpd_tls_auth_only = no
smtpd_tls_CAfile = /etc/postfix/intermidiate.crt
smtpd_tls_ciphers = export
smtpd_tls_dh1024_param_file = /etc/postfix/dh_1024.pem
smtpd_tls_dh512_param_file = /etc/postfix/dh_512.pem
smtpd_tls_exclude_ciphers = aNULL
smtpd_tls_exclude_ciphers = MD5, DES
smtpd_tls_exclude_ciphers = DES+MD5
smtpd_tls_exclude_ciphers = kEDH+aRSA
smtpd_tls_fingerprint_digest = sha1
smtpd_tls_loglevel = 1
smtpd_tls_mandatory_ciphers = medium
smtpd_tls_mandatory_protocols = TLSv1, SSLv3
smtpd_tls_protocols = TLSv1, SSLv3
smtpd_tls_received_header = yes
smtpd_tls_req_ccert = no
smtpd_tls_security_level = may
smtpd_tls_session_cache_database = btree:/var/lib/postfix/smtpd_scache
smtpd_tls_session_cache_timeout = 600s
smtp_use_tls = yes
smtp_tls_key_file = /etc/postfix/smtpd.key
smtp_tls_cert_file = /etc/postfix/smtpd.cert
smtp_tls_CAfile = /etc/postfix/intermidiate.crt
smtp_tls_ciphers = export
smtp_tls_enforce_peername = no
smtp_tls_exclude_ciphers = aNULL
smtp_tls_exclude_ciphers = MD5, DES
smtp_tls_exclude_ciphers = DES+MD5
smtp_tls_exclude_ciphers = kEDH+aRSA
smtp_tls_fingerprint_digest = sha1
smtp_tls_loglevel = 1
smtp_tls_mandatory_ciphers = medium
smtp_tls_mandatory_protocols = TLSv1, SSLv3
smtp_tls_note_starttls_offer = yes
smtp_tls_protocols = TLSv1, SSLv3
smtp_tls_security_level = may
smtp_tls_session_cache_database = btree:/var/lib/postfix/smtp_scache
smtp_tls_session_cache_timeout = 600s
smtp_tls_policy_maps = hash:/etc/postfix/tls_policy
tls_random_source = dev:/dev/urandom
transport_maps = hash:/var/lib/mailman/data/transport-mailman, proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
relay_domains = mysql:/etc/postfix/mysql-virtual_relaydomains.cf
relay_recipient_maps = mysql:/etc/postfix/mysql-virtual_relayrecipientmaps.cf
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/mysql-virtual_sender.cf reject_unlisted_sender,permit_sasl_authenticated,permit_mynetworks,reject_sender_login_mismatch,reject_non_fqdn_sender,reject_unknown_sender_domain
#smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/mysql-virtual_sender.cf
smtpd_client_restrictions = check_client_access mysql:/etc/postfix/mysql-virtual_client.cf
smtpd_helo_restrictions = permit_mynetworks,permit_sasl_authenticated,check_sender_access mysql:/etc/postfix/mysql-virtual_sender.cf,reject_invalid_helo_hostname,reject_non_fqdn_helo_hostname,reject_unknown_helo_hostname permit
smtpd_client_message_rate_limit = 100
maildrop_destination_concurrency_limit = 1
maildrop_destination_recipient_limit = 1
virtual_transport = dovecot
header_checks = regexp:/etc/postfix/header_checks
mime_header_checks = regexp:/etc/postfix/mime_header_checks
nested_header_checks = regexp:/etc/postfix/nested_header_checks
body_checks = regexp:/etc/postfix/body_checks
owner_request_special = no
myhostname = mail.my-companies.ru
mydestination = mail.my-companies.ru, localhost, localhost.localdomain
mynetworks=127.0.0.0/8, 192.168.1.0/24, 192.168.3.0/24, 192.168.2.0/24, 192.168.168.0/24
dovecot_destination_recipient_limit = 1
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
content_filter = amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings
relayhost =
mailbox_size_limit = 0
message_size_limit = 0
smtp_generic_maps = hash:/etc/postfix/generic
smtpd_delay_reject = yes
disable_vrfy_command = yes
readme_directory = /usr/share/doc/postfix
html_directory = /usr/share/doc/postfix/html
После попадания в спам листы, в логах нашел вот такие строки:
cat /var/log/mail.log | grep 60FB61800D0C
Feb 12 14:08:07 ubuntu postfix/smtpd[23907]: 60FB61800D0C: client=localhost[127.0.0.1]
Feb 12 14:08:07 ubuntu postfix/cleanup[31389]: 60FB61800D0C: message-id=<20150212110807.60FB61800D0C@mail.my-companies.ru>
Feb 12 14:08:07 ubuntu postfix/qmgr[31472]: 60FB61800D0C: from=<ugursahinturk@poyrazagency.net>, size=3586, nrcpt=13 (queue active)
Feb 12 14:08:07 ubuntu amavis[32224]: (32224-10) Passed CLEAN, [41.138.187.54] [41.138.187.54] <ugursahinturk@poyrazagency.net> -> <cornille.karen@caramail.com>,<corinne.romano@equipement.gouv.fr>,<cornellus@free.fr>,<corleone_300@hotmail.com>,<corlay.jp@humana.univ-nantes.fr>,<corman@netmarine.net>,<cormier@sb-roscoff.fr>,<corman@voila.fr>,<corinne.pacitto@wanadoo.fr>,<cormorane@wanadoo.fr>,<cornecg@wanadoo.fr>,<corinnefeuvrier@yahoo.fr>,<cornu_e@yahoo.fr>, mail_id: s+0lPynh9oiq, Hits: 17.853, size: 3132, queued_as: 60FB61800D0C, 174 ms
Feb 12 14:08:07 ubuntu postfix/smtp[32054]: 6DED01800CAC: to=<cornille.karen@caramail.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=6.2, delays=6.1/0/0/0.18, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 60FB61800D0C)
Feb 12 14:08:07 ubuntu postfix/smtp[32054]: 6DED01800CAC: to=<corinne.romano@equipement.gouv.fr>, relay=127.0.0.1[127.0.0.1]:10024, delay=6.2, delays=6.1/0/0/0.18, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 60FB61800D0C)
Feb 12 14:08:07 ubuntu postfix/smtp[32054]: 6DED01800CAC: to=<cornellus@free.fr>, relay=127.0.0.1[127.0.0.1]:10024, delay=6.2, delays=6.1/0/0/0.18, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 60FB61800D0C)
Feb 12 14:08:07 ubuntu postfix/smtp[32054]: 6DED01800CAC: to=<corleone_300@hotmail.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=6.2, delays=6.1/0/0/0.18, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 60FB61800D0C)
Feb 12 14:08:07 ubuntu postfix/smtp[32054]: 6DED01800CAC: to=<corlay.jp@humana.univ-nantes.fr>, relay=127.0.0.1[127.0.0.1]:10024, delay=6.2, delays=6.1/0/0/0.18, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 60FB61800D0C)
Feb 12 14:08:07 ubuntu postfix/smtp[32054]: 6DED01800CAC: to=<corman@netmarine.net>, relay=127.0.0.1[127.0.0.1]:10024, delay=6.2, delays=6.1/0/0/0.18, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 60FB61800D0C)
Feb 12 14:08:07 ubuntu postfix/smtp[32054]: 6DED01800CAC: to=<cormier@sb-roscoff.fr>, relay=127.0.0.1[127.0.0.1]:10024, delay=6.2, delays=6.1/0/0/0.18, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 60FB61800D0C)
Feb 12 14:08:07 ubuntu postfix/smtp[32054]: 6DED01800CAC: to=<corman@voila.fr>, relay=127.0.0.1[127.0.0.1]:10024, delay=6.2, delays=6.1/0/0/0.18, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 60FB61800D0C)
Feb 12 14:08:07 ubuntu postfix/smtp[32054]: 6DED01800CAC: to=<corinne.pacitto@wanadoo.fr>, relay=127.0.0.1[127.0.0.1]:10024, delay=6.2, delays=6.1/0/0/0.18, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 60FB61800D0C)
Feb 12 14:08:07 ubuntu postfix/smtp[32054]: 6DED01800CAC: to=<cormorane@wanadoo.fr>, relay=127.0.0.1[127.0.0.1]:10024, delay=6.2, delays=6.1/0/0/0.18, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 60FB61800D0C)
Feb 12 14:08:07 ubuntu postfix/smtp[32054]: 6DED01800CAC: to=<cornecg@wanadoo.fr>, relay=127.0.0.1[127.0.0.1]:10024, delay=6.2, delays=6.1/0/0/0.18, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 60FB61800D0C)
Feb 12 14:08:07 ubuntu postfix/smtp[32054]: 6DED01800CAC: to=<corinnefeuvrier@yahoo.fr>, relay=127.0.0.1[127.0.0.1]:10024, delay=6.2, delays=6.1/0/0/0.18, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 60FB61800D0C)
Feb 12 14:08:07 ubuntu postfix/smtp[32054]: 6DED01800CAC: to=<cornu_e@yahoo.fr>, relay=127.0.0.1[127.0.0.1]:10024, delay=6.2, delays=6.1/0/0/0.18, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 60FB61800D0C)
При этом система проходит все тесты на Open Relay.