プロジェクト

全般

プロフィール

Vote #66143

完了

rdm-mailhandler.rb should provide feedback to the MTA, rather than failing silently

Admin Redmine さんがほぼ2年前に追加. ほぼ2年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Email receiving_29
対象バージョン:
開始日:
2009/12/09
期日:
進捗率:

0%

予定工数:
category_id:
29
version_id:
6
issue_org_id:
4368
author_id:
8489
assigned_to_id:
0
comments:
4
status_id:
5
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

This patch causes the script to return an exit code to the spawning process, adds a message about invalid email addresses (response.code == 422), returns 77 (EX_NOPERM) for 400..499, returns 75 (EX_TEMPFAIL) for 500..599, and returns 1 for all other errors.

I'm not sure if EX_TEMPFAIL is the right thing to do for 5xx errors (or at least for all 5xx errors), but it seemed like a good idea as these are usually transient.


journals

Is there a particular meaning for the return codes 77 and 75 ?
--------------------------------------------------------------------------------
Jean-Philippe Lang wrote:
> Is there a particular meaning for the return codes 77 and 75 ?

Indeed, they come from sysexits.h, and are used by many MTAs to decide what action is to be taken for processing handler errors returning these codes. The textual representations are fairly self-explanatory, and the actions taken vary depending on MTA and configuration, however for clarity, an excerpt from sysexits.h:

#define EX_TEMPFAIL 75 /* temp failure; user is invited to retry */
#define EX_NOPERM 77 /* permission denied */

So, 75 generally results in the email being re-queued for a later delivery attempt (often there is a re-queue limit, and the mail will eventually bounce), and 77 generally results in emails being bounced immediately with an error description (permission denied).
--------------------------------------------------------------------------------
Patch committed in r3143 with small changes to the messages and 403 response code fixed (was 443 in your patch).
Thanks.
--------------------------------------------------------------------------------
Whoops, thanks for catching that, and for the commit.
--------------------------------------------------------------------------------

Admin Redmine さんがほぼ2年前に更新

  • カテゴリEmail receiving_29 にセット
  • 対象バージョン0.9.0_6 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0