1
所有你必須首先要知道我總紅寶石小白:)混帳提交通知程序與Gmail
我在我的系統(Ubuntu的10.04)上安裝的git提交 - 通知(http://github.com/ilozka/git-commit-notifier),並遵循所有的安裝說明但每次我推到我的git倉庫時我收到此錯誤信息:
remote: Sending mail...
remote: /usr/lib/ruby/1.8/net/smtp.rb:944:in `check_auth_response': 530 5.7.0 Must issue a STARTTLS command first. n20sm12555550ibe.5 (Net::SMTPAuthenticationError)
remote: from /usr/lib/ruby/1.8/net/smtp.rb:735:in `auth_plain'
remote: from /usr/lib/ruby/1.8/net/smtp.rb:727:in `send'
remote: from /usr/lib/ruby/1.8/net/smtp.rb:727:in `authenticate'
remote: from /usr/lib/ruby/1.8/net/smtp.rb:568:in `do_start'
remote: from /usr/lib/ruby/1.8/net/smtp.rb:527:in `start'
remote: from /usr/lib/ruby/1.8/net/smtp.rb:465:in `start'
remote: from /var/lib/gems/1.8/gems/git-commit-notifier-0.7.2/bin/../lib/emailer.rb:42:in `perform_delivery_smtp'
remote: from /var/lib/gems/1.8/gems/git-commit-notifier-0.7.2/bin/../lib/emailer.rb:96:in `send'
remote: from /var/lib/gems/1.8/gems/git-commit-notifier-0.7.2/bin/../lib/commit_hook.rb:55:in `run'
remote: from /var/lib/gems/1.8/gems/git-commit-notifier-0.7.2/bin/../lib/diff_to_html.rb:285:in `each_with_index'
remote: from /var/lib/gems/1.8/gems/git-commit-notifier-0.7.2/bin/../lib/commit_hook.rb:51:in `each'
remote: from /var/lib/gems/1.8/gems/git-commit-notifier-0.7.2/bin/../lib/commit_hook.rb:51:in `each_with_index'
remote: from /var/lib/gems/1.8/gems/git-commit-notifier-0.7.2/bin/../lib/commit_hook.rb:51:in `run'
remote: from /var/lib/gems/1.8/gems/git-commit-notifier-0.7.2/bin/git-commit-notifier:13
remote: from /var/lib/gems/1.8/bin/git-commit-notifier:19:in `load'
remote: from /var/lib/gems/1.8/bin/git-commit-notifier:19
我跟蹤誤差emailer.rb腳本。具體行:
Net::SMTP.start(settings['address'], settings['port'], settings['domain'],
settings['user_name'], settings['password'], settings['authentication']) do |smtp|
參數似乎正確傳遞(我已檢查)。
我的配置腳本是這樣的:
# select the delivery method: smtp or sendmail
delivery_method: smtp
# settings for the smtp server
smtp_server:
address: smtp.gmail.com
port: 587
domain: mydomain
user_name: [email protected]
password: xxxxxx
authentication: plain
enable_tls: true
有誰知道如何解決這個問題呢?我有Redmine在同一臺服務器上,它工作正常。電子郵件發送沒有問題。
謝謝