Skip to content
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

Unable to generate circuit inputs for email with base64 encoded attachment #154

Open
mohammed7s opened this issue Dec 27, 2023 · 5 comments
Labels
bug Something isn't working high

Comments

@mohammed7s
Copy link

eml used has a base64 encoded attachment. running generate_input.ts generates this error:

Error: No public key found on DKIM verification result

Logging the result.results[0] from result = await dkimVerify(email); yields this output:

image

so the bodyHash and bodyHashExpecting are not matching so its failing here:

if (signatureHeader.parsed?.bh?.value !== bodyHash) {

@foolo
Copy link
Collaborator

foolo commented Dec 27, 2023

not sure if this applies to your issue, but i recall encountering this when my eml for some reason didn't contain a dkim signature in the header at all

@Divide-By-0
Copy link
Member

Divide-By-0 commented Dec 27, 2023

eml used has a base64 encoded attachment. running generate_input.ts generates this error:

Can you attach the eml here?

@Billionaire-Developer
Copy link

eml used has a base64 encoded attachment. running generate_input.ts generates this error:

Error: No public key found on DKIM verification result

Logging the result.results[0] from result = await dkimVerify(email); yields this output:

image

so the bodyHash and bodyHashExpecting are not matching so its failing here:

if (signatureHeader.parsed?.bh?.value !== bodyHash) {

Module Export:
exports.DkimVerifier = void 0;

@Bisht13
Copy link
Member

Bisht13 commented Dec 29, 2023

Is your DNS getting resolved? While running it locally it uses your DNS entry to fetch the public keys, make sure it is set to Google DNS of 8.8.8.8/8.8.4.4.

@mohammed7s
Copy link
Author

Ok it seems there is an issue with outlook emails. And the emails I am using were sent to office360. I tested with a simple hotmail account and it also fails. Any ideas why that could be the case?

@Divide-By-0 Divide-By-0 added bug Something isn't working high labels May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high
Projects
None yet
Development

No branches or pull requests

5 participants