Re: [rt-users] Another email problem with 3.8.12

2012-05-27 Thread Kim B. Heino
 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)


[rt-users] Another email problem with 3.8.12

2012-05-25 Thread Kim B. Heino
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:
u...@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:
adm...@domain.com, adm...@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 u...@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?