]> git.ipfire.org Git - people/ms/dma.git/commit
Implement better authentication better-authentication
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 9 Nov 2015 21:52:08 +0000 (21:52 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 10 Nov 2015 22:42:46 +0000 (22:42 +0000)
commit1fa7a882dd22d5f619b3645c6597a419034e9b4e
tree020cfa3a9b03e0e6f3dcdecc83f05b5916967f92
parentc17554544edbf3089ff3b196ef8c4dab3bc8290c
Implement better authentication

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>
crypto.c
dma.h
net.c