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@rt.progeny.com
rt-comment: rt-comment@rt.progeny.com
support: support@rt.progeny.com
support-comment: support-comment@rt.progeny.com
custserv: custserv@rt.progeny.com
custserv-comment: custserv-comment@rt.progeny.com
sysadmin: sysadmin@rt.progeny.com
sysadmin-comment: sysadmin-comment@rt.progeny.com
sales: sales@rt.progeny.com
sales-comment: sales-comment@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@rt.progeny.com
rt2-comment: rt2-comment@rt.progeny.com
support2: support2@rt.progeny.com
support2-comment: support2-comment@rt.progeny.com
custserv2: custserv2@rt.progeny.com
custserv2-comment: custserv2-comment@rt.progeny.com
sysadmin2: sysadmin2@rt.progeny.com
sysadmin2-comment: sysadmin2-comment@rt.progeny.com
sales2: sales2@rt.progeny.com
sales2-comment: sales2-comment@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@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