メールあたり平均約2000ミリ秒です。これは正常ですか?アプリの時間の例をいくつか教えてください。メールは問題なく届きます。おそらく DelayedJob または SendGrid のような SMTP リレーを使用する必要があることはわかっていますが、その方法が長すぎて根本的な問題があると推測しています。
2012-06-13T21:28:55+00:00 app web.1 - - Sent mail to ... (7856ms)
2012-06-13T21:28:57+00:00 app web.1 - - Sent mail to ... (2003ms)
2012-06-13T22:24:42+00:00 app web.1 - - Sent mail to ... (3094ms)
2012-06-13T22:24:43+00:00 app web.1 - - Sent mail to ... (1722ms)
2012-06-14T02:20:37+00:00 app web.1 - - Sent mail to ... (5932ms)
2012-06-14T02:22:16+00:00 app web.1 - - Sent mail to ... (1830ms)
2012-06-14T02:22:18+00:00 app web.1 - - Sent mail to ... (1740ms)
そうでない場合、どうすれば時間がかかるものをデバッグできますか?
(このデータを収集するために動揺したlogentries )
後世のための私のSMTP設定:
ActionMailer::Base.smtp_settings = {
:address => "smtp.gmail.com",
:port => 587,
:domain => "example.com",
:authentication => "plain",
:user_name => "mail@example.com",
:password => "...",
:enable_starttls_auto => true
}