Aiosmtpd incompatible with O365 service
- 主要言語
- Python
- スター
- 373
- フォーク
- 105
- 平均マージ
- 4分
- マージ済み PR(30日)
- 2
説明
Hi,
When receiving the command "MAIL FROM", the code located at smtp.py is checking for parameters such as SIZE, SMTPUTF8, etc.
The problem is if it receives an unknown paramter, the code fails at [L1278](https://github.com/aio-libs/aiosmtpd/blob/master/aiosmtpd/smtp.py#L1278):
```
if len(params) > 0:
await self.push(
'555 MAIL FROM parameters not recognized or not implemented')
return
```
By using this behavior, which is repeated for the RCPT command ([L1319](https://github.com/aio-libs/aiosmtpd/blob/master/aiosmtpd/smtp.py#L1319)), there is absolutely no way to accept an email that contains parameters that AIOSmtpd handles, even valid parameters.
The issue is that service, like O365, seems to send the `MAIL FROM` command with parameters that are unknown to AIOSmtpd, causing the command to be refused and the email never delivered.
I believe that the parameters sent by O365 are valid and should be either accepted, or ignored, **but not refused**.
コントリビューションガイド
評価
この issue はまだ評価されていません。