-
Notifications
You must be signed in to change notification settings - Fork 22
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
SMTP Auth #28
base: master
Are you sure you want to change the base?
SMTP Auth #28
Conversation
Thanks for the PR! I'm curious, what client are you using maildump with that requires smtp auth? |
Hey, I know it's been a long time, but if you rebase this (and adapt to maildump now being Python 3.6+ only) I'll promise to merge it quickly :) |
…SSWD style file for SMTP authorization
…there is no initial login
Hi, |
|
||
return self._smtp_auth.check_password(auth_data_splitted[1], auth_data_splitted[2]) | ||
|
||
def smtp_EHLO(self, arg): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really need to override all this? A quick google search pointed me to this patch from this python issue where someone tried to get smtp auth support upstream, and they don't override EHLO. However, I don't know how good that implementation is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know how in other way push info about AUTH PLAIN to capabilities.
maildump_runner/main.py
Outdated
@@ -87,11 +91,19 @@ def main(): | |||
args.htpasswd = os.path.abspath(args.htpasswd) | |||
print('Htpasswd path is relative, using {0}'.format(args.htpasswd)) | |||
|
|||
if args.smtp_auth and not os.path.isabs(args.smtp_auth): | |||
args.smtp_auth = os.path.abspath(args.smtp_auth) | |||
print('SMTP Htpasswd path is relative, using {0}'.format(args.smtp_auth)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
print('SMTP Htpasswd path is relative, using {0}'.format(args.smtp_auth)) | |
print('Htpasswd path for SMTP AUTH is relative, using {0}'.format(args.smtp_auth)) |
added option to handle smtp authorization. There exists stuff that requires SMTP authorization, and cannot use no auth at all. So I added an option to enable this using options:
--smtp-auth - enable SMTP authorization
--smtp-username, --smtp-password