Hello,<br><br>I'm trying to configure RT4 so that it will be possible to create ticket from email. The mail server and RT are running on the same server.<br>I'm running on RHEL5, so I've copy /opt/rt4/bin/rt-mailgate to /etc/smrsh/rt-mailgate<br>

<br>I've update the /etc/aliases file with this line : <br>rtest:    "|/etc/smrsh/rt-mailgate --queue General --action correspond --url http:/x.x.x.x:8080"<br><br>rtest is the username of an existing RT user. In the WEB interface, I've granted the group 'Everyone' for the 'General' queue (Create a ticket and Reply to ).<br>

In addition in RT_SiteConfig.pm I've added this line : Set($WebExternalAuto, 1);<br><br>But when I try to send a mail through the command " /etc/smrsh/rt-mailgate --queue General --action correspond --url <a href="http://x.x.x.x:8080">http://x.x.x.x:8080</a> --debug < /root/testmsg"<br>

i get this error from the mailgate debug : <br>/etc/smrsh/rt-mailgate: temp file is '/tmp/EwqftI9qgS/E83e2Ts_i_'<br>/etc/smrsh/rt-mailgate: connecting to <a href="http://203.0.57.51:8080/REST/1.0/NoAuth/mail-gateway">http://203.0.57.51:8080/REST/1.0/NoAuth/mail-gateway</a><br>

not ok - Could not load a valid user<br><br>and this in the logs provided by "/opt/rt4/sbin/rt-server" : <br>[Mon Jan  2 10:50:14 2012] [warning]: Use of uninitialized value $From in pattern match (m//) at /opt/rt4/sbin/../lib/RT/Interface/Email.pm line 151. (/opt/rt4/sbin/../lib/RT/Interface/Email.pm:151)<br>

[Mon Jan  2 10:50:14 2012] [warning]: Use of uninitialized value $From in pattern match (m//) at /opt/rt4/sbin/../lib/RT/Interface/Email.pm line 151. (/opt/rt4/sbin/../lib/RT/Interface/Email.pm:151)<br>[Mon Jan  2 10:50:14 2012] [warning]: Use of uninitialized value $From in string eq at /opt/rt4/sbin/../lib/RT/Interface/Email.pm line 151. (/opt/rt4/sbin/../lib/RT/Interface/Email.pm:151)<br>

[Mon Jan  2 10:50:14 2012] [warning]: Use of uninitialized value $line in pattern match (m//) at /usr/local/share/perl5/Mail/Header.pm line 174. (/usr/local/share/perl5/Mail/Header.pm:174)<br>[Mon Jan  2 10:50:14 2012] [warning]: Use of uninitialized value $line in substitution (s///) at /usr/local/share/perl5/Mail/Header.pm line 176. (/usr/local/share/perl5/Mail/Header.pm:176)<br>

[Mon Jan  2 10:50:14 2012] [warning]: Use of uninitialized value $line in substitution (s///) at /usr/local/share/perl5/Mail/Header.pm line 176. (/usr/local/share/perl5/Mail/Header.pm:176)<br>[Mon Jan  2 10:50:14 2012] [error]: Couldn't find sender's address (/opt/rt4/sbin/../lib/RT/Interface/Email/Auth/MailFrom.pm:71)<br>

[Mon Jan  2 10:50:14 2012] [error]: Could not record email: Could not load a valid user (/opt/rt4/share/html/REST/1.0/NoAuth/mail-gateway:75)<br><br><br>I've probably missed something during the configuration. Does anyone have a clue?<br>

<br>Thanking you in advance,<br>Best regards,<br>Ronan<br>