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
Public DKIM available but not valid for SpamAssassin #2131
Comments
|
I changed I don't see error loading the file but neither see it loading it. Below a "copy" of the debug text. |
|
It should read something like:
So: surely the DKIM key is not loaded properly. Debug code there, check if the file is valid, readable, correct etc etc etc |
I tried to The file content is like:
I don't know if this is the format it's supposed to have to be included correctly. |
That debug output does contain a complete DKIM signature, so the signing is definitely happening. There are still some DKIM bugs lurking; can you try without setting an It's odd that you're getting different verdicts from different receivers; that really shouldn't happen – but it's partly why I've been working on a PHP DKIM validator! |
I removed the AltBody, replaced msgHTML with plain text in Body, and put isHTML(false) or also no isHTML at all. page_code.txt No visible changes so far |
That report shows it passing the DKIM check? |
IT pass the DKIM check in the DKIM section but in the spamassasin section it say |
Just throwing a bone here.... Should be in your report. |
The report have for the DKIM section:
and in the spamassissin section:
Using: <?php
$selector = 'phpmailer';
$domain = 'mydomain.com';
$dkimrecord = dns_get_record($selector.'._domainkey.'.$domain, DNS_TXT);
print_r(array_values($dkimrecord)); I get something like:
I would say the public DKIM key is available from the DNS |
Things to check also: did you use a passphrase for the private key file and is it correct? |
How can I check if the public and private key are corresponding? Using PHP DKIM validator will tell me just invalid DKIM key like spamassasin do.
I already have problem without a password, it didn't even cross my mind to put one before it work properly. |
So if is says your key file is not valied, the problem is over there! |
This is my personal proven way to generate/create, store and use pub/priv key. Make sure your vatiables are correct. Please not it will overwrite exisiting keys, so you have to update your DNS as well:
|
Actually, I told it would have given the same result, because the usage example for the DKIMValidator will just say it's not a valid DKIM signature. But after modifying the code and recovering the actual error message, it say |
If the identifier-domain match check is removed the error become |
I've been doing lots of work on DKIM validator - try testing using the dev branch. The main reason I've been working on that is to give a solid base to use for testing PHPMailer, because otherwise DKIM is really hard to test, and there are no other decent validators. |
The dev branch give the same error messages:
The only difference is that second message doesn't give anymore successfully verified signature, and when the body hash check is removed the last error message is :
Since the first error is P.S. @Synchro the usage example of the dev branch doesn't work since you changed the validator class constructor |
Yes, I've changed it a lot, docs need to catch up. It's not finished yet but I'm very pleased with the test suite! |
Hi,
I'm trying to configure on a website a script to send automatic reply email using a gmail account.
I was able to generate the private DKIM keys using the PHPMailer script and to put the public key on the DNS successfully.
The problem is that when i try to send email with DKIM signature to Spam score check services they can access the public DKIM keys but they say it's invalid. In some services like ISnotSPAM, which perform multiple tests, the DKIM check pass, but in the SpamAssassin check the DKIM is considered invalid.
The sending page is in STMP debug mode and there are no error or fail during the sending process.
Am I doing something wrong, or is simply not possible in my case to configure the DKIM signature?
Below you can find the script I 'm using to send emails to Spam check services (clearly without personal data).
DKIM_question.txt
I'm sorry if this is not the correct place for this issue. If more information are required to debug the problem let's me know.
The text was updated successfully, but these errors were encountered: