Home > Java > javaTutorial > body text

Detailed explanation of the instance where GITLAB email does not send Tencent enterprise email

零下一度
Release: 2017-06-28 10:01:08
Original
4523 people have browsed it

Don’t talk nonsense, just give me the idea

After gitlab is redeployed, new users will not send activation emails. The configuration is as follows:

gitlab_rails['smtp_enable']=truegitlab_rails['smtp_address']="smtp.exmail.qq.com"gitlab_rails['smtp_port']=465gitlab_rails['smtp_user_name']="name@domain.com"gitlab_rails['smtp_password']="pass"gitlab_rails['smtp_domain']="doamin.com"gitlab_rails['smtp_authentication']="login"gitlab_rails['smtp_enable_starttls_auto']=truegitlab_rails['smtp_tls']=truegitlab_rails['gitlab_email_from']="name@domain.com"
Copy after login

First confirm that the configuration is OK. Secondly, check the log production.log

log and no error message is given. Then just activate the ultimate move

sudo gitlab-rails console production
Copy after login

irb(main):001:0> ActionMailer::Base.delivery_method=> :smtp
Copy after login

Make sure the method is smtp. If it is wrong, the configuration is written wrong or it is not loaded correctly

irb(main):002:0> ActionMailer::Base.smtp_settings=> {:address=>"localhost", :port=>25, :domain=>"localhost.localdomain", :user_name=>nil, :password=>nil, :authentication=>nil, :enable_starttls_auto=>true}`
Copy after login

Make sure the configuration is what we want

irb(main):003:0> Notify.test_email('youremail@email.com', 'Hello World', 'This is a test message').deliver_now
Copy after login

Send a test email, detailed errors will be printed

TX returns a 553 error and a link address

At this time the truth is revealed, using a third-party client to log in to the QQ mailbox requires an authorization code instead of the password

The above is the detailed content of Detailed explanation of the instance where GITLAB email does not send Tencent enterprise email. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template