Nie mogę uporać się z pewną kwestią. Mianowicie posiadam malutki serwer hostingowy z kilkoma domenami. Używam ISPConfig, a jako serwer wysyłki postfix.
Wszystkie maile wysyłane z jakiejkolwiek domeny na adresy gmail lądują w spamie.
Kilka faktów:
Kod: Zaznacz cały
Hostname: flyot.com (domena, która najbardziej mnie interesuje: coolschool.com.pl)
Adres IP: 195.191.180.155
DNS: dns1.zuostczew.pl i dns2.zuostczew.pl (to są moje serwery dns)
OS: Debian Jessie (Linux flyot 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u1 (2015-12-14) x86_64 GNU/Linux)
- DKIM - jest i raczej jest OK,
- Rekord SPF - jest i raczej jest OK (obecnie mam "-all", ale "~all" też nie działa)
- Rokordy PTR wskazują poprawnie (155.180.191.195.in-addr.arpa is an alias for rev155.zuostczew.pl. rev155.zuostczew.pl domain name pointer flyot.com)
- Postfix używa komunikacji poprzez protokół IPv4 (inet_protocols = ipv4)
- mxtoolbox.com zwraca błąd, którego nie do końca rozumiem: Reverse DNS is not a valid Hostname
- inne narzędzia pokazują, że jest wszystko dobrze
Mail wysłany z SquirrelMail:
Kod: Zaznacz cały
Received: from flyot[dot]com (coolschool[dot]com[dot]pl [195.191.180.155])
by ip-10-196-138-23 (Postfix) with ESMTPS id BD0DD44006E
for <nCe0dlLh3ZyTSs@dkimvalidator[dot]com>; Fri, 19 Feb 2016 09:23:27 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
by flyot.com (Postfix) with ESMTP id 390A8F00D99
for <nCe0dlLh3ZyTSs@dkimvalidator[dot]com>; Fri, 19 Feb 2016 10:23:26 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=
coolschool[dot]com.pl; h=content-transfer-encoding:content-type
:content-type:mime-version:user-agent:from:from:subject:subject
:date:date:message-id; s=default; t=1455873806; x=1457688207;
bh=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN/XKdLCPjaYaY=; b=PlN4Mk3rWx+T
xSvgBYv6l8p0tT7jvXf9xuKhhgP7sKTIHdn8r6b3k4CY3Mh+EJ2Z7wmUYo4ppn0U
NFeze7r1BXwMtW4qYduMnQdsXCCxquwOCHHLr+wzXirHONlUoBw8Z00vXtXxVv9N
WFfGep/nitPubnfcCVv5zPsLyG+7Fgk=
X-Virus-Scanned: Debian amavisd-new at flyot[dot]com
Received: from flyot[dot]com ([127.0.0.1])
by localhost (flyot[dot]com [127.0.0.1]) (amavisd-new, port 10026)
with ESMTP id X7QB8tu8fMHo for <nCe0dlLh3ZyTSs@dkimvalidator[dot]com>;
Fri, 19 Feb 2016 10:23:26 +0100 (CET)
Received: from flyot[dot]com (localhost [127.0.0.1])
by flyot.com (Postfix) with ESMTP id 01BFCF00026
for <nCe0dlLh3ZyTSs@dkimvalidator[dot]com>; Fri, 19 Feb 2016 10:23:25 +0100 (CET)
Received: from XXX.XXX.XXX.XXX
(SquirrelMail authenticated user mail@coolschool[dot]com[dot]pl)
by flyot.com with HTTP;
Fri, 19 Feb 2016 10:23:26 +0100
Message-ID: <6999af915e4baecd5fef78857d319ae4.squirrel@flyot[dot]com>
Date: Fri, 19 Feb 2016 10:23:26 +0100
Subject:
From: mail@coolschool[dot]com[dot]pl
To: nCe0dlLh3ZyTSs@dkimvalidator[dot]com
User-Agent: SquirrelMail/1.4.23 [SVN]
MIME-Version: 1.0
Content-Type: text/plain;charset=iso-8859-1
X-Priority: 3 (Normal)
Importance: Normal
Content-Transfer-Encoding: quoted-printable
Tutaj plik postfixa - main.cf
Kod: Zaznacz cały
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
readme_directory = /usr/share/doc/postfix
# TLS parameters
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
##############
#smtpd_helo_required = yes
#smtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_helo_hostname, reject_invalid_helo_hostname
#strict_rfc821_envelopes = yes
#smtpd_data_restrictions = reject_unauth_pipelining
#smtpd_delay_reject = yes
#############
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = flyot.com
alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
alias_database = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
myorigin = /etc/mailname
mydestination = flyot.com, localhost, localhost.localdomain
relayhost =
mynetworks = 127.0.0.0/8 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
html_directory = /usr/share/doc/postfix/html
virtual_alias_domains =
virtual_alias_maps = hash:/var/lib/mailman/data/virtual-mailman, proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, proxy:mysql:/etc/postfix/mysql-virtual_email2email.cf
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 = ipv4
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, check_recipient_access mysql:/etc/postfix/mysql-virtual_recipient.cf
## smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, check_recipient_access mysql:/etc/postfix/mysql-virtual_recipient.cf, reject_unknown_recipient_domain
smtpd_tls_security_level = may
transport_maps = hash:/var/lib/mailman/data/transport-mailman
#, proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
# transport_maps = hash:/etc/postfix/transport
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
#smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/mysql-virtual_sender.cf
smtpd_sender_restrictions = check_sender_access regexp:/etc/postfix/tag_as_originating.re permit_mynetworks permit_sasl_authenticated check_sender_access mysql:/etc/postfix/mysql-virtual_sender.cf, regexp:/etc/postfix/tag_as_foreign.re
smtpd_client_restrictions = check_client_access mysql:/etc/postfix/mysql-virtual_client.cf
## smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unknown_client_hostname, check_client_access mysql:/etc/postfix/mysql-virtual_client.cf
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
smtp_tls_security_level = may
smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3
smtpd_tls_protocols = !SSLv2,!SSLv3
smtp_tls_protocols = !SSLv2,!SSLv3
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
message_size_limit = 0
Kod: Zaznacz cały
Delivered-To: [EMAIL="coolschoolseo@gmail.com"]coolschoolseo@gmail.com[/EMAIL]
Received: by 10.27.157.206 with SMTP id g197csp1353602wle;
Fri, 19 Feb 2016 09:56:35 -0800 (PST)
X-Received: by 10.112.202.104 with SMTP id kh8mr1531183lbc.8.1455904595310;
Fri, 19 Feb 2016 09:56:35 -0800 (PST)
Return-Path: <[EMAIL="biuro@coolschool.com.pl"]biuro@coolschool.com.pl[/EMAIL]>
Received: from flyot.com (flyot.com. [195.191.180.155])
by mx.google.com with ESMTPS id 203si7301153lfe.79.2016.02.19.09.56.34
for <[EMAIL="coolschoolseo@gmail.com"]coolschoolseo@gmail.com[/EMAIL]>
(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Fri, 19 Feb 2016 09:56:35 -0800 (PST)
Received-SPF: pass (google.com: domain of [EMAIL="biuro@coolschool.com.pl"]biuro@coolschool.com.pl[/EMAIL] designates 195.191.180.155 as permitted sender) client-ip=195.191.180.155;
Authentication-Results: mx.google.com;
spf=pass (google.com: domain of [EMAIL="biuro@coolschool.com.pl"]biuro@coolschool.com.pl[/EMAIL] designates 195.191.180.155 as permitted sender) smtp.mailfrom=[EMAIL="biuro@coolschool.com.pl"]biuro@coolschool.com.pl[/EMAIL];
dkim=pass header.i=@coolschool.com.pl;
dmarc=pass (p=QUARANTINE dis=NONE) header.from=coolschool.com.pl
Received: from localhost (localhost [127.0.0.1])
by flyot.com (Postfix) with ESMTP id 27028F00D99
for <[EMAIL="coolschoolseo@gmail.com"]coolschoolseo@gmail.com[/EMAIL]>; Fri, 19 Feb 2016 18:56:34 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=
coolschool.com.pl; h=content-transfer-encoding:content-type
:content-type:mime-version:user-agent:from:from:subject:subject
:date:date:message-id; s=default; t=1455904593; x=1457718994;
bh=TB2vN6fDtp/zH9gUQiRIPgkZVQgM0Xn02dvnbDLvyfc=; b=dXYnNbNW4Pog
7n4UvDPMn7TaA01HqjZYd44shgaNU5/Ujw3S/98fNWM/W3BXSa1/ePN61VzmJt46
DjmiDXf9a6i6+wMcgmxYXhEsx7fP9Y4PuVQxR06DMdAMPsnXpAIa7yVRxyyeTAME
a5G6vuPXUMuCbrFqrPFVS7z+b6XT3eU=
X-Virus-Scanned: Debian amavisd-new at flyot.com
Received: from flyot.com ([127.0.0.1])
by localhost (flyot.com [127.0.0.1]) (amavisd-new, port 10026)
with ESMTP id rpDPjQ0ZFLRz for <[EMAIL="coolschoolseo@gmail.com"]coolschoolseo@gmail.com[/EMAIL]>;
Fri, 19 Feb 2016 18:56:33 +0100 (CET)
Received: from flyot.com (localhost [127.0.0.1])
by flyot.com (Postfix) with ESMTP id E233AF00026
for <[EMAIL="coolschoolseo@gmail.com"]coolschoolseo@gmail.com[/EMAIL]>; Fri, 19 Feb 2016 18:56:33 +0100 (CET)
Received: from 192.168.18.101
(SquirrelMail authenticated user [EMAIL="biuro@coolschool.com.pl"]biuro@coolschool.com.pl[/EMAIL])
by flyot.com with HTTP;
Fri, 19 Feb 2016 18:56:33 +0100
Message-ID: <[EMAIL="1557ab90f736682360d6853025914607.squirrel@flyot.com"]1557ab90f736682360d6853025914607.squirrel@flyot.com[/EMAIL]>
Date: Fri, 19 Feb 2016 18:56:33 +0100
Subject:
From: [EMAIL="biuro@coolschool.com.pl"]biuro@coolschool.com.pl[/EMAIL]
To: [EMAIL="coolschoolseo@gmail.com"]coolschoolseo@gmail.com[/EMAIL]
User-Agent: SquirrelMail/1.4.23 [SVN]
MIME-Version: 1.0
Content-Type: text/plain;charset=iso-8859-1
X-Priority: 3 (Normal)
Importance: Normal
Content-Transfer-Encoding: quoted-printable
Wierzę w to, że jakaś dobra dusza przyjrzy się temu bałaganowi.
