{"action":"created","issue":{"url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/4866","labels_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/4866/labels{/name}","comments_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/4866/comments","events_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/4866/events","html_url":"https://github.com/gitlabhq/gitlabhq/issues/4866","id":18467528,"number":4866,"title":"Mails do not get sent to users when exim is used as mail daemon (sendmail with -t command).","user":{"login":"minusinf","id":282446,"avatar_url":"https://avatars.githubusercontent.com/u/282446?v=3","gravatar_id":"","url":"https://api.github.com/users/minusinf","html_url":"https://github.com/minusinf","followers_url":"https://api.github.com/users/minusinf/followers","following_url":"https://api.github.com/users/minusinf/following{/other_user}","gists_url":"https://api.github.com/users/minusinf/gists{/gist_id}","starred_url":"https://api.github.com/users/minusinf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minusinf/subscriptions","organizations_url":"https://api.github.com/users/minusinf/orgs","repos_url":"https://api.github.com/users/minusinf/repos","events_url":"https://api.github.com/users/minusinf/events{/privacy}","received_events_url":"https://api.github.com/users/minusinf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2013-08-23T12:26:54Z","updated_at":"2015-07-23T09:44:21Z","closed_at":null,"body":"1. **Summary:** Mails do not get sent to users when exim is used as mail daemon.\r\n2. **Steps to reproduce:** Setup gitlab (5.2 and 6.0) on linux with exim as sendmail client. \r\n3. **Expected behavior:** Mail should arrive at users location.\r\n4. **Observed behavior:** Gitlab will notify that a mail to $user has been sent but exim won't report that it sent a mail to $user. Exim will also report \r\n\r\n    ``` \r\nFrom: Mail Delivery System <Mailer-Daemon@example.com>\r\nSubject: Mail failure - no recipient addresses\r\nDate: 29. Juli 2013 13:51:23 MESZ\r\nTo: <ops@example.com>\r\nA message that you sent using the -t command line option contained no\r\naddresses that were not also on the command line, and were therefore\r\nsuppressed. This left no recipient addresses, and so no delivery could\r\nbe attempted.\r\n```\r\n\r\n6. **Output of checks**\r\n    * Results of GitLab [Application Check]\r\n\r\n      ```\r\n# bundle exec rake gitlab:check RAILS_ENV=production\r\nChecking Environment ...\r\nGit configured for git user? ... yes\r\nHas python2? ... yes\r\npython2 is supported version? ... yes\r\nChecking Environment ... Finished\r\nChecking GitLab Shell ...\r\nGitLab Shell version >= 1.7.0 ? ... OK (1.7.0)\r\nRepo base directory exists? ... yes\r\nRepo base directory is a symlink? ... no\r\nRepo base owned by git:git? ... yes\r\nRepo base access is drwxrws---? ... yes\r\npost-receive hook up-to-date? ... yes\r\npost-receive hooks in repos are links: ...\r\nChecking GitLab Shell ... Finished\r\nChecking Sidekiq ...\r\nRunning? ... yes\r\nChecking Sidekiq ... Finished\r\nChecking GitLab ...\r\nDatabase config exists? ... yes\r\nDatabase is SQLite ... no\r\nAll migrations up? ... yes\r\nGitLab config exists? ... yes\r\nGitLab config outdated? ... no\r\nLog directory writable? ... yes\r\nTmp directory writable? ... yes\r\nInit script exists? ... no\r\n  Try fixing it:\r\n  Install the init script\r\n  For more information see:\r\n  doc/install/installation.md in section \"Install Init Script\"\r\n  Please fix the error above and rerun the checks.\r\nInit script up-to-date? ... can't check because of previous errors\r\nProjects have satellites? ...\r\n[...]\r\nRedis version >= 2.0.0? ... yes\r\nYour git bin path is \"/usr/bin/git\"\r\nGit version >= 1.7.10 ? ... no\r\n  Try fixing it:\r\n  Update your git to a version >= 1.7.10 from 1.7.9\r\n  Please fix the error above and rerun the checks.\r\n      ```\r\n      I know that git has not been updated yet. But it doesn't have anything to do with gitlab email. Hence I'm leaving it there.\r\n\r\n    * Sha1: \r\n      4c8f3699f1f1334f1b7ed964d4b6ca985796211a\r\n\r\n7. **Possible fixes**:\r\n\r\n```\r\n        diff --git a/config/application.rb b/config/application.rb\r\n        index f7349fa..75eee2c 100644\r\n        --- a/config/application.rb\r\n        +++ b/config/application.rb\r\n        @@ -11,6 +11,8 @@ end\r\n        \r\n         module Gitlab\r\n           class Application < Rails::Application\r\n        +    config.action_mailer.sendmail_settings = { :arguments => \"-i\" }\r\n        +\r\n             # Settings in config/environments/* take precedence over those specified he\r\n             # Application configuration should go into files in config/initializers\r\n             # -- all .rb files in that directory are automatically loaded.\r\n```\r\n\r\nThis issue was also discussed in #3943. I thought to reopen it but since it was closed by the requestor. I thought it might be better to just create a new issue.\r\n\r\nThe issue is also discussed here: https://github.com/mikel/mail/issues/70\r\n"},"comment":{"url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/comments/124035351","html_url":"https://github.com/gitlabhq/gitlabhq/issues/4866#issuecomment-124035351","issue_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/4866","id":124035351,"user":{"login":"dosire","id":22061,"avatar_url":"https://avatars.githubusercontent.com/u/22061?v=3","gravatar_id":"","url":"https://api.github.com/users/dosire","html_url":"https://github.com/dosire","followers_url":"https://api.github.com/users/dosire/followers","following_url":"https://api.github.com/users/dosire/following{/other_user}","gists_url":"https://api.github.com/users/dosire/gists{/gist_id}","starred_url":"https://api.github.com/users/dosire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dosire/subscriptions","organizations_url":"https://api.github.com/users/dosire/orgs","repos_url":"https://api.github.com/users/dosire/repos","events_url":"https://api.github.com/users/dosire/events{/privacy}","received_events_url":"https://api.github.com/users/dosire/received_events","type":"User","site_admin":false},"created_at":"2015-07-23T09:44:21Z","updated_at":"2015-07-23T09:44:21Z","body":"@pravi Feel free to suggest a non-intrusive merge request to change the manual installation doc."}}