[rt-users] RT 4.2.3 - Intermittant Mail Failures with rt-mailtool

Lee Wilson leefm40 at yahoo.co.uk
Tue May 6 16:45:01 EDT 2014


Evening All,

Just done a new install of RT 4.2.3 on Debian 7.5 and I'm having issues with mail sometimes not being recorded when sent through rt-mailtool.

I'm running it directly from the CLI and it sometimes returns error 75 will the following traceback:

# while true; do
> /opt/rt-4.2.3/bin/rt-mailgate --queue general --action comment --url http://supdev.ezideas.co.uk/ < /var/mailtest.txt;
> sleep 2;
> done


RT server error. The RT server which handled your email did not behave as expected. It said:

Error in tempdir() using /tmp/XXXXXXXXXX: Tried to get a new temp name different to the previous value 50 times.
Something wrong with template?? (/tmp/XXXXXXXXXX) at /opt/rt-4.2.3/sbin/../lib/RT/EmailParser.pm line 476.

Stack:
  [/usr/local/share/perl/5.14.2/Carp.pm:166]
  [/usr/share/perl/5.14/File/Temp.pm:1562]
  [/opt/rt-4.2.3/sbin/../lib/RT/EmailParser.pm:476]
  [/opt/rt-4.2.3/sbin/../lib/RT/EmailParser.pm:201]
  [/opt/rt-4.2.3/sbin/../lib/RT/EmailParser.pm:166]
  [/opt/rt-4.2.3/sbin/../lib/RT/EmailParser.pm:136]
  [/opt/rt-4.2.3/sbin/../lib/RT/Interface/Email.pm:1229]
  [/opt/rt-4.2.3/share/html/REST/1.0/NoAuth/mail-gateway:61]

I've had a look in the EmailParser.pm and on line 476 it's just an if statement that checks if the temporary directory is writable, as I'm running this as root that shouldn't be an issue unless rt-mailtool is dropping it's permissions.

I can also see it successfully creating and removing files in /tmp when it's working, so I'm at a loss why this is happening. No problems with disc space, about 2GB free on /tmp.


Can anyone offer any suggestions?

Thanks in advance

Lee
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20140506/ac86d40f/attachment.htm>


More information about the rt-users mailing list