-
-
Notifications
You must be signed in to change notification settings - Fork 660
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dkim_sign.js error on send of email #2668
Comments
To just sign mails for a single domain (ignismail.com), you just need to create the DKIM config for that domain: cd config/dkim/ && ./dkim_key_gen.sh ignismail.com Publish the DKIM public key in DNS and then you're off and running. The only contents of dkim_sign.ini that matter will be making sure To sign all emails with a single selector/domain/key, you follow the Single Domain Configuration section in the docs. The dkim_sign docs currently suggest that you can assign a value to dkim.private.key. That's not how the code is written. You must instead store your dkim private key in the file |
Thanks for fixing that,
|
Hi, I'm also getting this error This happen with both |
So what I found for my case is, I was running
just calling the next caused the error again. |
It seem to be an internal node error and I've been poking around on github https://github.com/search?q=TypeError%3A+domain.enter+is+not+a+function&type=Issues which causes more confusion. I'm suspecting this has to do with the And when |
The theory above worked out, here is my commit - https://github.com/noogen/Haraka/commit/92c0b4426ed13445065fabcda0308163e6671a0f - Well, at least it worked out for me. I no longer have the error when tested on node v12.10.0 @msimerson I did a quick test and so my variable name is not very compliance. I don't know how you want to handle this so I'll leave it up to you. If anyone else can reproduce the error (@raunaqrox ?) and want to test, simply replace you local
FYI, this was my error running inside of Docker so you can see how I came to the solution:
And this is my Docker build installing directing from github |
@noogen, do you mind applying my suggestion and then creating a PR? |
Yes I tried it and it's fixed it for me! |
@msimerson sure, what would you like the property name to be? |
We have a lot of underscore names in the code base so |
Leaving a comment referencing that |
system info
Expected behavior
Dkim signs email
Observed behavior
[CRIT] [-] [core] at /usr/lib/node_modules/Haraka/node_modules/async/dist/async.js:2797:21
[CRIT] [-] [core] at /usr/lib/node_modules/Haraka/node_modules/async/dist/async.js:969:16
[CRIT] [-] [core] at iterateeCallback (/usr/lib/node_modules/Haraka/node_modules/async/dist/async.js:992:24)
[CRIT] [-] [core] at /usr/lib/node_modules/Haraka/node_modules/async/dist/async.js:473:16
[CRIT] [-] [core] at /usr/lib/node_modules/Haraka/node_modules/async/dist/async.js:2806:17
[CRIT] [-] [core] at async.detectSeries (/usr/lib/node_modules/Haraka/plugins/dkim_sign.js:260:9)
[CRIT] [-] [core] at plugin.get_key_dir (/usr/lib/node_modules/Haraka/plugins/dkim_sign.js:230:28)
[CRIT] [-] [core] at MessageStream.pipe (/usr/lib/node_modules/Haraka/messagestream.js:326:31)
[CRIT] [-] [core] at MessageStream.Stream.pipe (internal/streams/legacy.js:85:8)
[CRIT] [-] [core] at DKIMSignStream.EventEmitter.emit (domain.js:503:10)
[CRIT] [-] [core] TypeError: domain.enter is not a function
Steps to reproduce
I think it would be due to my
dkim_sign.ini
I tried various forms
there is a file called private in config folder
then send email after enabling dkim_sign plugin, with the plugin disabled email works.
Also I'm finding the dkim_sign plugin docs a bit confusing, thanks in advance.
The text was updated successfully, but these errors were encountered: