RT 3.8.4 and mailgate

I’m out of ideas.

What is causing this error?

client denied by server
configuration: /opt/rt3/share/html/REST/1.0/NoAuth/mail-gateway

CentOS 5 Linux-Vserver guest and Postfix.

The Postfix logs seen to indicate I have the alias correct.

support: “|/opt/rt3/bin/rt-mailgate --queue General --action correspond
–url http://rt.example.com

But this is the maillog entry.

Jun 24 16:47:00 rt postfix/local[9539]: 60DBF652812B:
to=support@rt.example.com, relay=local, delay=0.49,
delays=0.06/0.01/0/0.43, dsn=4.3.0, status=deferred (temporary failure.
Command output: An Error Occurred ================= 403 Forbidden )

And as another test I tried:

echo “Test” | /opt/rt3/bin/rt-mailgate --queue General --action
correspond --url http://rt.example.com --debug

I get this back.

/opt/rt3/bin/rt-mailgate: temp file is ‘/tmp/dNJ05vX5JN’
/opt/rt3/bin/rt-mailgate: connecting to
http://rt.example.com/REST/1.0/NoAuth/mail-gateway
An Error Occurred
403 Forbidden

Ideas, pointers, clue-sticks?

TIA,
Rod

Paul Hirose wrote:

client denied by server configuration:
/opt/rt3/share/html/REST/1.0/NoAuth/mail-gateway The Postfix logs
seen to indicate I have the alias correct. support:
"|/opt/rt3/bin/rt-mailgate --queue General --action correspond
–url http://rt.example.com"

If the webserver and the mailserver are the same, you may want to
change the --url to localhost.

I’ll try localhost if the below suggestions don’t work.

Check your Apache httpd.conf file. And make sure you have
<LocationMatch “/NoAuth”> Satisfy Any Allow from all

I think I see now. I used the stanza from the documentation.

in the right section. You might not need to do Allow from all I
suppose, and could narrow that down.

I’ll probably lock it down to 127.0.0.1 or localhost.

Thanks,
Rod

Roderick A. Anderson wrote:

Paul Hirose wrote:

Check your Apache httpd.conf file. And make sure you have
<LocationMatch “/NoAuth”> Satisfy Any Allow from all

Turns out I needed it it in conf.d/perl.conf inside the VirtualHost for RT.

I think I see now. I used the stanza from the documentation.

in the right section. You might not need to do Allow from all I
suppose, and could narrow that down.

Now it is a DBD::Pg/SearchBuilder/duplicate-key issue.

I seem to remember seeing mention of this type of problem when using
PostgreSQL and migrating/updating from the RT 2.x series.

That is now one of today’s project!

Again thanks.

\||/
Rod