{"action":"created","issue":{"url":"https://api.github.com/repos/osTicket/osTicket/issues/4370","repository_url":"https://api.github.com/repos/osTicket/osTicket","labels_url":"https://api.github.com/repos/osTicket/osTicket/issues/4370/labels{/name}","comments_url":"https://api.github.com/repos/osTicket/osTicket/issues/4370/comments","events_url":"https://api.github.com/repos/osTicket/osTicket/issues/4370/events","html_url":"https://github.com/osTicket/osTicket/issues/4370","id":345011801,"node_id":"MDU6SXNzdWUzNDUwMTE4MDE=","number":4370,"title":"BUG: User Responses via Web Portal Create Second Bounce Email","user":{"login":"mikshepard","id":3514599,"node_id":"MDQ6VXNlcjM1MTQ1OTk=","avatar_url":"https://avatars1.githubusercontent.com/u/3514599?v=4","gravatar_id":"","url":"https://api.github.com/users/mikshepard","html_url":"https://github.com/mikshepard","followers_url":"https://api.github.com/users/mikshepard/followers","following_url":"https://api.github.com/users/mikshepard/following{/other_user}","gists_url":"https://api.github.com/users/mikshepard/gists{/gist_id}","starred_url":"https://api.github.com/users/mikshepard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikshepard/subscriptions","organizations_url":"https://api.github.com/users/mikshepard/orgs","repos_url":"https://api.github.com/users/mikshepard/repos","events_url":"https://api.github.com/users/mikshepard/events{/privacy}","received_events_url":"https://api.github.com/users/mikshepard/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-07-26T21:27:31Z","updated_at":"2018-07-30T19:49:18Z","closed_at":null,"author_association":"NONE","body":"\r\n### Description\r\n\r\nWhen a ticket is created and user responds to an agent via the web portal, a second email alert is created with a non-existant destination (ex. \"\"@localhost).  The message still gets posted to the agent ticket thread, and the agent still gets notified of the message.  In our case, out spam filter catches this second email alert due to the bunk recipient email sent by osticket and bounces it back, causing osticket to create a new ticket from the bounce-email.  Email responses from users do not do this, they function as expected.\r\n\r\nHere is the mail log, showing osticket generating a second email to \"@localhost.osticket.testdomain.org\", which should be \"bobj@testdomain.org\" (never localhost) and is properly sent at the same time:\r\n\r\n\r\n> 8179-Jul 26 16:00:02 osticket postfix/smtp[23590]: B7D5087BD9: to=<bobj@testdomain.org>, relay=mail.testdomain.org[X.X.X.X]:25, delay=0.16, delays=0.05/0.06/0/0.05, dsn=2.6.0, status=sent (250 2.6.0 <BetXbNk-vqHNH-EwAAAGr4AAD5HwAAU77Fyb6z-osticket@testdomain.org> [InternalId=12451110191285, Hostname=MX-01.testdomain.org] Queued mail for delivery)\r\n> 8542:Jul 26 16:00:02 osticket postfix/smtp[23589]: B2A5787BD7: to=<@localhost.osticket.testdomain.org>, orig_to=<@localhost>, relay=mail.testdomain.org[X.X.X.X]:25, delay=0.2, delays=0.02/0.04/0/0.13, dsn=2.6.0, status=sent (250 2.6.0 <BetXbNk-8ewa3-AAAAAGr4AAD5HwAATTgCc48T-osticket@testdomain.org> [InternalId=12451110191284, Hostname=MX-01.testdomain.org] Queued mail for delivery)\r\n\r\n\r\nHere is the header from our spam filter, showing the non-existant reciepient created.\r\n\r\n> Received: \tfrom mx.testdomain.org (X.X.X.X) by\r\n> mx.testdomain.org (X.X.X.X) with Microsoft SMTP Server (TLS) id\r\n> 15.0.1367.3; Thu, 26 Jul 2018 16:00:14 -0500\r\n> Received: \tfrom osticket.testdomain.org (X.X.X.X) by\r\n> mail.testdomain.org (X.X.X.X) with Microsoft SMTP Server id\r\n> 15.0.1367.3 via Frontend Transport; Thu, 26 Jul 2018 16:00:14 -0500\r\n> Received: \tfrom localhost (osticket.testdomain.org [X.X.X.X])\r\n> by osticket.testdomain.org (Postfix) with ESMTP id 48967806A9\r\n> for <\"\"@localhost>; Thu, 26 Jul 2018 16:00:14 -0500 (CDT)\r\n> Content-Type: \tmultipart/alternative;\r\n> boundary=\"=_8704298ba03c711cebcce4b69ae90df8\"\r\n> MIME-Version: \t1.0\r\n> From: \tSupport <osticket@testdomain.org>\r\n> Subject: \tRe: Testing Something for Bob J. Again [#758061]\r\n> Date: \tThu, 26 Jul 2018 21:00:14 +0000\r\n> Message-ID: \t<BetXbNk-HHbqF-AAAAAIv4AAADIAAATefuJ5aZ-osticket@testdomain.org>\r\n> X-Mailer: \tosTicket Mailer\r\n> To: \tUndisclosed recipients:;\r\n> Return-Path: \tosticket@testdomain.org\r\n\r\nPlease let me know if you need more info:\r\n\r\n### Steps to Reproduce\r\n\r\n1. User creates a ticket\r\n2. Agent responds to ticket asking a question\r\n3. User responds to ticket via web portal\r\n4. Email alert is created to fake email address, as well as agent.\r\n\r\n**Expected behavior:** [What you expected to happen]\r\n\r\nAgent is notified of user response.\r\n\r\n**Actual behavior:** [What actually happened]\r\n\r\nAgent is notified of user response, and second email is generated without a percipient and sent out.\r\n\r\n### Versions\r\n\r\n1.8-git (b7339959)  (git v1.11.x)\r\n\r\nAlso, please include the OS and what version of the OS you're running. As well as your browser and browser version.\r\n\r\nDebian jessie, php 5.6.36, mysql 5.7.22"},"comment":{"url":"https://api.github.com/repos/osTicket/osTicket/issues/comments/408987654","html_url":"https://github.com/osTicket/osTicket/issues/4370#issuecomment-408987654","issue_url":"https://api.github.com/repos/osTicket/osTicket/issues/4370","id":408987654,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODk4NzY1NA==","user":{"login":"mikshepard","id":3514599,"node_id":"MDQ6VXNlcjM1MTQ1OTk=","avatar_url":"https://avatars1.githubusercontent.com/u/3514599?v=4","gravatar_id":"","url":"https://api.github.com/users/mikshepard","html_url":"https://github.com/mikshepard","followers_url":"https://api.github.com/users/mikshepard/followers","following_url":"https://api.github.com/users/mikshepard/following{/other_user}","gists_url":"https://api.github.com/users/mikshepard/gists{/gist_id}","starred_url":"https://api.github.com/users/mikshepard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikshepard/subscriptions","organizations_url":"https://api.github.com/users/mikshepard/orgs","repos_url":"https://api.github.com/users/mikshepard/repos","events_url":"https://api.github.com/users/mikshepard/events{/privacy}","received_events_url":"https://api.github.com/users/mikshepard/received_events","type":"User","site_admin":false},"created_at":"2018-07-30T19:49:18Z","updated_at":"2018-07-30T19:49:18Z","author_association":"NONE","body":"@JediKev \r\n\r\nLooks like that did it, the issue appears to be gone now.  \r\n\r\nThanks for fixing this!\r\n-Mike"}}
{"actor":{"display_login":"mikshepard"}}