Procmail call to rt-mailgate fails

MAILDIR=$HOME/Maildir
DEFAULT=$MAILDIR/mbox
LOGFILE=$HOME/procmail.log
LOCKFILE=$HOME/lockmail
VERBOSE=on
:0
|/usr/sbin/rt-mailgate --queue IPANEMA --action correspond --url
https://ticket.example.net

procmail: [15376] Fri Aug 28 13:19:04 2015
procmail: Assigning “LASTFOLDER=/usr/sbin/rt-mailgate --queue IPANEMA
–action correspond --url https://ticket.example.net"
procmail: [15376] Fri Aug 28 13:19:04 2015
procmail: Executing
”/usr/sbin/rt-mailgate,–queue,IPANEMA,–action,correspond,–url,
https://ticket.example.net"
procmail: Notified comsat: “ipanema@:/usr/sbin/rt-mailgate --queue IPANEMA
–action correspond --url https://ticket.example.net

From axisys Fri Aug 28 13:19:04 2015
Folder: /usr/sbin/rt-mailgate --queue IPANEMA --action correspo 660
procmail: Unlocking “/home/ipanema/lockmail”
/usr/sbin/rt-mailgate: Couldn’t create temp file, using memory
error: Error in tempdir() using /tmp/XXXXXXXXXX: Could not create directory
/tmp/Rf_FTTAo4f: Permission denied at /usr/sbin/rt-mailgate line 273

An Error Occurred

500 Can’t connect to ticket.example.net:443 (connect: Permission denied)

Any suggestion why rt-mailgate is failing?

This works just fine

foo: “|/usr/sbin/rt-mailgate --queue IPANEMA --action correspond --url
https://ticket.example.net

I am using rt-mailgate from rt4-mailgate-4.0.19-2.sdl6.noarch on centos 6.7

Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

MAILDIR=$HOME/Maildir
DEFAULT=$MAILDIR/mbox
LOGFILE=$HOME/procmail.log
LOCKFILE=$HOME/lockmail
VERBOSE=on
:0
|/usr/sbin/rt-mailgate --queue IPANEMA --action correspond --url
https://ticket.example.net

procmail: [15376] Fri Aug 28 13:19:04 2015
procmail: Assigning “LASTFOLDER=/usr/sbin/rt-mailgate --queue IPANEMA
–action correspond --url https://ticket.example.net"
procmail: [15376] Fri Aug 28 13:19:04 2015
procmail: Executing
”/usr/sbin/rt-mailgate,–queue,IPANEMA,–action,correspond,–url,
https://ticket.example.net"
procmail: Notified comsat: "ipanema@:/usr/sbin/rt-mailgate --queue
IPANEMA --action correspond --url https://ticket.example.net"
From axisys Fri Aug 28 13:19:04 2015
Folder: /usr/sbin/rt-mailgate --queue IPANEMA --action correspo 660
procmail: Unlocking “/home/ipanema/lockmail”
/usr/sbin/rt-mailgate: Couldn’t create temp file, using memory
error: Error in tempdir() using /tmp/XXXXXXXXXX: Could not create
directory /tmp/Rf_FTTAo4f: Permission denied at /usr/sbin/rt-mailgate line
273

An Error Occurred

500 Can’t connect to ticket.example.net:443 (connect: Permission denied)

Any suggestion why rt-mailgate is failing?

This works just fine

foo: “|/usr/sbin/rt-mailgate --queue IPANEMA --action correspond --url
https://ticket.example.net

I am using rt-mailgate from rt4-mailgate-4.0.19-2.sdl6.noarch on centos 6.7

It was selinux issue. Now all good.

Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?