Why is smtplib.SMTP().sendmail not sending a DKIM signed message
问题 I have set up postfix on a server, along with openDKIM. When I run: echo "Testing setup" | mail -s "Postfix test" {my_email_address} I get the email, and in the mail headers there is a DKIM-Signature header. When, however I write a python script to send an email, using smtplib: import smtplib from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart from email.utils import make_msgid msg = MIMEMultipart('alternative') part1 = MIMEText('Hello, world', 'plain') msg