"Mail not sent; to enable sending, set the MAIL_URL environment variable." despite having set MAIL_URL
See original GitHub issueHello, After modifying our wekan sender mail from wekan2@ourdomain.com to wekan@oudomain.com, mails are no longer sent :
[root@dockerhost wekan-mongodb]# docker-compose logs -f wekan
Attaching to wekan-app
wekan-app | { Error: Cannot find module '../build/Release/bson'
wekan-app | at Function.Module._resolveFilename (module.js:469:15)
wekan-app | at Function.Module._load (module.js:417:25)
wekan-app | at Module.require (module.js:497:17)
wekan-app | at require (internal/module.js:20:19)
wekan-app | at Object.<anonymous> (/build/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb/node_modules/bson/ext/index.js:15:10)
wekan-app | at Module._compile (module.js:570:32)
wekan-app | at Object.Module._extensions..js (module.js:579:10)
wekan-app | at Module.load (module.js:487:32)
wekan-app | at tryModuleLoad (module.js:446:12)
wekan-app | at Function.Module._load (module.js:438:3) code: 'MODULE_NOT_FOUND' }
wekan-app | js-bson: Failed to load c++ bson extension, using pure JS version
wekan-app | Note: you are using a pure-JavaScript implementation of bcrypt.
wekan-app | While this implementation will work correctly, it is known to be
wekan-app | approximately three times slower than the native implementation.
wekan-app | In order to use the native implementation instead, run
wekan-app |
wekan-app | meteor npm install --save bcrypt
wekan-app |
wekan-app | in the root directory of your application.
wekan-app | ====== BEGIN MAIL #0 ======
wekan-app | (Mail not sent; to enable sending, set the MAIL_URL environment variable.)
wekan-app | Content-Type: text/plain
wekan-app | From: wekan@ourdomain.com
wekan-app | To: mymail@ourdomain.com
wekan-app | Subject: [Wekan] Activity Notification
wekan-app | Message-ID: <7f27e313-7733-c14e-8150-d8328fc6f281@sfr.fr>
wekan-app | Content-Transfer-Encoding: 7bit
wekan-app | Date: Thu, 15 Jun 2017 11:41:15 +0000
wekan-app | MIME-Version: 1.0
wekan-app |
wekan-app | John Doe added "new2" to "WEKAN"
wekan-app | https://wekanhost4/b/DS7YJ7kPcBBknSzD7/wekan
====== END MAIL #0 ======
wekan-app | { Error: Cannot find module '../build/Release/bson'
wekan-app | at Function.Module._resolveFilename (module.js:469:15)
wekan-app | at Function.Module._load (module.js:417:25)
wekan-app | at Module.require (module.js:497:17)
wekan-app | at require (internal/module.js:20:19)
wekan-app | at Object.<anonymous> (/build/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb/node_modules/bson/ext/index.js:15:10)
wekan-app | at Module._compile (module.js:570:32)
wekan-app | at Object.Module._extensions..js (module.js:579:10)
wekan-app | at Module.load (module.js:487:32)
wekan-app | at tryModuleLoad (module.js:446:12)
wekan-app | at Function.Module._load (module.js:438:3) code: 'MODULE_NOT_FOUND' }
wekan-app | js-bson: Failed to load c++ bson extension, using pure JS version
wekan-app | Note: you are using a pure-JavaScript implementation of bcrypt.
wekan-app | While this implementation will work correctly, it is known to be
wekan-app | approximately three times slower than the native implementation.
wekan-app | In order to use the native implementation instead, run
wekan-app |
wekan-app | meteor npm install --save bcrypt
wekan-app |
wekan-app | in the root directory of your application.
The “MAIL_URL environment variable” has been set both on docker-compose.yml file" and also on the shell. So why dos it keep saying: “(Mail not sent; to enable sending, set the MAIL_URL environment variable.)” ???
And also things used to work before changing the sender address. So I changed back the sender address to what it was but still, mails aren’t going.
Why arent’t the mails going?
The server’s response is: “550 5.7.1 Message content rejected (in reply to end of DATA command))” to mails fro wekan, whereas when I send the same mails manually with telnet/netcat it works.
About the line “meteor npm install --save bcrypt”, not sure if it’s related but I installed npm and did: npm install --save bcrypt on several directories but keep having the errors. How and where do I install this bcrypt library knowing that I’m using the wekan docker image and the “host” server doesn’t know the command “meteor” nor the package “meteor” when I do “yum install meteor”.?
Thanks,
Issue Analytics
- State:
- Created 6 years ago
- Comments:15 (10 by maintainers)
Top GitHub Comments
Ok seems that remaining issues are not related to Wekan itself.
If there is something still related Wekan, please reopen issue.
About the spam filtering it’s possible, I contacted the postmaster of our smtp.ourdomain.com without getting answer. But the mails used to be delivered, unless they changed their policy in the meantime.
We use french, yes I did a wireshark capture of the mail and compared it to when I send the mail manually with netcat (in that case the mail is delivered, with the same mail content, sender and receiver addresses), the two captures look alike except that wekan uses ESMTP protocol to send the mail while with netcat it’s SMTP. But I don’t think it’s a pb since mails used to go anyway.
Okay looking into that SPF thing.