Re: [rt-users] RT Bounces
Brett, 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@ . (line 509 of Email.pm) # Warn someone if it's a loop, before we drop it on the ground if ($IsALoop) { my $MessageId = Encode::decode( "UTF-8", $head->get('Message-ID') ); $RT::Logger->crit("RT Received mail ($MessageId) from itself."); On Thu, Jan 19, 2017 at 11:15 PM, Brett Chambers <bchamb...@ambertech.com.au > wrote: > Dunno if this helps or not, but maybe the bounce is due to it detecting a > loop? > > > > [18000] [Fri Jan 20 04:29:36 2017] [critical]: RT Received mail > (<CAM32JiSrEQj1+E62+mYaSbi2r+pq=kxaqc_eb9lbqdlzgts...@mail.gmail.com> > ) from itself. (/opt/rt4/sbin/../lib/RT/Interface/Email.pm:506) > > > > Try and take a look at /opt/rt4/lib/RT/Interface/Email.pm around the line > numbers reported. > > Not suggesting you change anything, looking might give you a few clues… > > > > You didn’t specify a version – this is what I see in 4.2.12. > > > > > > #if it's from a postmaster or mailer daemon, it's likely a bounce. > > > > #TODO: better algorithms needed here - there is no standards for > > #bounces, so it's very difficult to separate them from anything > > #else. At the other hand, the Return-To address is only ment to be > > #used as an error channel, we might want to put up a separate > > #Return-To address which is treated differently. > > > > #TODO: search through the whole email and find the right Ticket ID. > > > > > > > > Checks the message to see if it's a bounce, if it looks like a loop, if > it's autogenerated, etc. > > Returns a triple of ("Should we continue (boolean)", "New value for > $ErrorsTo", "Status message", > > "This message appears to be a loop (boolean)" ); > > > > > > > > # send mail to the sender > > if ( $IsBounce || $IsSuspiciousSender || $IsAutoGenerated || $IsALoop > ) { > > $SquelchReplies = 1; > > $ErrorsTo = $owner_mail; > > } > > > > # Warn someone if it's a loop, before we drop it on the ground > > if ($IsALoop) { > > $RT::Logger->crit("RT Received mail (".$args{MessageId}.") from > itself."); > > > > #Should we mail it to RTOwner? > > if ( RT->Config->Get('LoopsToRTOwner') ) { > > MailError( > > To => $owner_mail, > >Subject => "RT Bounce: ".$args{'Subject'}, > > Explanation => "RT thinks this message may be a bounce", > > MIMEObj => $args{Message} > > ); > > } > > > > #Do we actually want to store it? > > return ( 0, $ErrorsTo, "Message Bounced", $IsALoop ) > > unless RT->Config->Get('StoreLoops'); > > } > > > > > > Anyway, just a thought. > > If it is a bounce loop, might be related to SSL/certificates? > > > > Regards, > > Brett > > > > > > *From:* rt-users [mailto:rt-users-boun...@lists.bestpractical.com] *On > Behalf Of *Jayson Antillon > *Sent:* Friday, 20 January 2017 3:34 PM > *To:* rt-users@lists.bestpractical.com > *Subject:* [rt-users] RT Bounces > > > > Hello, > > 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 > incid...@rt.mydomain.com and incident-comme...@rt.mydomain.com configured > in /etc/aliases, any response to the autogenerated emails or new emails to > sent to incid...@rt.mydomains.com are showing bounces. > > I will include as much information as I have seen asked for in other > posts. > > /etc/aliases > > > # See man 5 aliases for format > incident: "|/opt/rt4/bin/rt-mailgate --queue 'Incident Reports' > --no-verify-ssl --action correspond --url https://rt.mydomain.com; > incident-comments: "|/opt/rt4/bin/rt-mailgate --queue '
Re: [rt-users] RT Bounces
Dunno if this helps or not, but maybe the bounce is due to it detecting a loop? [18000] [Fri Jan 20 04:29:36 2017] [critical]: RT Received mail (<CAM32JiSrEQj1+E62+mYaSbi2r+pq=kxaqc_eb9lbqdlzgts...@mail.gmail.com <mailto:kxaqc_eb9lbqdlzgts%2...@mail.gmail.com> > ) from itself. (/opt/rt4/sbin/../lib/RT/Interface/Email.pm:506) Try and take a look at /opt/rt4/lib/RT/Interface/Email.pm around the line numbers reported. Not suggesting you change anything, looking might give you a few clues… You didn’t specify a version – this is what I see in 4.2.12. #if it's from a postmaster or mailer daemon, it's likely a bounce. #TODO: better algorithms needed here - there is no standards for #bounces, so it's very difficult to separate them from anything #else. At the other hand, the Return-To address is only ment to be #used as an error channel, we might want to put up a separate #Return-To address which is treated differently. #TODO: search through the whole email and find the right Ticket ID. Checks the message to see if it's a bounce, if it looks like a loop, if it's autogenerated, etc. Returns a triple of ("Should we continue (boolean)", "New value for $ErrorsTo", "Status message", "This message appears to be a loop (boolean)" ); # send mail to the sender if ( $IsBounce || $IsSuspiciousSender || $IsAutoGenerated || $IsALoop ) { $SquelchReplies = 1; $ErrorsTo = $owner_mail; } # Warn someone if it's a loop, before we drop it on the ground if ($IsALoop) { $RT::Logger->crit("RT Received mail (".$args{MessageId}.") from itself."); #Should we mail it to RTOwner? if ( RT->Config->Get('LoopsToRTOwner') ) { MailError( To => $owner_mail, Subject => "RT Bounce: ".$args{'Subject'}, Explanation => "RT thinks this message may be a bounce", MIMEObj => $args{Message} ); } #Do we actually want to store it? return ( 0, $ErrorsTo, "Message Bounced", $IsALoop ) unless RT->Config->Get('StoreLoops'); } Anyway, just a thought. If it is a bounce loop, might be related to SSL/certificates? Regards, Brett From: rt-users [mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of Jayson Antillon Sent: Friday, 20 January 2017 3:34 PM To: rt-users@lists.bestpractical.com Subject: [rt-users] RT Bounces Hello, 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 incid...@rt.mydomain.com <mailto:incid...@rt.mydomain.com> and incident-comme...@rt.mydomain.com <mailto:incident-comme...@rt.mydomain.com> configured in /etc/aliases, any response to the autogenerated emails or new emails to sent to incid...@rt.mydomains.com <mailto:incid...@rt.mydomains.com> are showing bounces. I will include as much information as I have seen asked for in other posts. /etc/aliases # See man 5 aliases for format incident: "|/opt/rt4/bin/rt-mailgate --queue 'Incident Reports' --no-verify-ssl --action correspond --url https://rt.mydomain.com; incident-comments: "|/opt/rt4/bin/rt-mailgate --queue 'Incident Reports' --no-verify-ssl --action comment --url https://rt.mydomain.com; Bounce message: >From MAILER-DAEMON Thu Jan 19 22:11:35 2017 Return-Path: <> X-Original-To: jayson Delivered-To: jay...@rt.mydomain.com <mailto:jay...@rt.mydomain.com> Received: by rt.mydomain.com <http://rt.mydomain.com> (Postfix, from userid 33) id AEF0A140AB8; Thu, 19 Jan 2017 22:11:35 -0600 (CST) Content-Type: multipart/mixed; boundary="--=_1484885495-18000-19" Content-Transfer-Encoding: binary MIME-Version: 1.0 X-Mailer: MIME-tools 5.508 (Entity 5.508) To: jay...@rt.mydomain.com <mailto:jay...@rt.mydomain.com> Precedence: bulk Subject: RT Bounce: From: incid...@rt.mydomain.com <mailto:incid...@rt.mydomain.com> Date: Thu, 19 Jan 2017 22:11:35 -0600 Message-Id: <20170120041135.aef0a140...@rt.mydomain.com <mailto:20170120041135.aef0a140...@rt.mydomain.com> > This is a multi-part message in MIME format... =_1484885495-18000-19 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: binary RT thinks this message may be a bounce =_1484885495-18000-19-- mail log from rt server Jan 19 22:21:25 rt postfix/smtpd[18877]: connect from mail-yw0-f180.google.com <http://mail-y
[rt-users] RT Bounces
Hello, 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 incid...@rt.mydomain.com and incident-comme...@rt.mydomain.com configured in /etc/aliases, any response to the autogenerated emails or new emails to sent to incid...@rt.mydomains.com are showing bounces. I will include as much information as I have seen asked for in other posts. /etc/aliases # See man 5 aliases for format incident: "|/opt/rt4/bin/rt-mailgate --queue 'Incident Reports' --no-verify-ssl --action correspond --url https://rt.mydomain.com; incident-comments: "|/opt/rt4/bin/rt-mailgate --queue 'Incident Reports' --no-verify-ssl --action comment --url https://rt.mydomain.com; Bounce message: >From MAILER-DAEMON Thu Jan 19 22:11:35 2017 Return-Path: <> X-Original-To: jayson Delivered-To: jay...@rt.mydomain.com Received: by rt.mydomain.com (Postfix, from userid 33) id AEF0A140AB8; Thu, 19 Jan 2017 22:11:35 -0600 (CST) Content-Type: multipart/mixed; boundary="--=_1484885495-18000-19" Content-Transfer-Encoding: binary MIME-Version: 1.0 X-Mailer: MIME-tools 5.508 (Entity 5.508) To: jay...@rt.mydomain.com Precedence: bulk Subject: RT Bounce: From: incid...@rt.mydomain.com Date: Thu, 19 Jan 2017 22:11:35 -0600 Message-Id: <20170120041135.aef0a140...@rt.mydomain.com> This is a multi-part message in MIME format... =_1484885495-18000-19 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: binary RT thinks this message may be a bounce =_1484885495-18000-19-- mail log from rt server Jan 19 22:21:25 rt postfix/smtpd[18877]: connect from mail-yw0-f180.google.com[209.85.161.180] Jan 19 22:21:26 rt postfix/smtpd[18877]: 05F14140AAD: client= mail-yw0-f180.google.com[209.85.161.180] Jan 19 22:21:26 rt postfix/cleanup[18881]: 05F14140AAD: