emersion / go-msgauth

🔏 A Go library and tools for DKIM, DMARC and Authentication-Results
MIT License
162 stars 49 forks source link

Microsoft Authentication-Results don't have identifier #64

Open deepcover96 opened 2 weeks ago

deepcover96 commented 2 weeks ago

It looks like Microsoft Authentication-Results don't have an identifier: spf=pass (sender IP is 209.85.222.48); smtp.mailfrom=valimail.com; dkim=pass (signature was verified); header.d=valimail.com;dmarc=pass action=none; header.from=valimail.com;compauth=pass reason=100

Microsoft Authentication Results: https://www.valimail.com/blog/understanding-email-authentication-headers/ and https://learn.microsoft.com/en-us/defender-office-365/message-headers-eop-mdo#authentication-results-message-header Someone here is attempting to report the lack of identifier to Microsoft: https://answers.microsoft.com/en-us/outlook_com/forum/all/authentication-results-header-written-by-outlook/890b304c-3c81-48b6-b065-36fad3b551e4

When calling authres.Parse(results) with these results, you'll receive the error: "msgauth: unsupported version" https://github.com/emersion/go-msgauth/blob/e466bf23037101454867ea7a2502ccaac0d27415/authres/parse.go#L232

emersion commented 1 week ago

Specifically, authserv-id from the RFC grammar is missing.