A
A
artyak11212019-01-02 19:37:09
Ruby on Rails
artyak1121, 2019-01-02 19:37:09

Error sending a message via Yandex.Mail?

When I try to request password recovery by mail, I get the following error in the logs:

Net::SMTPFatalError (553 5.7.1 Sender address rejected: not owned by auth user.

config production.rb :
config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }
    config.action_mailer.delivery_method = :smtp
    config.action_mailer.smtp_settings = {
  tls: true,
        address: 'smtp.yandex.ru',
        port: 587,
        domain: 'yandex.ru',
        authentication: 'plain',
        user_name: '[email protected]',
        password: 'password',
        enable_starttls_auto: true
    }

In application_mailer.rb :
class ApplicationMailer < ActionMailer::Base
  default from: '[email protected]'
  layout 'mailer'
end

What could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
grinat, 2019-01-02
@grinat

Well it's written right there. The from field is not like in Yandex mail, so it doesn’t let you send, it’s not enough, maybe you are a spammer.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question