splitbrain / dokuwiki-plugin-smtp

Send DokuWiki mails via a configured SMTP server
https://www.dokuwiki.org/plugin:smtp
12 stars 14 forks source link

Sender address rejected #38

Closed tsunamaru closed 4 years ago

tsunamaru commented 4 years ago

Dokuwiki Release 2018-04-22c "Greebo" nginx 1.18.0 PHP 7.3.17

SMTP settings:

Loading...

There was an unexpected problem communicating with SMTP: Unexpected return code -
Expected: 250, Got: 553 | 553 5.7.1 Sender address rejected: not owned by auth user. 
Set: the server
Set: the auth
Set: a message will be sent
Connecting to smtp.yandex.ru at 465
Got: 220 vla1-ee05250d997a.qloud-c.yandex.net ESMTP (Want to use Yandex.Mail for your domain? Visit http://pdd.yandex.ru)
Sent: EHLO [redacted]
Got: 250-vla1-ee05250d997a.qloud-c.yandex.net
Got: 250-8BITMIME
Got: 250-PIPELINING
Got: 250-SIZE 42991616
Got: 250-AUTH LOGIN PLAIN XOAUTH2
Got: 250-DSN
Got: 250 ENHANCEDSTATUSCODES
Sent: AUTH LOGIN
Got: 334 [redacted]
Sent: [redacted]
Got: 334 [redacted]
Sent: [redacted]
Got: 235 2.7.0 Authentication successful.
Sent: MAIL FROM:<>
Got: 553 5.7.1 Sender address rejected: not owned by auth user.

What I'm doing wrong?

tsunamaru commented 4 years ago

I did a very dirty hack, edited this line directly on my server: $in = "MAIL FROM:<noreply@[redacted]>" . $this->CRLF;

And after this...

Loading...
splitbrain commented 4 years ago

read the documentation. you need to set the mailfrom config.