-
Notifications
You must be signed in to change notification settings - Fork 85
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
Improve mail quality #87
Comments
Patch against 0.18:
|
Envelope sender and RFC5322.From address are set to $EMAIL if it's non-empty. Requested in #87
certspotter will now set the envelope sender and RFC5322.From address to the value of Please provide citations to justify using |
Precedence header: https://stackoverflow.com/questions/6148865/what-is-the-effect-of-a-precedence-bulk-header-on-e-mail-messages Was suggested by Google guidelines. It helped to get mail to Google. Seems they no longer request it. SpamAssassin and other mail filters expect mails to be readable text. Everything which deviates from that usually get's downvoted. Also these systems often have Bayes filters for training. And the text can contain additional information and it simply looks better when an e-mail states what it is. |
Envelope sender and RFC5322.From address are set to $EMAIL if it's non-empty. Requested in SSLMate#87
The email sent by certspotter is so low quality, that it's hard to get it through a spam filter.
Please add:
Especially the sender from address and the "From:" mail header are important. They also enable to properly setup DKIM/DMARC.
First 3 points I fixed hardcoded in notify.go on my system:
fmt.Fprintf(stdin, "From: myname@mytld\n")
fmt.Fprintf(stdin, "To: %s\n", strings.Join(to, ", "))
fmt.Fprintf(stdin, "Subject: [certspotter] %s\n", notif.Summary())
fmt.Fprintf(stdin, "Date: %s\n", time.Now().Format(mailDateFormat))
fmt.Fprintf(stdin, "Message-ID: <%s>\n", generateMessageID())
fmt.Fprintf(stdin, "Mime-Version: 1.0\n")
fmt.Fprintf(stdin, "Content-Type: text/plain; charset=US-ASCII\n")
fmt.Fprintf(stdin, "X-Mailer: certspotter\n")
fmt.Fprintf(stdin, "Precedence: bulk\n")
fmt.Fprintf(stdin, "\n")
fmt.Fprint(stdin, notif.Text())
args := []string{"-i", "-f", "myname@mytld", "--"}
The text was updated successfully, but these errors were encountered: