<div>We are a small setup. I would like to avoid setting up the extra fetch mail step. All outgoing emails from RT server are working. Emails sent into RT from exchange server (inbound via email) are not working. They are not reaching the RT server.</div>
<div> </div><div>Any ideas about troubleshooting this will be appreciated.</div><div> </div><div>Thanks so much!<br></div><div class="gmail_quote">On Fri, Nov 16, 2012 at 2:46 PM, Edsall, William (WJ) <span dir="ltr"><<a href="mailto:WJEdsall@dow.com" target="_blank">WJEdsall@dow.com</a>></span> wrote:<br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">





<div lang="EN-US" vlink="purple" link="blue">
<div>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt">I stand corrected, it does not have to be a manual download of mail.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt"><br>
This is just what worked for me, using exchange. In our environment I have very little control over the exchange setup, so I went the route of fetching the mail myself.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt"><u></u> <u></u></span></p>
<div style="border-width:1pt medium medium;border-style:solid none none;border-color:rgb(181,196,223) currentColor currentColor;padding:3pt 0in 0in">
<p class="MsoNormal"><b><span style="font-family:"Tahoma","sans-serif";font-size:10pt">From:</span></b><span style="font-family:"Tahoma","sans-serif";font-size:10pt"> testwreq wreq [mailto:<a href="mailto:testwreq@gmail.com" target="_blank">testwreq@gmail.com</a>]
<br>
<b>Sent:</b> Friday, November 16, 2012 2:28 PM<br>
<b>To:</b> Edsall, William (WJ)<br>
<b>Cc:</b> <a href="mailto:rt-users@lists.bestpractical.com" target="_blank">rt-users@lists.bestpractical.com</a>; <a href="mailto:rt-users-request@lists.bestpractical.com" target="_blank">rt-users-request@lists.bestpractical.com</a><br>

<b>Subject:</b> Re: [rt-users] RT 4.0.8 still not receiving incoming tickets via email on ubuntu<u></u><u></u></span></p>
</div><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">I apoligize that things are not clear to me on the mail side.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p style="margin-bottom:12pt" class="MsoNormal">According to RT documentation, we should have MTA e.g. sendmail and it can be configured for incoming or outgoing emails. Then why do we need fetchmail? Is this necessary?<u></u><u></u></p>

</div>
<div>
<p class="MsoNormal">On Fri, Nov 16, 2012 at 1:22 PM, Edsall, William (WJ) <<a href="mailto:WJEdsall@dow.com" target="_blank">WJEdsall@dow.com</a>> wrote:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt">Incoming mail is a manual process to grab the mail from exchange, then pass it through mailgate.</span><u></u><u></u></p>

<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt">Here’s what I used to achieve incoming mails via Exchange.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt">I used fetchmail with the IMAP protocol – also the ssl flag was necessary for our server.</span><u></u><u></u></p>

<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt">Fetchmail command:</span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt">fetchmail -f /var/www/html/rt/bin/fetchmailrc --ssl -B 10 --nokeep</span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt">While testing fetchmail I used the –c flag so it would just check the mailbox. Upon success it will
 give you a count of the number of emails in the box. Also use the –v for verbose output while testing.
</span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt">Until this command reflects a successful connection to your email server, it’s not going to work.
</span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt">Example fetchmailrc -- replace all <vars> with your own values:</span><u></u><u></u></p>

<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt">poll <Your_Exchange_Server> protocol imap:</span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt">username <USERNAME_HERE> password <PASSWORD_HERE> mda "/var/www/html/rt/bin/rt-mailgate --url http://<Your
 RT URL> --queue ‘<queue name here>' --action correspond"</span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt">Once you get the settings correct, toss the fetchmail script into crontab and have it check regularly.</span><u></u><u></u></p>

<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt"> </span><u></u><u></u></p>
<div style="border-width:1pt medium medium;border-style:solid none none;border-color:currentColor;padding:3pt 0in 0in">
<p class="MsoNormal"><b><span style="font-family:"Tahoma","sans-serif";font-size:10pt">From:</span></b><span style="font-family:"Tahoma","sans-serif";font-size:10pt">
<a href="mailto:rt-users-bounces@lists.bestpractical.com" target="_blank">rt-users-bounces@lists.bestpractical.com</a> [mailto:<a href="mailto:rt-users-bounces@lists.bestpractical.com" target="_blank">rt-users-bounces@lists.bestpractical.com</a>]
<b>On Behalf Of </b>testwreq wreq<br>
<b>Sent:</b> Friday, November 16, 2012 1:13 PM<br>
<b>To:</b> <a href="mailto:rt-users@lists.bestpractical.com" target="_blank">rt-users@lists.bestpractical.com</a>;
<a href="mailto:rt-users-request@lists.bestpractical.com" target="_blank">rt-users-request@lists.bestpractical.com</a><br>
<b>Subject:</b> [rt-users] RT 4.0.8 still not receiving incoming tickets via email on ubuntu</span><u></u><u></u></p>
</div>
<div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal">I have had problems with incoming tickets not being received into RT.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><br>
My setup is: <br>
<br>
ubuntu RT server  12.4<br>
sendmail is the MTA <br>
<br>
Emails sent from the exchange server (domain X) into RTserver<br>
Emails sent from RT to exchange (outgoing) are working<br>
Emails sent into RT from exchange server (inbound) are not working. /var/log/mail.log does not have any entry for this. I am not sure if the mail is reaching the RT server. Is there any configuration required for rt-mailgate? sendmails /etc/aliases has the
 correspondence address for general queue already setup. <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><br>
Could anyone shed some light please? <br>
<br>
Many thanks.<u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div></div></div>
</div>

</blockquote></div><br>