-
Notifications
You must be signed in to change notification settings - Fork 39
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
aiosmtpd rejects unknown parameters in MAIL FROM #98
Comments
This is a known upstream issue with aiosmtpd, the SMTP library that Mailrise is using (aio-libs/aiosmtpd#299). I've implemented the workaround identified in that thread. Try the new image (7cdfe27) and see if that resolves this for you. |
Confirmed, that work around fixed it. Thanks! |
Awesome! Glad it worked. |
Reverting this fix because it breaks SMTP authentication. Unfortunately, I don’t think there’s a way to fix this from Mailrise’s end. It’s aiosmtpd that’s refusing the messages. |
Fair enough. I am perfectly fine with not updating my version as have no need for authentication. Thank you! |
Even better: With 76e6162, the workaround will only be applied when not using SMTP authentication. 😉 I’ll keep this issue open because we really should just ignore all unknown parameters as soon as aiosmtpd lets us do that. |
Hi, the new handle_EHLO hook added with 76e6162 seems to cause an SMTP session exception in aiosmtpd if SMTP authentication is used:
The hook does not seem to return anything if SMTP auth is used, but aiosmtpd replaces the response sent to EHLO with what the hook returns and expects it to be an iterable: https://github.com/aio-libs/aiosmtpd/blob/83168cdc057d9d63b6f212f330fafecb4fbfe662/aiosmtpd/smtp.py#L863-L866 I guess if SMTP authentication is used the hook should simply return the response that was passed to it as-is. Best Regards, |
Thanks. Reverting until I have integration tests for all of the SMTP authentication functions. |
I am struggling to get one of my systems in my homelab to work. vCenter seems to be passing AUTH=<> as part of the message and mailrise is rejecting the email and returning it sender.
while talking to [IP address]:
MAIL From:[email protected] SIZE=1459 AUTH=<>
<<< 555 MAIL FROM parameters not recognized or not implemented
554 5.0.0 Service unavailable
Not sure if this is a bug or not
The text was updated successfully, but these errors were encountered: