Redmine 0.7 이하의 버전에는 environment..rb라는 파일에서
smtp 정보를 수정하면 됐었습니다.
(요즘 , redmine 때문에 머리 아풉니다. ;;)
그런데 0.8에서는 쵸큼! 달라졌습니다.
인증 과정에 따라 두가지 방법이 있습니다.
1. 인증과정이 없는 경우는 인터넷에 떠돌아 다니는 email.yml 파일을 이용하시면 됩니다.
# cd config # cp email.yml.example email.yml
Edit email.yml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # Outgoing email settings production: delivery_method: :smtp smtp_settings: address: smtp.example.net port: 25 domain: example.net authentication: :none development: delivery_method: :smtp smtp_settings: address: 127.0.0.1 port: 25 domain: example.net authentication: :none |
제 블로그에서는 Prodcution으로 설치했으므로, Production 부분만 수정하시면 됩니다.:)
2. 인증과정이 필요한 경우는 rails wiki에서 처럼 ActionMailer를 사용하셔야 합니다.
# cd config # cp email.yml.example email.yml # cd initializers # vim mailer.rb
Edit mailer.rb
1 2 3 4 5 6 7 8 9 10 | # /config/initializers/mailer.rb ActionMailer::Base.delivery_method = :smtp ActionMailer::Base.smtp_settings = { :address => 'smtp.example.com', :port => 25, :domain => 'your.email.server', :authentication => :login, :user_name => 'user', :password => 'password' } |
각각, 부분에 맞게 수정하셔서 사용하시면 됩니다.
* 자체 local server에서 Sendmail을 직접 사용하는 방법도 있지만, 제 블로그에서는
‘언급’하지 않겠습니다.
메일서버에서 redmine을 돌리는 경우는 없어야 하니까요 ㅎㅎ
이저작물은 크리에이티브 커먼즈 저작자표시-비영리-변경금지 2.0 대한민국 라이선스에 따라 이용할 수 있습니다.
