<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6556.0">
<TITLE>[rt-users] Setting up Postfix/mailgate on Gentoo</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">I am using RT 3.2.0 on Gentoo Linux. I have been trying to setup Postfix (MTA) to accept email which creates tickets in RT.</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">In</FONT></SPAN><SPAN LANG="en-us"><I></I></SPAN><SPAN LANG="en-us"><I> <FONT SIZE=2 FACE="Courier New">/etc/mail/aliases</FONT></I></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">, when I have </FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><B><FONT SIZE=2 FACE="Courier New">it_test: it_test</FONT></B></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">where</FONT></SPAN><SPAN LANG="en-us"><I></I></SPAN><SPAN LANG="en-us"><I> <FONT SIZE=2 FACE="Courier New">it_test</FONT></I></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New"> is a local system user (not an RT user though), it accepts mail sent to</FONT></SPAN><SPAN LANG="en-us"><I></I></SPAN><SPAN LANG="en-us"><I> <FONT SIZE=2 FACE="Courier New">it_test@...</FONT></I></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">However, when I then put the mailgate info in:</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><B><FONT SIZE=2 FACE="Courier New">it_test: "|/[...]/bin/rt-mailgate --queue ITTest -action correspond --url</FONT></B></SPAN><SPAN LANG="en-us"> </SPAN><A HREF="http://[hostname"><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Error! Hyperlink reference not valid.</FONT></SPAN><SPAN LANG="en-us"></SPAN></A><SPAN LANG="en-us"><B></B></SPAN><SPAN LANG="en-us"><B><FONT SIZE=2 FACE="Courier New"> omitted]/"</FONT></B></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Where ITTest is an existing queue, I get an Undeliverable with this error:</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><B><FONT SIZE=2 FACE="Courier New">< [hostname omitted] #5.0.0 X-Postfix; Command died with status 1: " /[...]/bin/rt-mailgate --queue ITTest --action correspond --url </FONT></B></SPAN><SPAN LANG="en-us"> </SPAN><A HREF="http://[hostname"><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Error! Hyperlink reference not valid.</FONT></SPAN><SPAN LANG="en-us"></SPAN></A><SPAN LANG="en-us"><B></B></SPAN><SPAN LANG="en-us"><B><FONT SIZE=2 FACE="Courier New"> omitted]/"></FONT></B></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">According to the rt-mailgate perldoc, </FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><B><FONT SIZE=2 FACE="Courier New">"However, you will need first of all to create an RT user for the mail gateway and assign it a password; this helps to ensure that mail coming into the web server did originate from the gateway."</FONT></B></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Since it doesn't say whether I need to use a particular username or set any special permissions, (or where I would tell the mailgate which username to use) I have created a user</FONT></SPAN><SPAN LANG="en-us"><I></I></SPAN><SPAN LANG="en-us"><I> <FONT SIZE=2 FACE="Courier New">'rt-mailgate'</FONT></I></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New"> and a user</FONT></SPAN><SPAN LANG="en-us"><I></I></SPAN><SPAN LANG="en-us"><I> <FONT SIZE=2 FACE="Courier New">'it_test'</FONT></I></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New"> (same name as the user receiving the mail). Neither of these worked. So what am I missing? Is there a particular format required of those emails that I haven't found in the documentation? Is there special permissions that one of the users need to some area of the RT arch or special configuration on the ITTest queue itself?</FONT></SPAN></P>
<BR>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Thanks,</FONT></SPAN></P>
<BR>
<BR>
<BR>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Ryan Roland</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Application Developer</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Information Technology</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Division of Recreational Sports</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Indiana University</FONT></SPAN><SPAN LANG="en-us"></SPAN></P>
</BODY>
</HTML>