-
Notifications
You must be signed in to change notification settings - Fork 96
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
aiosmptd is treating Bcc as a TO field #382
Comments
aiosmtpd shouldn't be able to modify the email body. The "To:" field is part of the email body. |
I'll double check the RFCs but IIRC BCC should be up to the implementation. My implementation splits the BCC out and delivers individual messages - you would simply need to implement your own handler(s) |
Well, RFC 822 says:
While 1123 says:
And 5321 says:
I didn't spend enough time with the RFCs to say for sure that we shouldn't implement this behavior, but I also don't see any RFC saying that we MUST. In fact, it even shows that the rule can't necessarily be enforced and it's up to sending systems to be aware of the BCC fields 🤔 . EDIT: https://stackoverflow.com/a/2750359/344286 also suggests: 46
|
Okay, yep, I just spent a while more reading RFCs. I do NOT think that this is a bug in aiosmtpd - in fact I think it's considered generally accepted behavior. In other words:
It is not a requirement that aiosmtpd does anything for this scenario, aside from deliver the message to both recipients (assuming they're both valid). And they would both get the contents of the DATA command in all its glory - bob knowing that person received the mail and vice versa. OTOH,
In this case, bob MUST NOT know that the mail was delivered to [email protected] -- at least with our default implementation. All of that being said - I'm fine with accepting a feature request where we allow something like |
AFAIK an email relay should refrain from doing edits to the mail body (everything between See RFC2821 § 3.7:
It should be the email client's responsibility to strip out Bcc from the mail body, but keeping Enabling mail body processing will cause problems if the email is signed. |
Bcc are supposed to be hidden ! but aiomptd is showing them in the "To" field.
no problem with normal CC.
I sent using php version 8. Cc fields and Bcc fiels in headers.
I have th elatest aiosmpt using python 3.10
The text was updated successfully, but these errors were encountered: