<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hello!</p>
    <p>   I'm using RT 4.4.1 sitting behind Kolab 16 as a mail server.
      This includes amavisd-new as a filter, and this combination causes
      bounces to RT occasionally... and my customers aren't getting my
      replies!</p>
    <p>   If I send an email to an RT ticket, which I am the owner of,
      RT sends an email on my behalf to the requestor (as it should).
      Unfortunately, amavisd-new sometimes sees 2 "Sender" headers and
      rejects the email which creates a new ticket in RT with the bounce
      reason. Here' the header-1.hdr attachment that amavis replies
      with:</p>
    <blockquote>
      <pre>Return-Path: <a class="moz-txt-link-rfc2396E" href="mailto:support@example.com"><support@example.com></a>
Sender: <a class="moz-txt-link-abbreviated" href="mailto:steve@example.com">steve@example.com</a>
MIME-Version: 1.0
Content-Type: multipart/alternative;
 boundary="=_b308d10660951d296cc57d268c770c5f"
Sender: Stephen Switzer <a class="moz-txt-link-rfc2396E" href="mailto:steve@example.com"><steve@example.com></a>
Date: Mon, 19 Dec 2016 23:55:55 -0500
From: "RT, Support" <a class="moz-txt-link-rfc2396E" href="mailto:support@example.com"><support@example.com></a>
To: <a class="moz-txt-link-abbreviated" href="mailto:support@example.com">support@example.com</a>
Subject: Re: [SBS #99845] Laptop will not connect to the internet
In-Reply-To: <a class="moz-txt-link-rfc2396E" href="mailto:rt-4.4.1-1416-1482202966-319.99845-8-0@example.com"><rt-4.4.1-1416-1482202966-319.99845-8-0@example.com></a>
References: <a class="moz-txt-link-rfc2396E" href="mailto:RT-Ticket-99845@example.com"><RT-Ticket-99845@example.com></a>
 <a class="moz-txt-link-rfc2396E" href="mailto:CY4PR10MB16247C062AD6E90C674E7AE1B4900@CY4PR10MB1624.namprd10.prod.outlook.com"><CY4PR10MB16247C062AD6E90C674E7AE1B4900@CY4PR10MB1624.namprd10.prod.outlook.com></a>
 <a class="moz-txt-link-rfc2396E" href="mailto:rt-4.4.1-1416-1482202966-319.99845-8-0@example.com"><rt-4.4.1-1416-1482202966-319.99845-8-0@example.com></a>
Message-ID: <a class="moz-txt-link-rfc2396E" href="mailto:a1cd0f3d6b0cc448f7d4dd737df29a80@example.com"><a1cd0f3d6b0cc448f7d4dd737df29a80@example.com></a>
X-Sender: <a class="moz-txt-link-abbreviated" href="mailto:support@example.com">support@example.com</a>
</pre>
    </blockquote>
    <p>Yes, I sanitized, even though you can deduce what it really was
      easily... :)</p>
    <p>I grep'd the RT code, and found that lib/RT/Interface/Email.pm
      seems to be what is responsible... but no obvious line that tells
      me this code is used for OUTBOUND email. Can anyone shed some
      light on this issue? I'd be happy to hack code, I just want it
      fixed.<br>
    </p>
    Thank you!<br>
    <br>
    <div class="moz-signature">-- <br>
      <p style="padding-bottom: 5px;">Best regards,<br>
        Steve
      </p>
      <table style="width: 615px; padding-top:5px; border-style: solid;
        border-width: 0; border-top-width: 6px; border-top-color:
        #1836e2; font-family: Calibri; font-weight: normal;" width="615"
        bgcolor="#ffffff" cellpadding="0" cellspacing="0">
        <tbody>
          <tr>
            <th style="height: 70px; " colspan="4" height="140">
              <table style="border-style: solid; border-width: 0;
                border-color: #1836e2;" cellpadding="0" cellspacing="0"
                height="140">
                <tbody>
                  <tr>
                    <td rowspan="3" width="220" align="center">
                      <img src="cid:part1.99C6941A.D437114D@sbsroc.com"
                        name="SBS ROC Logo" width="140" align="bottom"
                        border="0" height="47">
                    </td>
                    <td width="25" align="center"><img alt=""
                        src="cid:part2.4538CD06.9BA5F9C9@sbsroc.com"
                        width="18" height="17"></td>
                    <td colspan="2" width="524" height="20">
                      <div align="left"><span style="font-size: 12px;
                          font-weight: bold; color: #414141;">Stephen H.
                          Switzer
                        </span><br>
                        <span style="font-size: 12px; color: #7b7b7b;">President
                          & Chief Technical Consultant</span>
                      </div>
                    </td>
                  </tr>
                  <tr style="opacity: 0.8; filter: alpha(opacity=80);">
                    <td align="center"><img alt=""
                        src="cid:part3.810D4B00.1CA4C50D@sbsroc.com"
                        width="20" height="14"></td>
                    <td colspan="2" height="20">
                      <div style="font-size: 12px; font-weight: bold;
                        color: #414141;" align="left">
                        <a href="mailto:steve@sbsroc.com" title="Click
                          to send email to Stephen Switzer" target=""
                          style="">steve@SBSroc.com</a>
                      </div>
                    </td>
                  </tr>
                  <tr style="padding: 0px; spacing: 0px; opacity: 0.8;
                    filter: alpha(opacity=80);">
                    <td rowspan="1" align="center"><img alt=""
                        src="cid:part5.8175A4D8.042E514B@sbsroc.com"
                        width="20" height="16"></td>
                    <td width="30" height="20">
                      <div style="font-size: 12px; color: #414141;"
                        align="left">
                        <b>Main:</b><br>
                        <b>Cell:</b>
                      </div>
                    </td>
                    <td nowrap="nowrap" height="20">
                      <div style="font-size: 12px; color: #414141;"
                        align="left">
                        +1 (585) 298-9420   <b>Ext:</b> 7001<br>
                        +1 (585) 202-8312
                      </div>
                    </td>
                  </tr>
                  <tr style="padding: 0px; opacity: 0.8; filter:
                    alpha(opacity=80);">
                    <td rowspan="2" valign="bottom" height="20">
                      <table align="center" cellpadding="0"
                        cellspacing="0">
                        <tbody>
                          <tr style="opacity: 0.7; filter:
                            alpha(opacity=70);">
                            <td align="right" height="20">
                              <img alt=""
                                src="cid:part3.810D4B00.1CA4C50D@sbsroc.com"
                                width="20" height="14">
                            </td>
                            <td height="20">
                              <div style="font-size: 12px; color:
                                #7b7b7b; padding-bottom:8px;">
                                Support Desk:<br>
                                <a href="mailto:support@sbsroc.com"
                                  title="Click to send email to SBS
                                  Support" target="" style="">support@sbsroc.com</a>
                              </div>
                            </td>
                          </tr>
                        </tbody>
                      </table>
                    </td>
                    <td align="center"><img alt=""
                        src="cid:part5.8175A4D8.042E514B@sbsroc.com"
                        width="20" height="16"></td>
                    <td width="30" height="20">
                      <div style="font-size: 12px; color: #414141;"
                        align="left">
                        <b>Fax:</b></div>
                    </td>
                    <td height="20">
                      <div style="font-size: 12px; color: #414141;"
                        align="left">
                        +1 (585) 625-0020
                      </div>
                    </td>
                  </tr>
                </tbody>
              </table>
            </th>
          </tr>
          <tr>
            <td style="height: 1px; border-style: solid; border-width:
              0; border-bottom-width: 1px; border-bottom-color: #ddd;
              border-top-width: 1px; border-top-color: #1836e2;"
              valign="top" align="left" bgcolor="#ffffff">
              <p style="font-size: xx-small; font-weight: lighter;
                font-style: normal;" align="justify">
                <span style="font-size: 11px; color: #7b7b7b;"><font
                    size="1">This e-mail contains proprietary
                    information some or all of which may be legally
                    privileged. It is for the intended recipient only.
                    If an addressing or transmission error has
                    misdirected this e-mail, please notify the author by
                    replying to this e-mail. If you are not the intended
                    recipient you must not use, disclose, distribute,
                    copy, print or rely on this e-mail. The content of
                    this email may contain private views and opinions,
                    which do not constitute formal disclosure or
                    commitment unless specifically stated. We do not
                    enter into legally binding agreements via email.</font></span>
              </p>
            </td>
          </tr>
          <tr>
            <td>
              <table style="height: 20px; width: 660px;" align="center"
                bgcolor="#ffffff" cellpadding="0" cellspacing="0">
                <tbody>
                  <tr>
                    <td width="30"><a href="http://www.sbsroc.com"><img
                          src="cid:part9.7CBD19B7.2FB3DD02@sbsroc.com"
                          border="0"></a></td>
                    <td width="30"><a
                        href="https://plus.google.com/+SwitzerBusinessSolutionsLLCRochester"><img
                          src="cid:part11.F4ACAF43.FEA0C7B6@sbsroc.com"
                          border="0"></a></td>
                    <td width="30"><a
                        href="https://www.facebook.com/sbsolutions"
                        target=""><img style="border: 0px Solid ; "
                          src="cid:part13.1C73E91D.E16E2DFC@sbsroc.com"
                          width="27" height="27"></a></td>
                    <td width="30"><a
                        href="https://www.linkedin.com/company/switzer-business-solutions-llc"><img
                          src="cid:part15.26660EBB.14FC4951@sbsroc.com"
                          border="0"></a></td>
                    <td width="30"><a href="https://twitter.com/sbsroc"><img
                          src="cid:part17.820288EC.133B120E@sbsroc.com"
                          border="0"></a></td>
                    <td>
                      <table align="right" cellpadding="0"
                        cellspacing="0">
                        <tbody>
                          <tr style="opacity: 0.5; filter:
                            alpha(opacity=50);">
                            <td height="20">
                              <img alt="The ASCII Group"
                                src="cid:part19.B6729BDC.545A4DF8@sbsroc.com"
                                border="0">
                              <img alt="Xorcom Certified Dealer"
                                src="cid:part20.6295C2AE.E828909B@sbsroc.com"
                                border="0">
                            </td>
                          </tr>
                        </tbody>
                      </table>
                    </td>
                  </tr>
                </tbody>
              </table>
            </td>
          </tr>
        </tbody>
      </table>
      <br>
    </div>
  </body>
</html>