<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:12pt"><div style="" class="">Evening All,</div><div style="" class=""><br style="" class=""></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif; background-color: transparent; font-style: normal">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.</div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif; background-color: transparent; font-style: normal"><br style="" class=""></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif;
 background-color: transparent; font-style: normal">I'm running it directly from the CLI and it sometimes returns error 75 will the following traceback:</div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif; background-color: transparent; font-style: normal"><br style="" class=""></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif; background-color: transparent; font-style: normal"># while true; do<br style="" class="">> /opt/rt-4.2.3/bin/rt-mailgate --queue general --action comment --url http://supdev.ezideas.co.uk/ < /var/mailtest.txt;</div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif; background-color: transparent; font-style: normal">> sleep 2;<br style=""
 class="">> done<br style="" class=""><br></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif; background-color: transparent; font-style: normal">RT server error. The RT server which handled your email did not behave as expected. It said:<br style="" class=""><br style="" class="">Error in tempdir() using /tmp/XXXXXXXXXX: Tried to get a new temp name different to the previous value 50 times.<br style="" class="">Something wrong with template?? (/tmp/XXXXXXXXXX) at /opt/rt-4.2.3/sbin/../lib/RT/EmailParser.pm line 476.<br style="" class=""><br style="" class="">Stack:<br style="" class="">  [/usr/local/share/perl/5.14.2/Carp.pm:166]<br style="" class="">  [/usr/share/perl/5.14/File/Temp.pm:1562]<br style="" class="">  [/opt/rt-4.2.3/sbin/../lib/RT/EmailParser.pm:476]<br style="" class=""> 
 [/opt/rt-4.2.3/sbin/../lib/RT/EmailParser.pm:201]<br style="" class="">  [/opt/rt-4.2.3/sbin/../lib/RT/EmailParser.pm:166]<br style="" class="">  [/opt/rt-4.2.3/sbin/../lib/RT/EmailParser.pm:136]<br style="" class="">  [/opt/rt-4.2.3/sbin/../lib/RT/Interface/Email.pm:1229]<br style="" class="">  [/opt/rt-4.2.3/share/html/REST/1.0/NoAuth/mail-gateway:61]</div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif; background-color: transparent; font-style: normal"><br style="" class=""></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif; background-color: transparent; font-style: normal">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.</div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif; background-color: transparent; font-style: normal"><br></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif; background-color: transparent; font-style: normal">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.<br></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif; background-color: transparent; font-style: normal"><br style="" class=""></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family:
 HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif; background-color: transparent; font-style: normal">Can anyone offer any suggestions?</div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif; background-color: transparent; font-style: normal"><br style="" class=""></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif; background-color: transparent; font-style: normal">Thanks in advance</div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif; background-color: transparent; font-style: normal"><br style="" class=""></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif;
 background-color: transparent; font-style: normal">Lee<br style="" class=""></div></div></body></html>