[rt-users] Issue with mailgate on rt4

Kevin Falcone falcone at bestpractical.com
Tue Nov 22 16:00:03 EST 2011


On Tue, Nov 22, 2011 at 02:07:40PM -0500, Arnon Clark wrote:
> Hola,
> 
> I'm reasonably sure this is a permissions issue, (and an utter noob
> question) but I'm afraid I don't know where RT creates the tmpdir.
> so I'm not certain where to fix that.
> 
> Debian install of RT4.0.4, MYSQL, and I'm, able to create tickets
> fine, but when mail comes in Postfix returns a deferral with the
> following error :
> 
> (temporary failure. Command output: /opt/rt4/bin/rt-mailgate:
> Couldn't create temp file, using memory error: Error in tempdir()
> using XXXXXXXXXX: Could not create directory KVG5obldxe: Permission
> denied at /opt/rt4/bin/rt-mailgate line 266  RT server error.  The

The first half of this says that the mailgate can't write to a temp
directory.

> RT server which handled your email did not behave as expected. It
> said:  Can't call method "crit" on an undefined value at
> /opt/rt4/sbin/../lib/RT/EmailParser.pm line 483.  Stack:
> [/opt/rt4/sbin/../lib/RT/EmailParser.pm:483]
> [/opt/rt4/sbin/../lib/RT/EmailParser.pm:203]
> [/opt/rt4/sbin/../lib/RT/EmailParser.pm:168]
> [/opt/rt4/sbin/../lib/RT/EmailParser.pm:138]
> [/opt/rt4/sbin/../lib/RT/Interface/Email.pm:1344]
> [/opt/rt4/share/html/REST/1.0/NoAuth/mail-gateway:61]  )

The second half of this implies that RT can't write to a temp
directory either (and that your logging is broken).

I'd be looking at the permissions on /tmp or whatever else you're
using.  I suspect the web interface would break similarly if you tried
to upload an attachment.

-kevin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20111122/bc6559f8/attachment.sig>


More information about the rt-users mailing list