[rt-users] Understanding mailgate

Vicki Stanfield vicki at progeny.com
Tue Apr 19 11:37:58 EDT 2005


I am trying to get the mailgate on my test rt system set up without 
interfering with the production system (which has the front end on one 
system and the database on another). Unfortunately, the system I 
inherited does not do things exactly as in the README file. The portion 
added to /etc/aliases for the production system looks like this:

rt: rt at rt.progeny.com
rt-comment: rt-comment at rt.progeny.com

support: support at rt.progeny.com
support-comment: support-comment at rt.progeny.com

custserv: custserv at rt.progeny.com
custserv-comment: custserv-comment at rt.progeny.com

sysadmin: sysadmin at rt.progeny.com
sysadmin-comment: sysadmin-comment at rt.progeny.com

sales: sales at rt.progeny.com
sales-comment: sales-comment at rt.progeny.com

-------------------

I want to create aliases for my test system without interfering with the 
existing ones, so I added the following:


rt2: rt2 at rt.progeny.com
rt2-comment: rt2-comment at rt.progeny.com

support2: support2 at rt.progeny.com
support2-comment: support2-comment at rt.progeny.com

custserv2: custserv2 at rt.progeny.com
custserv2-comment: custserv2-comment at rt.progeny.com

sysadmin2: sysadmin2 at rt.progeny.com
sysadmin2-comment: sysadmin2-comment at rt.progeny.com

sales2: sales2 at rt.progeny.com
sales2-comment: sales2-comment at rt.progeny.com

------------------------------

I then went to the production rt system and copied the /etc/aliases file 
from it to the rt test system. In production, it contained the following:

rt: "| /opt/rt3/bin/rt-mailgate --queue General --action correspond 
--url http://rt.progeny.com/"
rt-comment: "| /opt/rt3/bin/rt-mailgate --queue General --action comment 
--url http://rt.progeny.com/"

support: "| /opt/rt3/bin/rt-mailgate --queue Support --action correspond 
--url http://rt.progeny.com/"
support-comment: "| /opt/rt3/bin/rt-mailgate --queue Support --action 
comment --url http://rt.progeny.com/"

custserv: "| /opt/rt3/bin/rt-mailgate --queue 'Customer Service' 
--action correspond --url http://rt.progeny.com/"
custserv-comment: "| /opt/rt3/bin/rt-mailgate --queue 'Customer Service' 
--action comment --url http://rt.progeny.com/"

sysadmin: "| /opt/rt3/bin/rt-mailgate --queue 'System Administration' 
--action correspond --url http://rt.progeny.com/"
sysadmin-comment: "| /opt/rt3/bin/rt-mailgate --queue 'System 
Administration' --action comment --url http://rt.progeny.com/"

sales: "| /opt/rt3/bin/rt-mailgate --queue Sales --action correspond 
--url http://rt.progeny.com/"
sales-comment: "| /opt/rt3/bin/rt-mailgate --queue Sales --action 
comment --url http://rt.progeny.com/"
--------------------------------

which I changed to:

rt2: "| /opt/rt3/bin/rt-mailgate --queue General --action correspond 
--url http://testrt.progeny.com/"
rt2-comment: "| /opt/rt3/bin/rt-mailgate --queue General --action 
comment --url http://testrt.progeny.com/"

support2: "| /opt/rt3/bin/rt-mailgate --queue Support --action 
correspond --url http://testrt.progeny.com/"
support2-comment: "| /opt/rt3/bin/rt-mailgate --queue Support --action 
comment --url http://testrt.progeny.com/"

custserv2: "| /opt/rt3/bin/rt-mailgate --queue 'Customer Service' 
--action correspond --url http://testrt.progeny.com/"
custserv2-comment: "| /opt/rt3/bin/rt-mailgate --queue 'Customer 
Service' --action comment --url http://testrt.progeny.com/"

sysadmin2: "| /opt/rt3/bin/rt-mailgate --queue 'System Administration' 
--action correspond --url http://testrt.progeny.com/"
sysadmin2-comment: "| /opt/rt3/bin/rt-mailgate --queue 'System 
Administration' --action comment --url http://testrt.progeny.com/"

sales2: "| /opt/rt3/bin/rt-mailgate --queue Sales --action correspond 
--url http://testrt.progeny.com/"
sales2-comment: "| /opt/rt3/bin/rt-mailgate --queue Sales --action 
comment --url http://testrt.progeny.com/"

------------------
I reran newaliases on my mail server and on the test rt system. I then 
tested it by sending a mail to rt2 at progeny.com which I hoped would get 
piped into mailgate on the new system , but it didn't work. I tried the 
following from the command line:

cat "Message to go to RT" | /opt/rt3/bin/rt-mailgate --queue General 
--action correspond --url http://testrt.progeny.com/

but this didn't work either. Am I misunderstanding how the mailgate 
works? Is there some glaring error in my logic here?

Vicki



More information about the rt-users mailing list