https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292009-12-09T09:23:11ZRedmineRedmine - Patch #4368: rdm-mailhandler.rb should provide feedback to the MTA, rather than failing silentlyhttps://www.redmine.org/issues/4368?journal_id=128592009-12-09T09:23:11ZJean-Philippe Langjp_lang@yahoo.fr
<ul></ul><p>Is there a particular meaning for the return codes 77 and 75 ?</p> Redmine - Patch #4368: rdm-mailhandler.rb should provide feedback to the MTA, rather than failing silentlyhttps://www.redmine.org/issues/4368?journal_id=128622009-12-09T09:41:44ZPeter Fern
<ul></ul><p>Jean-Philippe Lang wrote:</p>
<blockquote>
<p>Is there a particular meaning for the return codes 77 and 75 ?</p>
</blockquote>
<p>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:</p>
<p>#define EX_TEMPFAIL 75 /* temp failure; user is invited to retry <strong>/<br />#define EX_NOPERM 77 /</strong> permission denied */</p>
<p>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).</p> Redmine - Patch #4368: rdm-mailhandler.rb should provide feedback to the MTA, rather than failing silentlyhttps://www.redmine.org/issues/4368?journal_id=128642009-12-09T10:39:26ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>Target version</strong> set to <i>0.9.0</i></li></ul><p>Patch committed in <a class="changeset" title="Improve rdm-mailhandler exit status (#4368)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/3143">r3143</a> with small changes to the messages and 403 response code fixed (was 443 in your patch).<br />Thanks.</p> Redmine - Patch #4368: rdm-mailhandler.rb should provide feedback to the MTA, rather than failing silentlyhttps://www.redmine.org/issues/4368?journal_id=128662009-12-09T11:07:29ZPeter Fern
<ul></ul><p>Whoops, thanks for catching that, and for the commit.</p>