Skip to content

Implement better authentication - #34

Merged
corecode merged 1 commit into
corecode:masterfrom
mtremer:better-authentication
Feb 12, 2018
Merged

corecode merged 1 commit into
corecode:masterfrom
mtremer:better-authentication

Conversation

@mtremer

@mtremer mtremer commented Nov 10, 2015

Copy link
Copy Markdown
Contributor

DMA tries to authenticate by simply trying various authentication
mechanisms. This is obviously not conforming to RFC and some mail
providers detect this is spam and reject all emails.

This patch parses the EHLO response and reads various keywords
from it that can then later in the program be used to jump into
certain code paths.

Currently this is used to only authenticate with CRAM-MD5 and/or
LOGIN if the server supports one or both of these. The
implementation can be easily be extended though.

Signed-off-by: Michael Tremer michael.tremer@ipfire.org

DMA tries to authenticate by simply trying various authentication
mechanisms. This is obviously not conforming to RFC and some mail
providers detect this is spam and reject all emails.

This patch parses the EHLO response and reads various keywords
from it that can then later in the program be used to jump into
certain code paths.

Currently this is used to only authenticate with CRAM-MD5 and/or
LOGIN if the server supports one or both of these. The
implementation can be easily be extended though.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Comment thread net.c

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like this manual parsing. I know that dma is full of this kind of parsing, but we should try to keep it to a minimum.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean? This is pretty much everywhere done this way. I didn't feel that using strstr() for searching for certain keywords would be a good idea.

@corecode corecode mentioned this pull request Nov 18, 2015
@mtremer

mtremer commented Apr 17, 2016

Copy link
Copy Markdown
Contributor Author

Just want to remind that this issue is still open and I am still seeking for merging this patch if there is nothing else wrong with it that I should fix.

@mtremer

mtremer commented Feb 12, 2018

Copy link
Copy Markdown
Contributor Author

Is there any chance to merge this patch, too?

@corecode
corecode merged commit a0adb56 into corecode:master Feb 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants