Project

General

Profile

Actions

Patch #4368

closed

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

Added by Peter Fern over 14 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Email receiving
Target version:
Start date:
2009-12-09
Due date:
% Done:

0%

Estimated time:

Description

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.


Files

rdm-mailhandler_exitcode.patch (1.55 KB) rdm-mailhandler_exitcode.patch Peter Fern, 2009-12-09 09:52
Actions

Also available in: Atom PDF