{"action":"created","issue":{"url":"https://api.github.com/repos/tootsuite/mastodon/issues/7323","repository_url":"https://api.github.com/repos/tootsuite/mastodon","labels_url":"https://api.github.com/repos/tootsuite/mastodon/issues/7323/labels{/name}","comments_url":"https://api.github.com/repos/tootsuite/mastodon/issues/7323/comments","events_url":"https://api.github.com/repos/tootsuite/mastodon/issues/7323/events","html_url":"https://github.com/tootsuite/mastodon/issues/7323","id":319760529,"number":7323,"title":"need Mastodon outgoing email diagnostics","user":{"login":"woozalia","id":996350,"avatar_url":"https://avatars3.githubusercontent.com/u/996350?v=4","gravatar_id":"","url":"https://api.github.com/users/woozalia","html_url":"https://github.com/woozalia","followers_url":"https://api.github.com/users/woozalia/followers","following_url":"https://api.github.com/users/woozalia/following{/other_user}","gists_url":"https://api.github.com/users/woozalia/gists{/gist_id}","starred_url":"https://api.github.com/users/woozalia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woozalia/subscriptions","organizations_url":"https://api.github.com/users/woozalia/orgs","repos_url":"https://api.github.com/users/woozalia/repos","events_url":"https://api.github.com/users/woozalia/events{/privacy}","received_events_url":"https://api.github.com/users/woozalia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-05-03T01:09:57Z","updated_at":"2018-05-04T11:19:00Z","closed_at":null,"author_association":"NONE","body":"My instance suddenly stopped sending emails about a week ago, and I don't know why. I've tried 2 different SMTP servers; both work when I use them to send email from Thunderbird, both respond to hails on the appropriate port when I connect from Mastodon's server via telnet, but mail doesn't come through from Mastodon regardless.\r\n\r\nWhat I mainly need is some way to get more diagnostic information out of Mastodon.\r\n\r\n1. I get that the mastodon-web service logs are accessed with \"journalctl -u mastodon-web\" -- but this doesn't show where the email was being sent or even whether it was successful.\r\n2. Where is there a log file or queue which shows email subject, destination address, and (especially) whether successful or not, and any associated error messages?\r\n3. Is there a command to interactively send a test email, so you can get status information directly as the attempt is being made?\r\n4. Can Mastodon be configured to send email without needing SMTP relay server credentials (the way MediaWiki and most PHP apps do, using the PHP mail() function)?\r\n5. What file and line of Ruby code is where the email is actually sent? (I don't know Ruby yet, but am willing to learn in order to fix this problem. I'll write my own email logging code if there really aren't any other options.)\r\n\r\nThanks in advance for any help with this."},"comment":{"url":"https://api.github.com/repos/tootsuite/mastodon/issues/comments/386571384","html_url":"https://github.com/tootsuite/mastodon/issues/7323#issuecomment-386571384","issue_url":"https://api.github.com/repos/tootsuite/mastodon/issues/7323","id":386571384,"user":{"login":"woozalia","id":996350,"avatar_url":"https://avatars3.githubusercontent.com/u/996350?v=4","gravatar_id":"","url":"https://api.github.com/users/woozalia","html_url":"https://github.com/woozalia","followers_url":"https://api.github.com/users/woozalia/followers","following_url":"https://api.github.com/users/woozalia/following{/other_user}","gists_url":"https://api.github.com/users/woozalia/gists{/gist_id}","starred_url":"https://api.github.com/users/woozalia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woozalia/subscriptions","organizations_url":"https://api.github.com/users/woozalia/orgs","repos_url":"https://api.github.com/users/woozalia/repos","events_url":"https://api.github.com/users/woozalia/events{/privacy}","received_events_url":"https://api.github.com/users/woozalia/received_events","type":"User","site_admin":false},"created_at":"2018-05-04T11:19:00Z","updated_at":"2018-05-04T11:19:00Z","author_association":"NONE","body":"The \"r\"s are revisions -- to note that the item has been modified in some way.\r\n\r\n**re 1,2**: I spent hours looking at Sidekiq and trying to find any email jobs, but was unable to do so. Any of the following might have made it possible:\r\n* being able to search by content or worker-type\r\n* being able to see the content parsed out into a table or some other more readable form\r\n* a plaintext rendering, which could then have been searched with browser text-search or `grep`ped\r\n\r\nI'm thinking some viewers for the Sidekiq API would be a good thing; I'll add that to my \"when opportunity arises\" queue (i.e. either another issue makes this more urgent again, or other higher-priority tasks get cleared away).\r\n\r\n**re 3**: definitely noted; this also goes in \"when opportunity arises\".\r\n\r\n**re 4**: Aha! So _that's_ where I should have been looking for options documentation. Didn't occur to me. ...although it should be noted that there are still some things it doesn't explain. like the format of `DATABASE_URL`.\r\n\r\n**re 5**: UserMailer looks promising, yes.\r\n\r\nThanks."}}
{"actor":{"display_login":"woozalia"}}