Mailgate not working

Hello,

I’m in the process of installing rt-3.6.3, using
apache-2.2.4 (w/ fastcgi), mysql-5.0.24, perl-5.8.8, using
solaris and sendmail.

Following the install README, I’ve gotten to a point where I
am able to access the webrt interface, and have created a
queue, and granted access to the “everyone” group to create
a ticket. I’ve also created email aliases, but run into some
problems when sending email to create a ticket:

—snip—

cat /etc/mail/test | sendmail -v -t -oi

rt… Connecting to [127.0.0.1] via relay…
220 localhost ESMTP Sendmail
8.13.7+Sun/8.13.7; Mon, 15 Jan 2007 16:32:48 -0500 (EST)

EHLO localhost
250-localhost Hello localhost [127.0.0.1],
pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
VERB
250 2.0.0 Verbose mode
MAIL From:root@localhost SIZE=136
250 2.1.0 root@localhost… Sender ok
RCPT To:rt@localhost
DATA
050 rt@localhost… aliased to
“|/opt/local/rt-3.6.3/bin/rt-mailgate --queue rt
–action correspond --url https://localhost
250 2.1.5 rt@localhost… Recipient ok
354 Enter mail, end with “.” on a line by itself
.
050 “|/opt/local/rt-3.6.3/bin/rt-mailgate --queue rt
–action correspond --url localhost”… Connecting to prog…
050 “|/opt/local/rt-3.6.3/bin/rt-mailgate --queue rt
–action correspond --url localhost”… Deferred: prog
mailer (/bin/sh) exited with EX_TEMPFAIL
250 2.0.0 l0FLWm4S015447 Message accepted for delivery
rt… Sent (l0FLWm4S015447 Message accepted for delivery)
Closing connection to [127.0.0.1]
QUIT
221 2.0.0 localhost closing connection

—snip—

            /var/spool/mqueue (1 request)

-----Q-ID----- --Size-- -----Q-Time-----
------------Sender/Recipient-----------
l0FLWm4S015447 55 Mon Jan 15 16:32
root@localhost
(Deferred: prog mailer (/bin/sh) exited with EX_TEMPFAIL)
"|/opt/local/rt-3.6.3/bin/rt-mailgate
Total requests: 1

—snip—
(command line test test)

echo “test” | /etc/rt-mailgate --debug --action correspond

–queue rt --url https://localhost
Connecting to https://localhost/REST/1.0/NoAuth/mail-gateway
at /etc/rt-mailgate line 100, <> line 1.
An Error Occurred

500 Can’t connect to localhost:443 ()
This is /etc/rt-mailgate exiting because of an undefined
server error at /etc/rt-mailgate line 148, <> line 1.

—snip—
(browser checking above link)

https://localhost/REST/1.0/NoAuth/mail-gateway

not ok - Could not load a valid user

—snip—

I’m not exactly sure where to be looking for my problem. I
would really appreciate it if I can get some suggestions on
where to look for this problem. I’m guessing it is either
something misconfigured in rt or maybe in apache ssl.conf?
So far, I can’t seem to narrow it down much more.

Thanks!!

I’ve been having trouble getting rt mailgate to work when
using an ssl virtual host. I can get it to work when using
a virtual host on port 80.

Just wondering if anyone has rt running on a ssl virtual
host? Would you mind sharing a sample config for apache
httpd-ssl.conf?

With the config below, I can connect to the web interface,
but email fails with a message saying it “can’t connect”.

…extra/httpd-ssl.conf:

Fast CGI

FastCgiIpcDir /tmp
FastCgiServer /usr/local/rt-3.6.3/bin/mason_handler.fcgi -idle-timeout 120

SSL Virtual Host Context

General setup for the virtual host

ServerName webrt.rtdomain.com:443
DocumentRoot “/usr/local/rt-3.6.3/share/html”
ServerAdmin rtadmin@rtdomain.com

AddHandler fastcgi-script fcgi
ScriptAlias / /usr/local/rt-3.6.3/bin/mason_handler.fcgi/

AddDefaultCharset UTF-8 SetHandlel fastcgi-script

.
.
.On Mon, Jan 15, 2007 at 04:56:51PM -0500, Tim Longo wrote:

Hello,

I’m in the process of installing rt-3.6.3, using
apache-2.2.4 (w/ fastcgi), mysql-5.0.24, perl-5.8.8, using
solaris and sendmail.

Following the install README, I’ve gotten to a point where I
am able to access the webrt interface, and have created a
queue, and granted access to the “everyone” group to create
a ticket. I’ve also created email aliases, but run into some
problems when sending email to create a ticket:

This is what I had to do to get my mailgate working when it broke once.

     # rt-mailgate requires an http connection for some reason
     # probably some conflict between cpan and debian??
 # reinstalling (at least one of) the following fixed it
 # [UPGRADE] libdb4.3 4.3.27-2 -> 4.3.29-6
 # [UPGRADE] libfreezethaw-perl 0.43-2 -> 0.43-3
 # [UPGRADE] libio-socket-ssl-perl 0.96-1 -> 0.994-1On Mon, 29 Jan 2007, Tim Longo wrote:

I’ve been having trouble getting rt mailgate to work when
using an ssl virtual host. I can get it to work when using
a virtual host on port 80.

Just wondering if anyone has rt running on a ssl virtual
host? Would you mind sharing a sample config for apache
httpd-ssl.conf?

With the config below, I can connect to the web interface,
but email fails with a message saying it “can’t connect”.

…extra/httpd-ssl.conf:

Fast CGI

FastCgiIpcDir /tmp
FastCgiServer /usr/local/rt-3.6.3/bin/mason_handler.fcgi -idle-timeout 120

SSL Virtual Host Context

General setup for the virtual host

ServerName webrt.rtdomain.com:443
DocumentRoot “/usr/local/rt-3.6.3/share/html”
ServerAdmin rtadmin@rtdomain.com

AddHandler fastcgi-script fcgi
ScriptAlias / /usr/local/rt-3.6.3/bin/mason_handler.fcgi/

AddDefaultCharset UTF-8 SetHandlel fastcgi-script

.
.
.

On Mon, Jan 15, 2007 at 04:56:51PM -0500, Tim Longo wrote:

Hello,

I’m in the process of installing rt-3.6.3, using
apache-2.2.4 (w/ fastcgi), mysql-5.0.24, perl-5.8.8, using
solaris and sendmail.

Following the install README, I’ve gotten to a point where I
am able to access the webrt interface, and have created a
queue, and granted access to the “everyone” group to create
a ticket. I’ve also created email aliases, but run into some
problems when sending email to create a ticket:


The rt-users Archives

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com