Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 137014 - option for netqmail to force TLS before AUTH
Summary: option for netqmail to force TLS before AUTH
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Qmail Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-16 13:16 UTC by pedro venda
Modified: 2006-06-17 02:59 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild patch to include use flag 'notlsbeforeauth' (netqmail-1.05-r3-notlsbeforeauth.diff,1015 bytes, patch)
2006-06-16 13:17 UTC, pedro venda
Details | Diff
patch for qmail-smtpd.c to optionally (chose at compile time) prevent auth without tls (qmail-smtpd-tlsbeforeauth.patch,2.13 KB, patch)
2006-06-16 13:18 UTC, pedro venda
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description pedro venda 2006-06-16 13:16:44 UTC
netqmail is patched with Bill Schupp's "TLS and SMTP-AUTH support" patch, but
that patch doesn't conteplate the possibility of denying authentication
*before* a TLS session is established.

It's a solid security feature that could be implemented with a trivial patch
and an USE flag on the ebuild (although I feel that auth before tls shouldn't
be allowed at all, some other people may disagree, hence the option).

I'm aware of the netqmail patch policy (which I agree with) but a well
reviewed and trivial patch that implements an important security feature seems
to be a viable exception.

I've attached a patch for netqmail-1.05-r3.ebuild and another for
qmail-smtpd.c (to put in mail-mta/netqmail/files/). The patch for
qmail-smtpd.c is almost equal to the one in bug #31426 for qmail.
Comment 1 pedro venda 2006-06-16 13:17:39 UTC
Created attachment 89341 [details, diff]
ebuild patch to include use flag 'notlsbeforeauth'
Comment 2 pedro venda 2006-06-16 13:18:42 UTC
Created attachment 89342 [details, diff]
patch for qmail-smtpd.c to optionally (chose at compile time) prevent auth without tls
Comment 3 Michael Hanselmann (hansmi) (RETIRED) gentoo-dev 2006-06-16 16:09:56 UTC
My policy is to have netqmail as much as possible like upstream. Obviously, that's not fully possible, thus there are some patches in there. Your patch has no upstream maintainer and I won't add it. Please use QMAIL_PATCH_DIR.
Comment 4 pedro venda 2006-06-17 02:59:13 UTC
(In reply to comment #3)
> My policy is to have netqmail as much as possible like upstream. Obviously,
> that's not fully possible, thus there are some patches in there. Your patch has
> no upstream maintainer and I won't add it. Please use QMAIL_PATCH_DIR.

I understand your point of view. Before I offer to maintain it myself, I'll contact Bill Schupp to see if he's interested in adding this feature to his patch.