question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Mail not sent; to enable sending, set the MAIL_URL environment variable." despite having set MAIL_URL

See original GitHub issue

Hello, 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:closed
  • Created 6 years ago
  • Comments:15 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
xet7commented, Jun 20, 2017

Ok seems that remaining issues are not related to Wekan itself.

If there is something still related Wekan, please reopen issue.

0reactions
khbacommented, Jun 20, 2017

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

meteor - Mail not sent; to enable sending, set the MAIL_URL ...
2. are you sure the process environment variable is set before you are trying to send the email? Try putting the Email.send in...
Read more >
Could not send email from Meteor using MAIL_URL
I was trying to send emails using MAIL_URL from meteor app which is ... is an environment variable for the server where you...
Read more >
If you can't send email on your iPhone or iPad - Apple Support
On your device, go to Settings > Mail, then tap Accounts. Tap the email account that you want to remove. Tap Delete Account....
Read more >
config - Error using environment variable for email setting
I'm trying to create an environment variable ...
Read more >
Rmail - EmacsWiki
Here is a detailed Rmail configuration. A simpler example is in GettingMail. (setq ;; The mail URL, specifying a remote mail account ;;...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found