Page 1 of 1

Помогите разобраться с отправкой почты ПЛЗ.

Posted: Fri Jan 17, 2014 2:24 pm
by toxarbk
На mail.ru и yandex.ru сообщения доходят. С гуглом проблемы.

Заголовок полученного письма на mail.ru:
  • From MAILER-DAEMON Fri Jan 17 17:46:51 2014
    Return-path: <>
    Authentication-Results: mxs.mail.ru; spf=none () smtp.mailfrom=[email protected] smtp.helo=CentOS-64-64-minimal;
    dkim=invalid reason=pubkey_unavailable header.i=realbiker.ru
    Received-SPF: none
    Received: from [144.76.174.115] (port=34983 helo=CentOS-64-64-minimal)
    by mx9.mail.ru with esmtp (envelope-from <[email protected]>)
    id 1W49l3-0004PX-Kf
    for [email protected]; Fri, 17 Jan 2014 17:46:51 +0400
    X-Mru-BL: 0:0:0
    X-Mru-PTR: enduroforkseals.ru
    X-Mru-NR: 1
    X-Mru-OF: Linux (Ethernet or modem)
    X-Mru-RC: DE
    DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=realbiker.ru; s=mail;
    h=Message-ID:From:Date:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:To; bh=LhlH7eTauOqLfSQuBwdpotDHf+cICxzkpnfq2sdAm5w=;
    b=U0RGMm9jyZy869SpVDWHEuFclyMjXo89yWkilXgNm6yi6L5mtY/kFh5XBB+sNJDrPglQry1h5iC3gICsSmJYtQ==;
    Received: from admin by CentOS-64-64-minimal with local (Exim 4.72)
    (envelope-from <[email protected]>)
    id 1W49l2-0001hw-A0
    for [email protected]; Fri, 17 Jan 2014 17:46:48 +0400
    To: [email protected]
    Subject: test =?UTF-8?Q?=D0=BE=D1=82=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8?=
    X-PHP-Originating-Script: 0:rcmail.php
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8;
    format=flowed
    Content-Transfer-Encoding: 8bit
    Date: Fri, 17 Jan 2014 17:46:48 +0400
    From: [email protected]
    Message-ID: <[email protected]>
    X-Sender: [email protected]
    User-Agent: Roundcube Webmail/0.9.4
    X-Spam: Not detected
    X-Mras: Ok
    X-DMARC-Policy: no
    X-Mru-Authenticated-Sender: [email protected]
Заголовок на Яндексе:
  • Received: from mxfront4m.mail.yandex.net ([127.0.0.1])
    by mxfront4m.mail.yandex.net with LMTP id h3FGJ9mu
    for <[email protected]>; Fri, 17 Jan 2014 17:43:03 +0400
    Received: from enduroforkseals.ru (enduroforkseals.ru [144.76.174.115])
    by mxfront4m.mail.yandex.net (nwsmtp/Yandex) with ESMTPS id Agq5zpzBeM-h1v09CvJ;
    Fri, 17 Jan 2014 17:43:01 +0400
    (using TLSv1 with cipher AES256-SHA (256/256 bits))
    (Client certificate not present)
    X-Yandex-Front: mxfront4m.mail.yandex.net
    X-Yandex-TimeMark: 1389966181
    X-Yandex-Uniq: bc7d6bae-2867-4195-a781-7a39059a27bf
    Authentication-Results: mxfront4m.mail.yandex.net; spf=pass (mxfront4m.mail.yandex.net: domain of realbiker.ru designates 144.76.174.115 as permitted sender) smtp.mail=[email protected]; dkim=neutral [email protected]
    X-Yandex-Spam: 1
    DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=realbiker.ru; s=mail;
    h=Message-ID:From:Date:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:To; bh=LhlH7eTauOqLfSQuBwdpotDHf+cICxzkpnfq2sdAm5w=;
    b=eFB8gdu/vPptljKeLz5EC35YdFVH3T8Yc5ZjMEnaQrC058wOtl/KU4XLTUOv07IUhFWxv39TxG+sQxN/djSOEA==;
    Received: from admin by CentOS-64-64-minimal with local (Exim 4.72)
    (envelope-from <[email protected]>)
    id 1W49hM-0001aL-I0
    for [email protected]; Fri, 17 Jan 2014 17:43:00 +0400
    To: [email protected]
    Subject: test =?UTF-8?Q?=D0=BE=D1=82=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8?=
    X-PHP-Originating-Script: 0:rcmail.php
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8;
    format=flowed
    Content-Transfer-Encoding: 8bit
    Date: Fri, 17 Jan 2014 17:43:00 +0400
    From: [email protected]
    Message-ID: <[email protected]>
    X-Sender: [email protected]
    User-Agent: Roundcube Webmail/0.9.4
    Return-Path: [email protected]
    X-Yandex-Forward: 753f0d006c97d6c7fe16835b8435ea50

    без текста
Для начала, непонятно, почему roundcube не выдал return-path при отправке на mail.ru?

А второй вопрос, почему не распознается SPF запись, хотя в домене она есть:

@ IN TXT v=spf1 a mx ip4:144.76.174.115 mx:mail.realbiker.ru -all
Однако, эта запись не распознается системами проверки, например http://www.kitterman.com/spf/validate.html?
сообщает:
  • SPF record lookup and validation for: realbiker.ru

    SPF records are primarily published in DNS as TXT records.

    The TXT records found for your domain are:
    v=spf1amxip4:144.76.174.115ptr:enduroforkseals.rumx:mail.realbiker.ru~all

    SPF records should also be published in DNS as type SPF records.
    No type SPF records found.

    Checking to see if there is a valid SPF record.

    No valid SPF record found of either type TXT or type SPF.
Куда подевались все пробелы - непонятно..

http://mxtoolbox.com/ также пропотерял пробелы:
  • Type Domain Name TTL Record
    TXT realbiker.ru 24 hrs v=spf1amxip4:144.76.174.115mx:mail.realbiker.ru-all
    Test Result
    TXT Record A Valid TXT Record was not found More Info
    SPF Record A Valid SPF Record was not found More Info
При этом служебные сообщения от системы очень даже на gmail приходят:
  • Delivered-To: [email protected]
    Received: by 10.114.23.34 with SMTP id j2csp16047ldf;
    Fri, 17 Jan 2014 03:18:02 -0800 (PST)
    X-Received: by 10.194.250.34 with SMTP id yz2mr821152wjc.18.1389957482188;
    Fri, 17 Jan 2014 03:18:02 -0800 (PST)
    Return-Path: <root@centos-64-64-minimal>
    Received: from CentOS-64-64-minimal (enduroforkseals.ru. [2a01:4f8:200:5272::2])
    by mx.google.com with ESMTPS id c8si1145085wix.37.2014.01.17.03.18.01
    for <[email protected]>
    (version=TLSv1 cipher=RC4-SHA bits=128/128);
    Fri, 17 Jan 2014 03:18:02 -0800 (PST)
    Received-SPF: neutral (google.com: 2a01:4f8:200:5272::2 is neither permitted nor denied by best guess record for domain of root@centos-64-64-minimal) client-ip=2a01:4f8:200:5272::2;
    Authentication-Results: mx.google.com;
    spf=neutral (google.com: 2a01:4f8:200:5272::2 is neither permitted nor denied by best guess record for domain of root@centos-64-64-minimal) smtp.mail=root@centos-64-64-minimal
    Received: from -deleted- by CentOS-64-64-minimal with local (Exim 4.72)
    (envelope-from <root@CentOS-64-64-minimal>)
    id 1W47R3-00040S-Ki
    for [email protected]; Fri, 17 Jan 2014 15:18:01 +0400
    Date: Fri, 17 Jan 2014 15:18:01 +0400
    Message-Id: <E1W47R3-00040S-Ki@CentOS-64-64-minimal>
    From: root@CentOS-64-64-minimal (Cron Daemon)
    To: [email protected]
    Subject: Cron <mymail@CentOS-64-64-minimal> perl /home/-deleted-/web/realbiker.ru/cgi-bin/photo/writebest.pl
    Content-Type: text/plain; charset=UTF-8
    Auto-Submitted: auto-generated
    X-Cron-Env: <MAILTO=[email protected]>
    X-Cron-Env: <SHELL=/bin/sh>
    X-Cron-Env: <HOME=/home/-deleted->
    X-Cron-Env: <PATH=/usr/bin:/bin>
    X-Cron-Env: <LOGNAME=-deleted->
    X-Cron-Env: <USER=-deleted->
Голову сломал. =(

Re: Помогите разобраться с отправкой почты ПЛЗ.

Posted: Tue Sep 19, 2017 4:48 pm
by ahouse
dkim=invalid reason=pubkey_unavailable

Re: Помогите разобраться с отправкой почты ПЛЗ.

Posted: Fri Sep 22, 2017 6:49 pm
by upxbotx
toxarbk wrote:На mail.ru и yandex.ru сообщения доходят. С гуглом проблемы.

Заголовок полученного письма на mail.ru:
  • From MAILER-DAEMON Fri Jan 17 17:46:51 2014
    Return-path: <>
    Authentication-Results: mxs.mail.ru; spf=none () smtp.mailfrom=[email protected] smtp.helo=CentOS-64-64-minimal;
    dkim=invalid reason=pubkey_unavailable header.i=realbiker.ru
    Received-SPF: none
    Received: from [144.76.174.115] (port=34983 helo=CentOS-64-64-minimal)
    by mx9.mail.ru with esmtp (envelope-from <[email protected]>)
    id 1W49l3-0004PX-Kf
    for [email protected]; Fri, 17 Jan 2014 17:46:51 +0400
    X-Mru-BL: 0:0:0
    X-Mru-PTR: enduroforkseals.ru
    X-Mru-NR: 1
    X-Mru-OF: Linux (Ethernet or modem)
    X-Mru-RC: DE
    DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=realbiker.ru; s=mail;
    h=Message-ID:From:Date:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:To; bh=LhlH7eTauOqLfSQuBwdpotDHf+cICxzkpnfq2sdAm5w=;
    b=U0RGMm9jyZy869SpVDWHEuFclyMjXo89yWkilXgNm6yi6L5mtY/kFh5XBB+sNJDrPglQry1h5iC3gICsSmJYtQ==;
    Received: from admin by CentOS-64-64-minimal with local (Exim 4.72)
    (envelope-from <[email protected]>)
    id 1W49l2-0001hw-A0
    for [email protected]; Fri, 17 Jan 2014 17:46:48 +0400
    To: [email protected]
    Subject: test =?UTF-8?Q?=D0=BE=D1=82=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8?=
    X-PHP-Originating-Script: 0:rcmail.php
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8;
    format=flowed
    Content-Transfer-Encoding: 8bit
    Date: Fri, 17 Jan 2014 17:46:48 +0400
    From: [email protected]
    Message-ID: <[email protected]>
    X-Sender: [email protected]
    User-Agent: Roundcube Webmail/0.9.4
    X-Spam: Not detected
    X-Mras: Ok
    X-DMARC-Policy: no
    X-Mru-Authenticated-Sender: [email protected]
Заголовок на Яндексе:
  • Received: from mxfront4m.mail.yandex.net ([127.0.0.1])
    by mxfront4m.mail.yandex.net with LMTP id h3FGJ9mu
    for <[email protected]>; Fri, 17 Jan 2014 17:43:03 +0400
    Received: from enduroforkseals.ru (enduroforkseals.ru [144.76.174.115])
    by mxfront4m.mail.yandex.net (nwsmtp/Yandex) with ESMTPS id Agq5zpzBeM-h1v09CvJ;
    Fri, 17 Jan 2014 17:43:01 +0400
    (using TLSv1 with cipher AES256-SHA (256/256 bits))
    (Client certificate not present)
    X-Yandex-Front: mxfront4m.mail.yandex.net
    X-Yandex-TimeMark: 1389966181
    X-Yandex-Uniq: bc7d6bae-2867-4195-a781-7a39059a27bf
    Authentication-Results: mxfront4m.mail.yandex.net; spf=pass (mxfront4m.mail.yandex.net: domain of realbiker.ru designates 144.76.174.115 as permitted sender) smtp.mail=[email protected]; dkim=neutral [email protected]
    X-Yandex-Spam: 1
    DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=realbiker.ru; s=mail;
    h=Message-ID:From:Date:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:To; bh=LhlH7eTauOqLfSQuBwdpotDHf+cICxzkpnfq2sdAm5w=;
    b=eFB8gdu/vPptljKeLz5EC35YdFVH3T8Yc5ZjMEnaQrC058wOtl/KU4XLTUOv07IUhFWxv39TxG+sQxN/djSOEA==;
    Received: from admin by CentOS-64-64-minimal with local (Exim 4.72)
    (envelope-from <[email protected]>)
    id 1W49hM-0001aL-I0
    for [email protected]; Fri, 17 Jan 2014 17:43:00 +0400
    To: [email protected]
    Subject: test =?UTF-8?Q?=D0=BE=D1=82=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8?=
    X-PHP-Originating-Script: 0:rcmail.php
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8;
    format=flowed
    Content-Transfer-Encoding: 8bit
    Date: Fri, 17 Jan 2014 17:43:00 +0400
    From: [email protected]
    Message-ID: <[email protected]>
    X-Sender: [email protected]
    User-Agent: Roundcube Webmail/0.9.4
    Return-Path: [email protected]
    X-Yandex-Forward: 753f0d006c97d6c7fe16835b8435ea50

    без текста
Для начала, непонятно, почему roundcube не выдал return-path при отправке на mail.ru?

А второй вопрос, почему не распознается SPF запись, хотя в домене она есть:

@ IN TXT v=spf1 a mx ip4:144.76.174.115 mx:mail.realbiker.ru -all
Однако, эта запись не распознается системами проверки, например http://www.kitterman.com/spf/validate.html?
сообщает:
  • SPF record lookup and validation for: realbiker.ru

    SPF records are primarily published in DNS as TXT records.

    The TXT records found for your domain are:
    v=spf1amxip4:144.76.174.115ptr:enduroforkseals.rumx:mail.realbiker.ru~all

    SPF records should also be published in DNS as type SPF records.
    No type SPF records found.

    Checking to see if there is a valid SPF record.

    No valid SPF record found of either type TXT or type SPF.
Куда подевались все пробелы - непонятно..

http://mxtoolbox.com/ также пропотерял пробелы:
  • Type Domain Name TTL Record
    TXT realbiker.ru 24 hrs v=spf1amxip4:144.76.174.115mx:mail.realbiker.ru-all
    Test Result
    TXT Record A Valid TXT Record was not found More Info
    SPF Record A Valid SPF Record was not found More Info
При этом служебные сообщения от системы очень даже на gmail приходят:
  • Delivered-To: [email protected]
    Received: by 10.114.23.34 with SMTP id j2csp16047ldf;
    Fri, 17 Jan 2014 03:18:02 -0800 (PST)
    X-Received: by 10.194.250.34 with SMTP id yz2mr821152wjc.18.1389957482188;
    Fri, 17 Jan 2014 03:18:02 -0800 (PST)
    Return-Path: <root@centos-64-64-minimal>
    Received: from CentOS-64-64-minimal (enduroforkseals.ru. [2a01:4f8:200:5272::2])
    by mx.google.com with ESMTPS id c8si1145085wix.37.2014.01.17.03.18.01
    for <[email protected]>
    (version=TLSv1 cipher=RC4-SHA bits=128/128);
    Fri, 17 Jan 2014 03:18:02 -0800 (PST)
    Received-SPF: neutral (google.com: 2a01:4f8:200:5272::2 is neither permitted nor denied by best guess record for domain of root@centos-64-64-minimal) client-ip=2a01:4f8:200:5272::2;
    Authentication-Results: mx.google.com;
    spf=neutral (google.com: 2a01:4f8:200:5272::2 is neither permitted nor denied by best guess record for domain of root@centos-64-64-minimal) smtp.mail=root@centos-64-64-minimal
    Received: from -deleted- by CentOS-64-64-minimal with local (Exim 4.72)
    (envelope-from <root@CentOS-64-64-minimal>)
    id 1W47R3-00040S-Ki
    for [email protected]; Fri, 17 Jan 2014 15:18:01 +0400
    Date: Fri, 17 Jan 2014 15:18:01 +0400
    Message-Id: <E1W47R3-00040S-Ki@CentOS-64-64-minimal>
    From: root@CentOS-64-64-minimal (Cron Daemon)
    To: [email protected]
    Subject: Cron <mymail@CentOS-64-64-minimal> perl /home/-deleted-/web/realbiker.ru/cgi-bin/photo/writebest.pl
    Content-Type: text/plain; charset=UTF-8
    Auto-Submitted: auto-generated
    X-Cron-Env: <MAILTO=[email protected]>
    X-Cron-Env: <SHELL=/bin/sh>
    X-Cron-Env: <HOME=/home/-deleted->
    X-Cron-Env: <PATH=/usr/bin:/bin>
    X-Cron-Env: <LOGNAME=-deleted->
    X-Cron-Env: <USER=-deleted->
Голову сломал. =(

как написали уже DKIM   запись пропишите в DNS
для теста настроек используйте сервис mxtoolbox.com