Net :: SMTPAuthenticationError: 534-5.7.14, несмотря на менее безопасный доступ к приложению - PullRequest
0 голосов
/ 12 декабря 2018

рб` конфигурация.Я использую Gitlab на 127.0.0.1:81 и хочу отправить тестовое электронное письмо

gitlab_rails['smtp_enable'] = true
 gitlab_rails['smtp_address'] = "smtp.gmail.com"
 gitlab_rails['smtp_port'] = 587
 gitlab_rails['smtp_user_name'] = "rafay.mir07@gmail.com"
 gitlab_rails['smtp_password'] = "****"
 gitlab_rails['smtp_domain'] = "localhost:81"
 gitlab_rails['smtp_authentication'] = "plain"
 gitlab_rails['smtp_tls'] = false
 gitlab_rails['gitlab_email_from'] = 'rafay.mir07@gmail.com'

Проблема:
Несмотря на то, что я предоставил доступ к менее защищенным приложениям в своем Gmailаккаунт, но я продолжаю получать эту ошибку

Net::SMTPAuthenticationError: 534-5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbsP

    from /opt/gitlab/embedded/lib/ruby/2.4.0/net/smtp.rb:981:in `check_auth_response'
    from /opt/gitlab/embedded/lib/ruby/2.4.0/net/smtp.rb:736:in `auth_plain'
    from /opt/gitlab/embedded/lib/ruby/2.4.0/net/smtp.rb:728:in `authenticate'
    from /opt/gitlab/embedded/lib/ruby/2.4.0/net/smtp.rb:565:in `do_start'
    from /opt/gitlab/embedded/lib/ruby/2.4.0/net/smtp.rb:518:in `start'
    from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/mail-2.7.0/lib/mail/network/delivery_methods/smtp.rb:109:in `start_smtp_session'
    from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/mail-2.7.0/lib/mail/network/delivery_methods/smtp.rb:100:in `deliver!'
    from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/mail-2.7.0/lib/mail/message.rb:2160:in `do_delivery'
    from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/mail-2.7.0/lib/mail/message.rb:260:in `block in deliver'
    from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/actionmailer-4.2.10/lib/action_mailer/base.rb:543:in `block in deliver_mail'
    from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/activesupport-4.2.10/lib/active_support/notifications.rb:164:in `block in instrument'
    from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
    from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/activesupport-4.2.10/lib/active_support/notifications.rb:164:in `instrument'
    from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/actionmailer-4.2.10/lib/action_mailer/base.rb:541:in `deliver_mail'
    from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/mail-2.7.0/lib/mail/message.rb:260:in `deliver'
    from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/actionmailer-4.2.10/lib/action_mailer/message_delivery.rb:85:in `deliver_now'
    from (irb):2
    from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/railties-4.2.10/lib/rails/commands/console.rb:110:in `start'
    from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/railties-4.2.10/lib/rails/commands/console.rb:9:in `start'
    from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/railties-4.2.10/lib/rails/commands/commands_tasks.rb:68:in `console'
    from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/railties-4.2.10/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
    from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/railties-4.2.10/lib/rails/commands.rb:17:in `<top (required)>'
    from bin/rails:14:in `require'
    from bin/rails:14:in `<main>'

Вопрос:
Правильно ли настроена конфигурация моего почтового сервера?или я делаю что-то еще не так?

...