<div dir="ltr"><div><div>Brett,<br><br></div>That is what the error is indicating, I just cannot seem to determine where the loop is. If I misconfigured the queue, or if it was in RT_Siteconfig. Also it is 4.4.1 on Ubuntu 14.04.  I am quite sure it is a misconfiguration on my part but (i tried with RTAddressRegexp configured for the queue addresses and without), I know outbound mail is sent when creating the tickets from incident@ when opened in that queue, should it be something more generic like rt@ . <br><br></div><div>(line 509 of Email.pm)<br></div><div># Warn someone if it's a loop, before we drop it on the ground<br>    if ($IsALoop) {<br>        my $MessageId = Encode::decode( "UTF-8", $head->get('Message-ID') );<br>        $RT::Logger->crit("RT Received mail ($MessageId) from itself.");<br><br></div><div></snip><br><br></div><div> <br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 19, 2017 at 11:15 PM, Brett Chambers <span dir="ltr"><<a href="mailto:bchambers@ambertech.com.au" target="_blank">bchambers@ambertech.com.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="blue" vlink="purple" lang="EN-AU"><div class="m_-1274677984591390082WordSection1"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Dunno if this helps or not, but maybe the bounce is due to it detecting a loop?<u></u><u></u></span></p><span class=""><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal">[18000] [Fri Jan 20 04:29:36 2017] [critical]: <span style="color:red">RT Received mail </span>(<CAM32JiSrEQj1+E62+mYaSbi2r+<wbr>pq=<a href="mailto:kxAqC_EB9LBQDLzgts%2BHw@mail.gmail.com" target="_blank">kxAqC_EB9LBQDLzgts+Hw@mail.<wbr>gmail.com</a>><br>) <span style="color:red">from itself. </span>(/opt/rt4/sbin/../lib/RT/<wbr>Interface/Email.pm:506)<span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p></span><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Try and take a look at </span><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d">/opt/rt4/lib/RT/Interface/<wbr>Email.pm </span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">around the line numbers reported.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Not suggesting you change anything, looking might give you a few clues…<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">You didn’t specify a version – this is what I see in 4.2.12.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d"><snip><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d">    #if it's from a postmaster or mailer daemon, it's likely a bounce.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d">    #TODO: better algorithms needed here - there is no standards for<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d">    #bounces, so it's very difficult to separate them from anything<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d">    #else.  At the other hand, the Return-To address is only ment to be<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d">    #used as an error channel, we might want to put up a separate<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d">    #Return-To address which is treated differently.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d">    #TODO: search through the whole email and find the right Ticket ID.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d"><snip><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d"><snip><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d">Checks the message to see if it's a bounce, if it looks like a loop, if it's autogenerated, etc.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d">Returns a triple of ("Should we continue (boolean)", "New value for $ErrorsTo", "Status message",<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d">"This message appears to be a loop (boolean)" );<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d"><snip><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d"><snip><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d">    # send mail to the sender<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d">    if ( $IsBounce || $IsSuspiciousSender || $IsAutoGenerated || $IsALoop ) {<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d">        $SquelchReplies = 1;<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d">        $ErrorsTo       = $owner_mail;<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d">    }<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d">    # Warn someone if it's a loop, before we drop it on the ground<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d">    if ($IsALoop) {<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d">        $RT::Logger->crit("RT Received mail (".$args{MessageId}.") from itself.");<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d">        #Should we mail it to RTOwner?<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d">        if ( RT->Config->Get('<wbr>LoopsToRTOwner') ) {<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d">            MailError(<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d">                To          => $owner_mail,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d">                Subject     => "RT Bounce: ".$args{'Subject'},<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d">                Explanation => "RT thinks this message may be a bounce",<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d">                MIMEObj     => $args{Message}<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d">            );<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d">        }<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d">        #Do we actually want to store it?<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d">        return ( 0, $ErrorsTo, "Message Bounced", $IsALoop )<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d">            unless RT->Config->Get('StoreLoops');<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d">    }<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";color:#1f497d"><snip><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Anyway, just a thought.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">If it is a bounce loop, might be related to SSL/certificates?<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Regards,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Brett<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US"> rt-users [mailto:<a href="mailto:rt-users-bounces@lists.bestpractical.com" target="_blank">rt-users-bounces@<wbr>lists.bestpractical.com</a>] <b>On Behalf Of </b>Jayson Antillon<br><b>Sent:</b> Friday, 20 January 2017 3:34 PM<br><b>To:</b> <a href="mailto:rt-users@lists.bestpractical.com" target="_blank">rt-users@lists.bestpractical.<wbr>com</a><br><b>Subject:</b> [rt-users] RT Bounces<u></u><u></u></span></p><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><div><div><div><div><div><div><div><div><div><div><div><div><p class="MsoNormal" style="margin-bottom:12.0pt">Hello,<u></u><u></u></p></div><p class="MsoNormal" style="margin-bottom:12.0pt">I have searched through the list archives, and read a ton of posts regarding bounces but have not been able narrow down what issue I am having specifically.  I have not modified any scrips from default.  Have one queue that is in use "Incident Reports', with the addresses <a href="mailto:incident@rt.mydomain.com" target="_blank">incident@rt.mydomain.com</a> and <a href="mailto:incident-comments@rt.mydomain.com" target="_blank">incident-comments@rt.mydomain.<wbr>com</a> configured in /etc/aliases, any response to the autogenerated emails or new emails to sent to <a href="mailto:incident@rt.mydomains.com" target="_blank">incident@rt.mydomains.com</a> are showing bounces.<u></u><u></u></p></div><p class="MsoNormal" style="margin-bottom:12.0pt">I will include as much information as I have seen asked for in other  posts.<br><br><u></u><u></u></p></div><div><p class="MsoNormal">/etc/aliases<u></u><u></u></p></div><div><p class="MsoNormal"><snip><br># See man 5 aliases for format<br>incident:         "|/opt/rt4/bin/rt-mailgate --queue 'Incident Reports' --no-verify-ssl --action correspond --url <a href="https://rt.mydomain.com" target="_blank">https://rt.mydomain.com</a>"<br>incident-comments:         "|/opt/rt4/bin/rt-mailgate --queue 'Incident Reports'  --no-verify-ssl --action comment  --url <a href="https://rt.mydomain.com" target="_blank">https://rt.mydomain.com</a>"<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><p class="MsoNormal" style="margin-bottom:12.0pt">Bounce message:<u></u><u></u></p></div><p class="MsoNormal" style="margin-bottom:12.0pt"><snip><br><br>From MAILER-DAEMON  Thu Jan 19 22:11:35 2017<br>Return-Path: <><br>X-Original-To: jayson<br>Delivered-To: <a href="mailto:jayson@rt.mydomain.com" target="_blank">jayson@rt.mydomain.com</a><br>Received: by <a href="http://rt.mydomain.com" target="_blank">rt.mydomain.com</a> (Postfix, from userid 33)<br>        id AEF0A140AB8; Thu, 19 Jan 2017 22:11:35 -0600 (CST)<br>Content-Type: multipart/mixed; boundary="----------=_<wbr>1484885495-18000-19"<br>Content-Transfer-Encoding: binary<br>MIME-Version: 1.0<br>X-Mailer: MIME-tools 5.508 (Entity 5.508)<br>To: <a href="mailto:jayson@rt.mydomain.com" target="_blank">jayson@rt.mydomain.com</a><br>Precedence: bulk<br>Subject: RT Bounce:<br>From: <a href="mailto:incident@rt.mydomain.com" target="_blank">incident@rt.mydomain.com</a><br>Date: Thu, 19 Jan 2017 22:11:35 -0600<br>Message-Id: <<a href="mailto:20170120041135.AEF0A140AB8@rt.mydomain.com" target="_blank">20170120041135.AEF0A140AB8@<wbr>rt.mydomain.com</a>><br><br>This is a multi-part message in MIME format...<br><br>------------=_1484885495-<wbr>18000-19<br>Content-Type: text/plain; charset="UTF-8"<br>Content-Disposition: inline<br>Content-Transfer-Encoding: binary<br><br>RT thinks this message may be a bounce<br><br>------------=_1484885495-<wbr>18000-19--<br><br><u></u><u></u></p></div><p class="MsoNormal" style="margin-bottom:12.0pt"></snip><u></u><u></u></p></div><p class="MsoNormal" style="margin-bottom:12.0pt">mail log from rt server <br><br>Jan 19 22:21:25 rt postfix/smtpd[18877]: connect from <a href="http://mail-yw0-f180.google.com" target="_blank">mail-yw0-f180.google.com</a>[209.<wbr>85.161.180]<br>Jan 19 22:21:26 rt postfix/smtpd[18877]: 05F14140AAD: client=<a href="http://mail-yw0-f180.google.com" target="_blank">mail-yw0-f180.google.<wbr>com</a>[209.85.161.180]<br>Jan 19 22:21:26 rt postfix/cleanup[18881]: 05F14140AAD: message-id=<CAM32JiToL_cmdW72=<wbr>D-_PPu_zfHR7UbcNCvF8NEt=<a href="mailto:bKkYm8WqQ@mail.gmail.com" target="_blank">bKkYm8<wbr>WqQ@mail.gmail.com</a>><br>Jan 19 22:21:26 rt postfix/qmgr[13852]: 05F14140AAD: from=<<a href="mailto:jayson@private.com" target="_blank">jayson@private.com</a>>, size=2522, nrcpt=1 (queue active)<br>Jan 19 22:21:26 rt postfix/smtpd[18877]: disconnect from <a href="http://mail-yw0-f180.google.com" target="_blank">mail-yw0-f180.google.com</a>[209.<wbr>85.161.180]<br>Jan 19 22:21:26 rt postfix/local[18882]: 05F14140AAD: to=<<a href="mailto:incident@rt.mydomain.com" target="_blank">incident@rt.mydomain.com</a>>, relay=local, delay=0.93, delays=0.56/0.02/0/0.35, dsn=2.0.0, status=sent (delivered to command: /opt/rt4/bin/rt-mailgate --queue 'Incident Reports' --no-verify-ssl --action correspond --url <a href="https://rt.mydomain.com" target="_blank">https://rt.mydomain.com</a><u></u><u></u></p></div><p class="MsoNormal" style="margin-bottom:12.0pt"></snip><u></u><u></u></p></div><p class="MsoNormal" style="margin-bottom:12.0pt">RT Mail gate test from commandline:<br><br>root@rt:/opt/rt4/etc# cat /usr/bin/test | /opt/rt4/bin/rt-mailgate --debug --queue 'Incident Reports' --url <a href="http://rt.mydomain.com" target="_blank">http://rt.mydomain.com</a><br>/opt/rt4/bin/rt-mailgate: temp file is '/tmp/CWFzDoGg58/O86pl2Sf7i'<br>/opt/rt4/bin/rt-mailgate: connecting to <a href="http://rt.mydomain.com/REST/1.0/NoAuth/mail-gateway" target="_blank">http://rt.mydomain.com/REST/1.<wbr>0/NoAuth/mail-gateway</a><br>not ok - Message is a bounce<u></u><u></u></p></div><p class="MsoNormal" style="margin-bottom:12.0pt"></snip><u></u><u></u></p></div><p class="MsoNormal" style="margin-bottom:12.0pt">RT_SiteConfig.pm:<br><br>use utf8;<br>Plugin('RT::IR');<br>Plugin('RT::Extension::<wbr>ResetPassword');<br>Set( $rtname, '<a href="http://mydomain.com" target="_blank">mydomain.com</a>');<br>Set( $Organization, '<a href="http://rt.mydsomain.com" target="_blank">rt.mydomain.com</a>');<br>Set( $Timezone, 'US/Central');<br>Set( $WebDomain, '<a href="http://rt.reyesautomotive.com" target="_blank">rt.mydomain.com</a>');<br>Set( $WebPort, 443);<br>Set( $WebPath, '');<br>Set($CorrespondAddress, '<a href="mailto:incident@rt.reyesautomotive.com" target="_blank">incident@rt.mydomain.com</a>');<br>Set($CommentAddress, '<a href="mailto:incident-comments@rt.reyesautomotive.com" target="_blank">incident-comments@rt.<wbr>mydomain.com</a>');<br>Set($LogToFile,      'debug');<br>Set($LogToFileNamed, "rt.log");    #log to rt.log<br>Set($LogDir,    '/opt/rt4/var/log');<br>#Set($RTAddressRegexp,qr{^(?:<wbr>incident(?:-comment|-comments|<wbr>)\@rt\.mydomain\.com)$}i);<br>Set($OwnerEmail, 'jayson');<br>Set($LoopsToRTOwner, 1);<br># You must install Plugins on your own, this is only an example<br># of the correct syntax to use when activating them:<br>#     Plugin( "RT::Authen::ExternalAuth" );<br><br><br><br><u></u><u></u></p></div><p class="MsoNormal" style="margin-bottom:12.0pt">rt.log<br><br><br>[18000] [Fri Jan 20 04:29:36 2017] [debug]: Converting 'utf-8' to 'utf-8' for text/plain - Subjectless message (/opt/rt4/sbin/../lib/RT/I18N.<wbr>pm:289)<br>[18000] [Fri Jan 20 04:29:36 2017] [debug]: Converting 'utf-8' to 'utf-8' for text/html - Subjectless message (/opt/rt4/sbin/../lib/RT/I18N.<wbr>pm:289)<br>[18000] [Fri Jan 20 04:29:36 2017] [debug]: Encode::Guess guessed encoding: ascii (/opt/rt4/sbin/../lib/RT/I18N.<wbr>pm:568)<br>[18000] [Fri Jan 20 04:29:36 2017] [debug]: Encode::Guess guessed encoding: ascii (/opt/rt4/sbin/../lib/RT/I18N.<wbr>pm:568)<br>[18000] [Fri Jan 20 04:29:36 2017] [critical]: RT Received mail (<CAM32JiSrEQj1+E62+mYaSbi2r+<wbr>pq=<a href="mailto:kxAqC_EB9LBQDLzgts%2BHw@mail.gmail.com" target="_blank">kxAqC_EB9LBQDLzgts+Hw@mail.<wbr>gmail.com</a>><br>) from itself. (/opt/rt4/sbin/../lib/RT/<wbr>Interface/Email.pm:506)<br>[18000] [Fri Jan 20 04:29:36 2017] [crit]: RT Bounce: Test: RT thinks this message may be a bounce (/opt/rt4/sbin/../lib/RT/<wbr>Interface/Email.pm:698)<br><br><u></u><u></u></p></div></div></div></div></div></blockquote></div><br></div>