{"action":"closed","issue":{"url":"https://api.github.com/repos/nodemailer/nodemailer/issues/689","repository_url":"https://api.github.com/repos/nodemailer/nodemailer","labels_url":"https://api.github.com/repos/nodemailer/nodemailer/issues/689/labels{/name}","comments_url":"https://api.github.com/repos/nodemailer/nodemailer/issues/689/comments","events_url":"https://api.github.com/repos/nodemailer/nodemailer/issues/689/events","html_url":"https://github.com/nodemailer/nodemailer/issues/689","id":188957934,"number":689,"title":"smtpConfig works in dev, not in production in docker container","user":{"login":"mycompassspins","id":6962349,"avatar_url":"https://avatars.githubusercontent.com/u/6962349?v=3","gravatar_id":"","url":"https://api.github.com/users/mycompassspins","html_url":"https://github.com/mycompassspins","followers_url":"https://api.github.com/users/mycompassspins/followers","following_url":"https://api.github.com/users/mycompassspins/following{/other_user}","gists_url":"https://api.github.com/users/mycompassspins/gists{/gist_id}","starred_url":"https://api.github.com/users/mycompassspins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mycompassspins/subscriptions","organizations_url":"https://api.github.com/users/mycompassspins/orgs","repos_url":"https://api.github.com/users/mycompassspins/repos","events_url":"https://api.github.com/users/mycompassspins/events{/privacy}","received_events_url":"https://api.github.com/users/mycompassspins/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-13T07:59:34Z","updated_at":"2016-11-13T22:55:15Z","closed_at":"2016-11-13T22:55:15Z","body":"Hey there,\r\n\r\nI've got nodemailer working great in dev, however, I haven't been able to get it to work in a production environment inside a docker container. \r\n\r\nI'm on nodemailer 2.6.4 and nodemailer-smtp-transport 2.7.2. I'm on Node 7.0.0 and OSX Sierra in dev and debian inside the docker container. \r\n\r\nHere's my smptConfig:\r\n\r\n```\r\nsmtpConfig: {\r\n    host: 'smtp.mydomain.com',\r\n    port: 587,\r\n    auth: {\r\n        user: 'me@mydomain.com',\r\n        pass: \"myPassword123\"\r\n    },\r\n    tls: { rejectUnauthorized: false }\r\n}\r\n```\r\n\r\nThe above config works fine in dev, but produces a \"certificate is expired\" error in the docker container. I've tried various other options on the above config object, all with the same result, with the exception of `tls: { rejectUnauthorized: false, ciphers: 'SSLv3' }`, which produces an ssl version error. Any ideas on this? I must've rebuilt this container a hundred times by now with a slightly different configuration each time with no luck. \r\n\r\n# Update\r\n\r\nIf I toggle `process.env.NODE_TLS_REJECT_UNAUTHORIZED` in the sendMail method, I get this error:\r\n\r\n```\r\n140463779485504:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:../deps/openssl/openssl/ssl/s23_clnt.c:794:\r\n```\r\n"}}
{"actor":{"display_login":"mycompassspins"}}