<< September 2010
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
>>
NEW ENTRIES
Popular blog
ARCHIVES
CATEGORIES
LINK
RECENT COMMENTS
EURO vs Yen vs Doller
rjiqxely(09/22)
お勧めModule
ncsdgrl(09/22)
kkxgbosnzr(09/22)
書初め
dedhpm(09/22)
物理数学の直観的方法
gzhccijcv(09/22)
RECENT TRACKBACK
Redmine SMTP 設定
Adderall.(09/22)
niece
Clonazepam.(09/22)
Acyclovir dosage.(09/22)
頭がよくなる照明術 (PHP新書)
Singulair.(09/22)
Google Adsense と Amazon
Buy tramadol.(09/22)
POWERED BY
Script by:Blogn+(ぶろぐん+)
Skin by:vivid*face
Photo by:maplewine
RSS 1.0
RSS 2.0
Atom 0.3
Atom 1.0
処理時間 0.636272秒
LOGIN
現在のモード: ゲストモード
USER ID:
PASSWORD:





会社のPCにサーバを作り、Redmineを運用しています。

社内はExchange Server を使用していて
Outlookを強制的に使用させられてて、
僕自身はExchange Server のことをよく知らないし、
会社のメールサーバーのIPアドレスもわかりません。
そのため、ローカルで使用しているサーバからメールを
投げたい場合にSMTP の処理をどうしようという問題がありました。

サーバ内でSMTPサーバを作って配信するということも考えたのですが、
sendmail/postfix/qmail などの設定が面倒、そもそも
他への転送先サーバやDNSサーバを知らないなど思い諦めてました。




ふと気付いたのが自分の個人ノートPCの環境。
Gmail の送受信にGmailのサーバを使用しています。
これが使えるのでは?
と思いつき、早速検索してみると同じ事をやってる人たちが
たくさんいます。
すばらしい。
これらを参考にして無事終了。
これで各自でアカウントを作成・メールによる認証ができるようになりました。
今までは私が作成するか、自由に発行できるように任せてました。



まぁ、ローカル環境なのでセキュリティはあまり気にしてないですけど、
チケット発行したときや質問などをメールで受信したいなぁと。
チケットのステータス変化はRSSで取得しているのですが。

参考HP:
http://d.hatena.ne.jp/rx7/20080501/p2
http://d.hatena.ne.jp/yuhei_kagaya/20090609/1244537514


以下、Redmine のSMTPサーバの設定です。
インストールしたRedmineディレクトリ以下の
ファイル config/email.yml を開いて編集します。

--------------------------------------------
production:
delivery_method: :smtp
smtp_settings:
address: smtp.gmail.com
port: 587
domain: hogehoge.com
authentication: :login
user_name: redmine@gmail.com
password: xxxxxxxxxx
--------------------------------------------


参考にしたHPには以下の設定も書かれていたのですが
自分は書かなくてもできました。
config.action_mailer.perform_deliveries = true

その後、ruby 1.8では SSL/TSL 接続に対応していないということで
--------------------------------------------
% gem install tlsmail
--------------------------------------------

を実行、
config/environment.rb のファイルを開いて
--------------------------------------------
require 'tlsmail'
Net::SMTP.enable_tls(OpenSSL::SSL::VERIFY_NONE)
--------------------------------------------

を追加。

次に、GMAIL側のアカウント設定でPOP受信できるようにします。

これでRedmineの動いているサーバを再起動すればできるようになりました:-)
Redmine の管理画面で設定 -> メール通知 -> テストメールを送信
で確認できます。

最初、Gmailへアクセスできるかどうか確認(会社のルータで
ポートを塞がれている可能性もあるので)しようと
Outlookで試したのですがGmailのヘルプページに
あるような smtp port 465 ではエラーになり、接続できませんでした。
その後、Gmail設定のヘルプに書いてあるような組み合わせを
いくつか試してみて 25 + SSL 、587 + TLS の二つの組み合わせなら
送信できることを確認。

ちょっと苦戦したけど、思ったよりスムーズにいってよかった。
gem が楽すぎてほんと感謝です。



        
1 years ago on this day

このエントリーをdel.icio.usに追加する このエントリをニフティクリップに追加 このエントリをLivedoor クリップに追加 このエントリをFC2ブックマークに追加 このエントリーをはてなブックマークする このエントリーを含むはてなブックマーク このblogをはてなアンテナに追加 2009,08,13, Thu 13:15
Computer::rubycomments (0) trackback (10)












http://blog.shappi.org/tb.php/1339
Adderall side effects. Adderall prescription. Adderall.
| Adderall. | Adderall. | 2009,09,22 15:50 |
Buy tarmadol .
| Buy tarmadol . | Buy tarmadol . | 2009,09,18 08:17 |
Cheap soma.
| Soma intimates stores. | Chevelle soma. | 2009,09,17 21:14 |
Soma. Order soma. Buy soma online.
| Buy soma online. | Cheap soma. | 2009,09,17 16:21 |
Phentermine adipex. Ingredients adipex. Adipex. Generic adipex.
| Adipex. | Adipex phentermine vs. | 2009,09,16 16:43 |
Buy xanax online. Xanax online without prescription. Xanax. Buy xanax with no prescription. Xanax side effects.
| Xanax. | No prescription xanax. | 2009,09,16 03:07 |
Nursing article on lasix. Results of lasix in race horses. Lasix. Palm harbor fl lasix. Lasix-when discovered. What is the effect of the medicine lasix.
| Palm harbor fl lasix. | Leg swelling lasix. | 2009,09,15 15:38 |
Buy lasix without prescription. Do all horses use lasix.
| Vet dog care lasix medication. | Side effects of lasix. | 2009,09,15 00:19 |
Vicodin withdrawl. Vicodin. Overseas vicodin. Snorting vicodin. Vicodin and hydroxyzine. Vicodin withdrawal.
| Buy vicodin without script. | Vicodin. | 2009,09,12 08:42 |
Soma side effects. Soma without rx. Soma muscle relaxant. Soma online sales. Soma to florida. Soma.
| Soma medication. | Soma review the retail church chris thron. | 2009,09,12 08:14 |
SEARCH

PROFILE



イーココロ!クリック募金


ナッツをさがせ! - Powered by NASH -