Mailing List Archive

Another email problem with 3.8.12
Hello,

I tried to run 3.8.12 with b7a5a53 patch on RHEL5 system. Outgoing
emails work, but incoming doesn't. I see this on my maillog:

May 25 11:40:15 hostname postfix/local[13235]: 8D0CE137D68:
to=<my.rt@email.address>, relay=local, delay=0.6, delays=0.01/0/0/0.58,
dsn=4.3.0, status=deferred (temporary failure. Command output: An Error
Occurred ================= 500 Server closed connection without
sending any data back )

And this on my syslog:

May 25 11:40:14 hostname RT: <rt-3.8.12...@email.address> #4242/34054 -
Scrip 3 On Create Autoreply To Requestors
(/usr/lib/perl5/vendor_perl/5.8.8/RT/Action/SendEmail.pm:302)

May 25 11:40:15 hostname RT: <rt-3.8.12...@email.address> sent To:
user@domain.com
(/usr/lib/perl5/vendor_perl/5.8.8/RT/Action/SendEmail.pm:333)

May 25 11:40:15 hostname RT: <rt-3.8.12...@email.address - Scrip 4 On
Create Notify AdminCcs
(/usr/lib/perl5/vendor_perl/5.8.8/RT/Action/SendEmail.pm:302)

May 25 11:40:15 hostname RT: Undefined value assigned to typeglob
at /usr/lib/perl5/vendor_perl/5.8.8/RT/Interface/Email.pm line 459.
(/usr/lib/perl5/vendor_perl/5.8.8/RT/Interface/Email.pm:459)

May 25 11:40:15 hostname RT: <rt-3.8.12...@email.address> sent Bcc:
admin1@domain.com, admin2@domain.com, ...
(/usr/lib/perl5/vendor_perl/5.8.8/RT/Action/SendEmail.pm:333)

May 25 11:40:15 hostname RT: Ticket 4242 created in queue 'queuename'
by user@domain.com
(/usr/lib/perl5/vendor_perl/5.8.8/RT/Ticket_Overlay.pm:671)

May 25 11:40:15 hostname RT: Apache2::RequestIO::rflush: (103) Software
caused connection abort
at /usr/lib/perl5/vendor_perl/5.8.8/HTML/Mason/ApacheHandler.pm line
1020 (/usr/sbin/webmux.pl:115)


So, RT creates a new ticket and sends outgoing emails, but doesn't
return OK to rt-mailgate. Postfix thinks that the mail failed and
retries it 10 minutes later. And again, creating multiple new tickets.
Apache's errorlog is empty.

Line 459 in Email.pm is the line added by b7a5a53:

local *STDIN = IO::Handle->new_from_fd( 0, "r" );

What am I missing?
Re: Another email problem with 3.8.12 [ In reply to ]
On Fri, 2012-05-25 at 18:31 +0300, Kim B. Heino wrote:
> I tried to run 3.8.12 with b7a5a53 patch on RHEL5 system. Outgoing
> emails work, but incoming doesn't. I see this on my maillog:

Please show us your Apache and RT configuration, with passwords redacted
as necessary.
- Alex
Re: Another email problem with 3.8.12 [ In reply to ]
On 05/25/2012 11:31 AM, Kim B. Heino wrote:
> I tried to run 3.8.12 with b7a5a53 patch on RHEL5 system. Outgoing
> emails work, but incoming doesn't. I see this on my maillog:
>
> May 25 11:40:15 hostname postfix/local[13235]: 8D0CE137D68:
> to=<my.rt@email.address>, relay=local, delay=0.6, delays=0.01/0/0/0.58,
> dsn=4.3.0, status=deferred (temporary failure. Command output: An Error
> Occurred ================= 500 Server closed connection without
> sending any data back )

Can you try running rt-mailgate by hand with the added --debug flag and
piping in a test email? It may output a little more verbosely than the
error postfix recorded above.

rt-mailgate --debug --action correspond --queue XXX --url http://XXX <
testmail
Re: Another email problem with 3.8.12 [ In reply to ]
On Fri, 2012-05-25 at 18:31 +0300, Kim B. Heino wrote:
> I tried to run 3.8.12 with b7a5a53 patch on RHEL5 system. Outgoing
> emails work, but incoming doesn't. I see this on my maillog:

Please try applying 38093f9:

curl https://github.com/bestpractical/rt/commit/38093f9.patch |
patch -p1 -d /opt/rt3

Then restart Apache (a full stop+start will likely be necessary) and
report back if that resolves your issue. Regardless, I'd also be
curious to know what version of mod_perl you're running (check your
error logs on Apache startup), and the output of `apache2 -V`

- Alex
Re: Another email problem with 3.8.12 [ In reply to ]
> Please try applying 38093f9:

Thanks, that fixed the problem. 3.8.12 + b7a5a53 + 38093f9 is now
running fine here.

> curious to know what version of mod_perl you're running (check your
> error logs on Apache startup), and the output of `apache2 -V`

This is RHEL5, so it's mod_perl-2.0.4-6.el5 and Apache:

Server version: Apache/2.2.3
Server loaded: APR 1.2.7, APR-Util 1.2.7
Compiled using: APR 1.2.7, APR-Util 1.2.7
Architecture: 64-bit
Server MPM: Prefork
threaded: no
forked: yes (variable process count)
Re: Another email problem with 3.8.12 [ In reply to ]
On Sun, 2012-05-27 at 17:08 +0300, Kim B. Heino wrote:
> > Please try applying 38093f9:
>
> Thanks, that fixed the problem. 3.8.12 + b7a5a53 + 38093f9 is now
> running fine here.

Excellent. I expect to roll 3.8.13rc2 shortly, then.

> > curious to know what version of mod_perl you're running (check your
> > error logs on Apache startup), and the output of `apache2 -V`
>
> This is RHEL5, so it's mod_perl-2.0.4-6.el5 and Apache:
>
> Server version: Apache/2.2.3
> Server loaded: APR 1.2.7, APR-Util 1.2.7
> Compiled using: APR 1.2.7, APR-Util 1.2.7
> Architecture: 64-bit
> Server MPM: Prefork
> threaded: no
> forked: yes (variable process count)

OK, that confirms what we believed to be the circumstances necessary:
1) RT 3.8.x
2) mod_perl <= 2.0.4
3) prefork MPM
4) SetHandler perl-script

- Alex