{"action":"opened","issue":{"url":"https://api.github.com/repos/haraka/Haraka/issues/1467","repository_url":"https://api.github.com/repos/haraka/Haraka","labels_url":"https://api.github.com/repos/haraka/Haraka/issues/1467/labels{/name}","comments_url":"https://api.github.com/repos/haraka/Haraka/issues/1467/comments","events_url":"https://api.github.com/repos/haraka/Haraka/issues/1467/events","html_url":"https://github.com/haraka/Haraka/issues/1467","id":155418312,"number":1467,"title":"Config override feature works only for plugins","user":{"login":"gramakri","id":82041,"avatar_url":"https://avatars.githubusercontent.com/u/82041?v=3","gravatar_id":"","url":"https://api.github.com/users/gramakri","html_url":"https://github.com/gramakri","followers_url":"https://api.github.com/users/gramakri/followers","following_url":"https://api.github.com/users/gramakri/following{/other_user}","gists_url":"https://api.github.com/users/gramakri/gists{/gist_id}","starred_url":"https://api.github.com/users/gramakri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gramakri/subscriptions","organizations_url":"https://api.github.com/users/gramakri/orgs","repos_url":"https://api.github.com/users/gramakri/repos","events_url":"https://api.github.com/users/gramakri/events{/privacy}","received_events_url":"https://api.github.com/users/gramakri/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-18T05:17:03Z","updated_at":"2016-05-18T05:17:03Z","closed_at":null,"body":"Not sure if this is by design or a bug.\r\n\r\nWith the latest release of haraka, we get the config override feature where I can pass a config directory using `-i` and haraka will pick up configs from that directory and fallback to the installation configs.\r\n\r\nThis feature only works for plugins from what I can tell. The core modules like `outbound.js` do not read the config from the haraka installation and always read from the `-i` directory.\r\n\r\nI debugged a little and reason is that plugins.js gets a config using `config.module_config`. The core modules, however, simple use config.js. The default instance of config.js has a `undefined` root_path and thus uses the cfreader.config_path which is the `-i` directory."}}