sendmailでメールを送信しようとしています。メールを送信するとき、ログにエラーはありませんが、私のメールボックスを調べると、そのメールはそこにあるのではなく、迷惑メールフォルダにもありません。 私はvar/logディレクトリのmail.logファイルにいくつかの情報を取得しますが、変更する必要があることを実際に把握することはできません。アクションメールがsendmailで動作しない
Here's私development.rbパーツ:
config.action_mailer.delivery_method = :sendmail
config.action_mailer.raise_delivery_errors = true
私は2つの異なるアドレスをしようとしたさまざまなメッセージを得た: これは私にmail.logからです:
Feb 16 13:55:22 localhost postfix/master[2821]: daemon started -- version 2.8.4, configuration /etc/postfix
Feb 16 13:55:22 localhost postfix/pickup[2822]: 5E1C6CB8C1: uid=501 from=<[email protected]>
Feb 16 13:55:22 localhost postfix/cleanup[2824]: 5E1C6CB8C1: message-id=<[email protected]>
Feb 16 13:55:22 localhost postfix/qmgr[2823]: 5E1C6CB8C1: from=<[email protected]>, size=882, nrcpt=1 (queue active)
Feb 16 13:55:27 localhost postfix/smtp[2826]: 5E1C6CB8C1: to=<[email protected]>, relay=miraculix.informatik.uni-kiel.de[134.245.248.198]:25, delay=5.3, delays=0.04/0.01/5.3/0.04, dsn=5.7.1, status=bounced (host miraculix.informatik.uni-kiel.de[134.245.248.198] said: 550 5.7.1 HELO localhost.localhost from RFC 2606 reserved domains blocked (in reply to MAIL FROM command))
Feb 16 13:55:27 localhost postfix/cleanup[2824]: C0D2ACB8CB: message-id=<[email protected]>
Feb 16 13:55:27 localhost postfix/bounce[2829]: 5E1C6CB8C1: sender non-delivery notification: C0D2ACB8CB
Feb 16 13:55:27 localhost postfix/qmgr[2823]: C0D2ACB8CB: from=<>, size=2932, nrcpt=1 (queue active)
Feb 16 13:55:27 localhost postfix/qmgr[2823]: 5E1C6CB8C1: removed
Feb 16 13:55:33 localhost postfix/smtp[2826]: C0D2ACB8CB: to=<[email protected]>, relay=miraculix.informatik.uni-kiel.de[134.245.248.198]:25, delay=5.2, delays=0/0/5.2/0.04, dsn=5.7.1, status=bounced (host miraculix.informatik.uni-kiel.de[134.245.248.198] said: 550 5.7.1 HELO localhost.localhost from RFC 2606 reserved domains blocked (in reply to MAIL FROM command))
Feb 16 13:55:33 localhost postfix/qmgr[2823]: C0D2ACB8CB: removed
秒住所:
Feb 16 13:56:22 localhost postfix/master[2821]: master exit time has arrived
Feb 16 13:58:30 localhost postfix/master[2835]: daemon started -- version 2.8.4, configuration /etc/postfix
Feb 16 13:58:30 localhost postfix/pickup[2836]: 91FFCCB947: uid=501 from=<[email protected]>
Feb 16 13:58:30 localhost postfix/cleanup[2838]: 91FFCCB947: message-id=<[email protected]>
Feb 16 13:58:30 localhost postfix/qmgr[2837]: 91FFCCB947: from=<[email protected]>, size=878, nrcpt=1 (queue active)
Feb 16 13:58:30 localhost postfix/smtp[2840]: connect to mx.freenet.de[2001:748:100:40::8:110]:25: No route to host
Feb 16 13:58:30 localhost postfix/smtp[2840]: connect to mx.freenet.de[2001:748:100:40::8:112]:25: No route to host
Feb 16 13:58:30 localhost postfix/smtp[2840]: connect to mx.freenet.de[2001:748:100:40::8:111]:25: No route to host
Feb 16 13:58:30 localhost postfix/smtp[2840]: 91FFCCB947: to=<[email protected]>, relay=mx.freenet.de[195.4.92.9]:25, delay=0.32, delays=0.04/0.01/0.23/0.04, dsn=5.0.0, status=bounced (host mx.freenet.de[195.4.92.9] said: 550 Submission from dynamic IP 82.83.107.102 requires authentication (in reply to RCPT TO command))
Feb 16 13:58:30 localhost postfix/cleanup[2838]: DF128CB94C: message-id=<[email protected]>
Feb 16 13:58:30 localhost postfix/bounce[2843]: 91FFCCB947: sender non-delivery notification: DF128CB94C
Feb 16 13:58:30 localhost postfix/qmgr[2837]: DF128CB94C: from=<>, size=2864, nrcpt=1 (queue active)
Feb 16 13:58:30 localhost postfix/qmgr[2837]: 91FFCCB947: removed
Feb 16 13:58:36 localhost postfix/smtp[2840]: DF128CB94C: to=<[email protected]>, relay=miraculix.informatik.uni-kiel.de[134.245.248.198]:25, delay=5.3, delays=0/0/5.3/0.04, dsn=5.7.1, status=bounced (host miraculix.informatik.uni-kiel.de[134.245.248.198] said: 550 5.7.1 HELO localhost.localhost from RFC 2606 reserved domains blocked (in reply to MAIL FROM command))
Feb 16 13:58:36 localhost postfix/qmgr[2837]: DF128CB94C: removed
~
私のuser_mailer.rbには、これがあります:
default :from => "[email protected]"
はまた、私は
config.action_mailer.sendmail_settings =
{ :arguments => '-i -t -f [email protected]'}
が、その後にmail.logはまだこのようになります試してみました:
Feb 16 14:54:57 localhost postfix/master[2893]: daemon started -- version 2.8.4, configuration /etc/postfix
Feb 16 14:54:57 localhost postfix/qmgr[2895]: 9DBF4CB857: from=<[email protected]>, size=859, nrcpt=1 (queue active)
Feb 16 14:54:58 localhost postfix/pickup[2894]: A3120CC90B: uid=501 from=<[email protected]>
Feb 16 14:54:58 localhost postfix/cleanup[2896]: A3120CC90B: message-id=<[email protected]>
Feb 16 14:54:58 localhost postfix/qmgr[2895]: A3120CC90B: from=<[email protected]>, size=880, nrcpt=1 (queue active)
Feb 16 14:54:58 localhost postfix/smtp[2906]: connect to mx.freenet.de[2001:748:100:40::8:111]:25: No route to host
Feb 16 14:54:58 localhost postfix/smtp[2906]: connect to mx.freenet.de[2001:748:100:40::8:112]:25: No route to host
Feb 16 14:54:58 localhost postfix/smtp[2906]: connect to mx.freenet.de[2001:748:100:40::8:110]:25: No route to host
Feb 16 14:54:58 localhost postfix/smtp[2906]: A3120CC90B: to=<xxx[email protected]>, relay=mx.freenet.de[195.4.92.212]:25, delay=1.3, delays=1/0.01/0.17/0.05, dsn=5.0.0, status=bounced (host mx.freenet.de[195.4.92.212] said: 550 Submission from dynamic IP 82.83.107.102 requires authentication (in reply to RCPT TO command))
Feb 16 14:54:58 localhost postfix/cleanup[2896]: E3597CC90F: message-id=<[email protected]>
Feb 16 14:54:58 localhost postfix/qmgr[2895]: E3597CC90F: from=<>, size=2868, nrcpt=1 (queue active)
Feb 16 14:54:58 localhost postfix/bounce[2907]: A3120CC90B: sender non-delivery notification: E3597CC90F
Feb 16 14:54:58 localhost postfix/qmgr[2895]: A3120CC90B: removed
~
私は25 mx.freenet.de telnetで接続しようとした接続を得ました。私は本当に助けていただければ幸いです。
ありがとうございます!
ようこそ。便利な回答(他の質問への回答を含む)をupvoteすることを忘れないでください。あなたの問題を最もよく解決するあなたの質問に対する1つの答えを「受け入れる」(チェックする)こと。結束の場合は、最初の回答を受け入れます(著者名の上の時間情報を確認してください)。 –