[rt-users] delivery to RT queue returning EX_TEMPFAIL but not debug logs or anything useful

Tom H tom at limepepper.co.uk
Wed Aug 20 13:21:05 EDT 2008


Emmanuel Lacour wrote:
> On Wed, Aug 20, 2008 at 04:29:55PM +0100, Tom H wrote:
>> warn $content if ($opts{debug});
>>
>> and according to "perldoc warnings", the function warn should send the
>> content to STDERR...
>>
>> So I've no idea where that information is going....
>>
>> Any ideas?
>>
> 
> Try to log the error to a file by modifying a little bit rt-mailgate.
> 
> Look in you're apache and rt error logs, if rt-mailgate cannot submit,
> there should be an error there.

The problem itself is odd, because RT itself is returning 200 for the
request to create the message;

10.127.2.24 - - [11/Aug/2008:21:32:19 +0000] "POST
/rt//REST/1.0/NoAuth/mail-gateway HTTP/1.1" 200 721 "-" "libwww-perl/5.808"

but rt-mailgate is returning exit code 75 to smrsh/sendmail;

Date: Mon, 11 Aug 2008 21:31:23 +0000
operations.support at tickets.xxx.net
#< #4.4.7 X-Unix; 75> #SMTP#

By the looks of it the server returns EX_TEMPFAIL if the return content
didn't include ok|not ok

114: if ( $content !~ /^(ok|not ok)/ ) {

But sendmail is still not including this error text in the bounce mail
to the requestor.. which I guess is the part I am confused about.

I'm going to patch rt-mailgate to log that stuff to a local file for the
meanwhile.  But I would be keen to understand where the option to do
that is in the sendmail config.

Tom



More information about the rt-users mailing list