Y
Y
Yuri Pikhtarev2014-12-22 18:43:13
Zend Framework
Yuri Pikhtarev, 2014-12-22 18:43:13

SMTP Mail.ru error: sender address must match authenticated user?

Good day.
I ran into a problem, the solution of which, due to the level of support of Mail.ru (for housewives, even on business mail), cannot be found. I decided to switch from mail for a domain from Yandex to a similar solution from Mail.ru (maybe I already regretted it, that's not the point): https://biz.mail.ru/ - connected the domain, configured MX, DKIM, SFP and all the necessary records. Using the built-in features - mail is sent and received normally. Similar work is observed with mail clients, Thunderbird, for example.
But there is a forum on XenForo, which is based on the Zend Framework of the first version - and when you try to send letters from it through the Mail.ru SMTP server, the sender address must match authenticated user error occurs. The search for this error led to the conclusion that the problem is in the mismatch of the sender's address in the From field and the user under which authentication was performed. But this statement is not true in my case, the postal address under which the login takes place and the address that is specified as the sender are the same. I checked several times, even made an output of the object processed by ZF when sending mail, to make sure myself again:

object(Zend_Mail_Transport_Smtp)#18 (15)
{
  ["EOL"]=> string(1) " " 
  ["_host":protected]=> string(12) "smtp.mail.ru" 
  ["_port":protected]=> int(465) 
  ["_name":protected]=> string(9) "localhost" 
  ["_auth":protected]=> string(5) "login" 
  ["_config":protected]=> array(5) {
    ["port"]=> int(465) 
    ["auth"]=> string(5) "login" 
    ["username"]=> string(20) "[email protected]ysite.me" 
    ["password"]=> string(10) "my_password" 
    ["ssl"]=> string(3) "ssl" 
  }
  ["_connection":protected]=> NULL 
  ["body"]=> string(4) "test" 
  ["boundary"]=> string(0) "" 
  ["header"]=> string(398) "Subject: test To: Exile From: [email protected] X-To-Validate: [email protected] Return-Path: [email protected] Message-Id: <[email protected]> Date: Mon, 22 Dec 2014 11:13:30 +0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline MIME-Version: 1.0 " 
  ["_headers":protected]=> array(11) {
    ["Subject"]=> array(1) {
      [0]=> string(4) "test" 
    } ["To"]=> array(2) {
      [0]=> string(20) "Exile " ["append"]=> bool(true) 
    } ["From"]=> array(2) {
      [0]=> string(20) "[email protected]" ["append"]=> bool(true) 
    } ["X-To-Validate"]=> array(1) {
      [0]=> string(21) "[email protected]" 
    } ["Return-Path"]=> array(1) {
      [0]=> string(43) "[email protected]" 
    } ["Message-Id"]=> array(1) {
      [0]=> string(57) "<[email protected]>" 
    } ["Date"]=> array(1) {
      [0]=> string(31) "Mon, 22 Dec 2014 11:13:30 +0000" 
    } ["Content-Type"]=> array(1) {
      [0]=> string(25) "text/plain; charset=utf-8" 
    } ["Content-Transfer-Encoding"]=> array(1) {
      [0]=> string(16) "quoted-printable" 
    } ["Content-Disposition"]=> array(1) {
      [0]=> string(6) "inline" 
    } ["MIME-Version"]=> array(1) {
      [0]=> string(3) "1.0" 
    } 
  } 
  ["_isMultipart":protected]=> bool(false) 
  ["_mail":protected]=> object(Zend_Mail)#31 (18)
  {
    ["_charset":protected]=> string(5) "utf-8" ["_headers":protected]=> array(7) {
      ["Subject"]=> array(1) {
        [0]=> string(4) "test"
      } ["To"]=> array(2) {
        [0]=> string(20) "Exile " ["append"]=> bool(true)
      } ["From"]=> array(2) {
        [0]=> string(20) "[email protected]" ["append"]=> bool(true)
      } ["X-To-Validate"]=> array(1) {
        [0]=> string(21) "[email protected]"
      } ["Return-Path"]=> array(1) {
        [0]=> string(43) "[email protected]"
      } ["Message-Id"]=> array(1) {
        [0]=> string(57) "<[email protected]>"
      } ["Date"]=> array(1) {
        [0]=> string(31) "Mon, 22 Dec 2014 11:13:30 +0000"
      } 
    }
    ["_headerEncoding":protected]=> string(16) "quoted-printable"
    ["_from":protected]=> string(20) "[email protected]"
    ["_to":protected]=> array(1) {
      [0]=> string(12) "[email protected]"
    }
    ["_recipients":protected]=> array(1) {
      ["[email protected]"]=> int(1)
    }
    ["_replyTo":protected]=> NULL
    ["_returnPath":protected]=> string(43) "[email protected]"
    ["_subject":protected]=> string(4) "test"
    ["_date":protected]=> string(31) "Mon, 22 Dec 2014 11:13:30 +0000"
    ["_messageId":protected]=> string(55) "[email protected]"
    ["_bodyText":protected]=> object(Zend_Mime_Part)#100 (12) 
    {
      ["type"]=> string(10) "text/plain"
      ["encoding"]=> string(16) "quoted-printable"
      ["id"]=> NULL
      ["disposition"]=> string(6) "inline"
      ["filename"]=> NULL
      ["description"]=> NULL
      ["charset"]=> string(5) "utf-8"
      ["boundary"]=> NULL
      ["location"]=> NULL
      ["language"]=> NULL
      ["_content":protected]=> string(4) "test"
      ["_isStream":protected]=> bool(false)
    }
    ["_bodyHtml":protected]=> bool(false) 
    ["_mimeBoundary":protected]=> NULL 
    ["_type":protected]=> NULL 
    ["hasAttachments"]=> bool(false) 
    ["_parts":protected]=> array(0) { } 
    ["_mime":protected]=> object(Zend_Mime)#99 (1) {
      ["_boundary":protected]=> string(34) "=_5b01bf4803855ae6afff387de0825383" 
    } 
  }
  ["_parts":protected]=> array(1)
  {
    [0]=> object(Zend_Mime_Part)#100 (12)
    {
      ["type"]=> string(10) "text/plain"
      ["encoding"]=> string(16) "quoted-printable"
      ["id"]=> NULL
      ["disposition"]=> string(6) "inline"
      ["filename"]=> NULL
      ["description"]=> NULL
      ["charset"]=> string(5) "utf-8"
      ["boundary"]=> NULL
      ["location"]=> NULL
      ["language"]=> NULL
      ["_content":protected]=> string(4) "test"
      ["_isStream":protected]=> bool(false)
    }
  }
  ["recipients"]=> string(12) "[email protected]"
}

In general, as you can see, there are no problems with the settings, the addresses are completely the same. But the Mail.ru server, as usual, repeats about the mismatch of the address. Has anyone experienced similar behavior? Is this some kind of ZF incompatibility or a Mail.ru problem? Judging by the issuance of Google - only the Russian-speaking population faces such a problem (surprisingly).
Thank you.
PS. When receiving letters from the same forum based on XenForo, there are no problems - letters from the IMAP server are received completely normally, without problems. But with the sending just some kind of trouble.
P.P.S. If there are representatives of Mail.ru here: ticket #2014122121005029

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DanXai, 2014-12-23
@DanXai

I had such an error in Thunderbird with a plugin for sending letters via smtp.mail.ru, I could not overcome it.

J
JumpManiac, 2022-03-11
@JumpManiac

Tunderbird gave me the error "sender address must match authenticated user" and persistently offered to check the recipient's mail name.
As a result, everything was decided by checking the name of the sender's mail in the server settings for sending letters.
It turned out that I tried to answer from one mail, and the name indicated another (second authorized).
It was decided by prescribing the name of the mail from which I constantly send letters.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question