Amazon EC2ä¸ã§ç¨¼åãã¦ããRedmineããã¡ã¼ã«ãéä¿¡ããããªã£ãã®ã§é å¼µã£ã¦ã¿ã話ã
ã¤ã³ã¿ã¼ãããä¸ã§ãµã¼ãã¹ãåããã¦ããå ´åãä½ãããã®ã¿ã¤ãã³ã°ã§ã¡ã¼ã«ãéããããªãå ´åããããã¨æãã¾ãã
ã§ãããã£ã±ãã¡ã¼ã«ãµã¼ãã®éç¨ã®é£æ度ã¨è¨ãã°ãããããããããªããã§ãåºæ¥ãã ãèªåã§ã¡ã¼ã«ãµã¼ãã®éç¨ã ãã¯é¿ããããã®ã§ãããã
ã¨ãããã¨ã§ãGmailã®SMTPãµã¼ãã¹ã使ã£ã¦ã¿ããã¨ã«ãã¾ããã
天ä¸ã®Googleæ§ã®ãµã¼ãã¹ã§ããGmailã«ã¤ãã¦ã¯ã説æä¸è¦ãã¨æãã¾ãããGmailã¯ããã ã®Webã¡ã¼ã«ã§ã¯ãªããSMTPãPOPãIMAPãªããã«ã対å¿ãã¦ããããã¾ãã
ããããSMTPçµç±ã§éä¿¡ããã¡ã¼ã«ããGmailä¸ã§ä¿ç®¡ãã¦ãããã¨ããåªããã®ã§ãï¼
ã§ãGmail使ãããããã£ã¦ãã¨ã§è¨å®ãã¯ããããã§ããããããªãã¨ã¯ãããªãã£ãã®ã§ã以ä¸ãé å¼µã£ãã¡ã¢ã
追è¨(2010/05/26)
æ¬ã¨ã³ããªã®æ å ±ãå°ãå¤ããªã£ã¦ãã¾ããã®ã§ã以ä¸ã®ã¨ã³ããªã§æ å ±ãã¢ãããã¼ããã¾ããããããã¦ã覧ãã ããã
Redmineã®è¨å®
Redmineã«ã¤ãã¦ã¯ã»ããã¢ããæ¸ã¿ã®åæã§ã
ã»ããã¢ããæé ã«ã¤ãã¦ã¯ã連載:Redmineを運用するためのイロハを身につけよう|gihyo.jp … 技術評論社ããã©ããã(宣ä¼)
ã¾ããRedmineã®ã¡ã¼ã«è¨å®ã以ä¸ã®ãããªæãã§ç·¨éãã¾ãã
# SMTP server configuration config.action_mailer.smtp_settings = { :address => "smtp.gmail.com", :port => 587, :domain => "hostname.domain", :authentication => :login, :user_name => "[email protected]", :password => "password", } config.action_mailer.perform_deliveries = true
":address", ":port", ":authentication" ã¯ä¸è¨ã®ã¾ã¾ã§OKã§ãã
":domain"ã®ã¨ããã¯ãRedmineã稼åãã¦ãããã¡ã¤ã³ãã¼ã (FQDN)ãè¨è¿°(ã¡ã¼ã«ã®ãããã«è¨è¼ããã)ã
":user_name" 㨠":password" ã¯ä½¿ç¨ããGmailã®ã¡ã¼ã«ã¢ãã¬ã¹ã¨ãã¹ã¯ã¼ããå
¥åãã¦ãã ããã
ã¡ã¼ã«éä¿¡ãããããã
ããããæ©éãã¹ãã¡ã¼ã«ãéã£ã¦ã¿ã¾ãããã
ä¸è¨ã¯ããã¼ã¸ã§ã³0.7ã®å ´åã®ãªãã¬ã¼ã·ã§ã³ã§ããããã以åã®ãã¼ã¸ã§ã³ã§ããã»ã¼åããªã®ã§ãåãããã¨æãã¾ãã
Redmineã«ãã°ã¤ã³(管çè ã§)ããä¸é¨ã¡ãã¥ã¼ã® [管ç] â [è¨å®] â [ã¡ã¼ã«éç¥]ã¿ã ãéãã¾ãã
ãéä¿¡å ã¡ã¼ã«ã¢ãã¬ã¹ããå©ç¨ããGmailã¢ãã¬ã¹ããããã¯"å©ç¨ããGmailã¢ãã¬ã¹ã¢ã«ã¦ã³ãã«å¥ã§ç»é²ãã¦ããã¡ã¼ã«ã¢ãã¬ã¹"ãå ¥å(ç·¨é)ããä¿åãã¾ãã
ã§ãå³ä¸ã«ããããã¹ãã¡ã¼ã«ãéä¿¡ãã®ãªã³ã¯ãã¯ãªãã¯ããã¨ããã
530 5.7.0 Must issue a STARTTLS command first .....
ããããSMTPã¨ã©ã¼ãåºã¾ããã
ã¨ããã®ããå°ã調ã¹ãã¨Gmailã®SMTPã¯"TLS"ãã¤ã¾ã"SMTP over SSL"ã§éä¿¡ããå¿
è¦ããããã¨ã
ããããããrubyã®net/smtpã§TLSããµãã¼ããã¦ããã®ã¯ãã¼ã¸ã§ã³1.9ããã§ããã¼ã¸ã§ã³1.8ã§ã¯ãµãã¼ãããã¦ããªãããã ã
ruby1.8ã®TLS対å¿
ã¨ããããã§ãd:id:zorio:20070318:1174226862 ãåèã«ä»¥ä¸ã®ããã«ãã¦å¯¾å¿ã
# gem install tlsmail
gemã§tlsmailãã¤ã³ã¹ãã¼ã«ã
ã§ãRedmineã®${RAILS_ROOT}/config/environment.rbã«ä»¥ä¸2è¡ã追è¨ã
require "tlsmail" Net::SMTP.enable_tls(OpenSSL::SSL::VERIFY_NONE)
対å¿å¾ãRedmineãããã°ã£ã¡ãã¡ã¼ã«ãéä¿¡ã§ããããã«ãªãã¾ããï¼
ãã§ãããã§ããã
åè
- ruby 1.8ç³»ã§smtpã«tlsã使ã - zorioã®æ¥è¨
- http://d.hatena.ne.jp/zorio/20070318/1174226862
- Gmailãã«ã - ãã®ä»ã®ã¡ã¼ã« ã¯ã©ã¤ã¢ã³ãã®è¨å®
- http://mail.google.com/support/bin/answer.py?hl=jp&answer=13287
ã¾ã¨ã
ã¯ã©ã¦ãAMAZON EC2/S3ã®ãã¹ã¦ (ITpro BOOKs)
- ä½è : 並河ç¥è²´,å®éè¼é,ITpro/æ¥çµSYSTEMS
- åºç社/ã¡ã¼ã«ã¼: æ¥çµBP社
- çºå£²æ¥: 2009/11/05
- ã¡ãã£ã¢: åè¡æ¬
- è³¼å ¥: 4人 ã¯ãªãã¯: 372å
- ãã®ååãå«ãããã° (18件) ãè¦ã