DKIM: "message may have been tampered with or corrupted"
Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I need your help on what to look for because a fail alert "message may have been tampered with or corrupted".
I don't know what is tampering sent mails. I use Postfix.
Here is the answer from a testing DKIM service.
Sending mail to sa-test@sendmail.net I got a reply I attached here. Same as the dkim tool in brandonchecketts.com
Just to make sure:
- Do you have an actual domain name that you are responsible for?
- Did you replace your actual domain name with "example.com"? (Because you can't use that for real as it's not owned by you.)
- What does 'grep -i dkim /var/log/mail.{log,warn,err}' show?
- Did you try uncommenting the LogWhy option in your /etc/opendkim.conf file and setting it to Yes?
Shame there wasn't any more 'grep -i dkim /var/log/mail.{log,warn,err}' added, all that can be seen is "dkim=fail (signature doesn't verify)". Maybe start with verifying locally first, see 'man opendkim-testkey'?
opendkim-testkey does not display anything, I guess it is OK.
I still am getting this response from sa-test@sendmail.net
Authentication System: DomainKeys Identified Mail (DKIM)
Result: DKIM signature confirmed BAD
Description: Signature verification failed, message may have been tampered with or corrupted
Reporting host: services.sendmail.com
May 9 16:29:50 hostname opendkim[20144]: 7A69460D8BEF: DKIM-Signature header added (s=default, d=mydomain.com)
May 9 16:30:03 hostname opendkim[20144]: 7F6D460D8C07: DKIM verification successful
May 9 16:30:03 hostname opendkim[20144]: 7F6D460D8C07: s=gatsby d=sendmail.net SSL
I don't know how to get what is tampering outgoing messages.
I also have tried the same from other domain I host.
Would it be useful to post my postfix configuration?
Thank you
M
NP
Each line like
default._domainkey.mydomain.com mydomain.com:default:/etc/opendkim/keys/default.private
instead of
default._domainkey.mydomain.com mydomain.com:default:/etc/opendkim/keys/mydomain.com/default
There is a file /etc/opendkim/keys/default.private (; ----- DKIM key default for com) that's why I guess that error instead of something missing
Cheers!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.