EX_TEMPFAIL for emails containing attachments

Hi,

System info;
RT 3.0.9
DBIx::SearchBuilder 0.97_02
mod_perl 1.29
Apache 1.3.29
Sendmail 8.12.10
Perl 5.8.0
MySQL 4.0.17

Over the past week or so I began seeing a large number of spamassassin
processes accumulating on our RT system. I removed the spamassassin
config from our RT setup, and setup /etc/aliases to send directly to
rt-mailgate;

support: “|/opt/rt-3-0-9/bin/rt-mailgate --queue support --action
correspond --url http://our.rt.url

support-comment: “|/opt/rt-3-0-9/bin/rt-mailgate --queue support
–action comment --url http://our.rt.url

I now see the following error in /var/log/maillog;

“stat=Deferred: prog mailer (/usr/sbin/smrsh) exited with EX_TEMPFAIL”

I’ve run a few tests, and this is only occuring with emails containing
attachments - all other emails are accepted by rt-mailgate and created
as a ticket in the RT system.

The rt log shows nothing for the incoming email. The apache logs show
nothing strange.

I receive the following manually submitting an email with no attachment;

$ /opt/rt-3-0-9/bin/rt-mailgate --debug --queue support --action
correspond --url http://our.rt.url < testmsg
Connecting to
http://our.rt.url/REST/1.0/NoAuth/mail-gateway at
/opt/rt-3-0-9/bin/rt-mailgate line 444, <> chunk 1.
ok
Ticket: 146294
Queue: support
Owner: Nobody
Status: new
Requestor: psilver@ultrafast.com.au

When I try submitting an email with an attachment, rt-mailgate will take
3mins before returning the following error;

An Error Occurred

500 read timeout

max_allowed_packet is set to 5M in MySQL, and $MaxAttachmentSize is
‘10000000’ in RT_SiteConfig.pm, so this isn’t a problem since 30kb
attachments are failing.

Any suggestions as to what’s causing this problem?

thanks,

Peter

Further to my email below, I’ve run an strace of rt-mailgate after
piping an email containing an attachment into it;

fstat64(4, {st_mode=S_IFREG|0555, st_size=219905, …}) = 0
old_mmap(NULL, 118584, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) =
0xb707b000
old_mmap(0xb7096000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
4, 0x1a000) = 0xb7096000
close(4) = 0
write(3, “POST /REST/1.0/NoAuth/mail-gatew”…, 226) = 226
select(8, [3], [3], NULL, {15, 0}) = 1 (out [3], left {15, 0})
write(3, “SessionType=REST&action=correspo”…, 49173) = 49173
select(8, [3], NULL, NULL, {15, 0}) = 0 (Timeout) <---- HANGS
close(3) = 0
time(NULL) = 1079497347
time(NULL) = 1079497347

It seems to get to the stage of sending the HTTP POST, and then times
out after whatever timeout I specify via the --timeout argument.

I don’t see any hits to /REST/1.0/NoAuth/mail-gateway in the apache
access log, so I assume the actual HTTP POST is failing.

Any ideas?

thanks,

PeterOn Tue, 2004-03-16 at 16:05, Peter Silver wrote:

Hi,

System info;
RT 3.0.9
DBIx::SearchBuilder 0.97_02
mod_perl 1.29
Apache 1.3.29
Sendmail 8.12.10
Perl 5.8.0
MySQL 4.0.17

Over the past week or so I began seeing a large number of spamassassin
processes accumulating on our RT system. I removed the spamassassin
config from our RT setup, and setup /etc/aliases to send directly to
rt-mailgate;

support: “|/opt/rt-3-0-9/bin/rt-mailgate --queue support --action
correspond --url http://our.rt.url

support-comment: “|/opt/rt-3-0-9/bin/rt-mailgate --queue support
–action comment --url http://our.rt.url

I now see the following error in /var/log/maillog;

“stat=Deferred: prog mailer (/usr/sbin/smrsh) exited with EX_TEMPFAIL”

I’ve run a few tests, and this is only occuring with emails containing
attachments - all other emails are accepted by rt-mailgate and created
as a ticket in the RT system.

The rt log shows nothing for the incoming email. The apache logs show
nothing strange.

I receive the following manually submitting an email with no attachment;

$ /opt/rt-3-0-9/bin/rt-mailgate --debug --queue support --action
correspond --url http://our.rt.url < testmsg
Connecting to
http://our.rt.url/REST/1.0/NoAuth/mail-gateway at
/opt/rt-3-0-9/bin/rt-mailgate line 444, <> chunk 1.
ok
Ticket: 146294
Queue: support
Owner: Nobody
Status: new
Subject: Test
Requestor: psilver@ultrafast.com.au

When I try submitting an email with an attachment, rt-mailgate will take
3mins before returning the following error;

An Error Occurred

500 read timeout

max_allowed_packet is set to 5M in MySQL, and $MaxAttachmentSize is
‘10000000’ in RT_SiteConfig.pm, so this isn’t a problem since 30kb
attachments are failing.

Any suggestions as to what’s causing this problem?

thanks,

Peter


rt-users mailing list
rt-users@lists.bestpractical.com
The rt-users Archives

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm