Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 33818 - qmail: add noauthcram local use flag [done for -r14]
Summary: qmail: add noauthcram local use flag [done for -r14]
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-19 05:48 UTC by Georgi Georgiev
Modified: 2003-11-30 03:34 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Georgi Georgiev 2003-11-19 05:48:02 UTC
I am running qmail with vpopmail. I also use the smtp authentication for users connecting from outside to qmail-smtpd and I use vchkpw to check user passwords. However, vchkpw does not support CRAM authentication and qmail-smtpd advertizes the AUTHCRAM capability. What happens is that if a user decides to login using CRAM they are always denied access.

I suggest the following little patch to the qmail ebuild.

--- ./qmail-1.03-r13.ebuild   2003-11-07 05:23:27.000000000 +0900
+++ ./qmail-1.03-r13.ebuild   2003-11-19 22:35:46.000000000 +0900
@@ -6,3 +6,3 @@
 
-IUSE="ssl"
+IUSE="ssl noauthcram"
 DESCRIPTION="A modern replacement for sendmail which uses maildirs and includes SSL/TLS, AUTH SMTP, and queue optimization"
@@ -70,2 +70,3 @@
        epatch ${DISTDIR}/qregex-starttls-2way-auth.patch
+       use noauthcram && sed -i -e 's/^#define AUTHCRAM//' ${S}/qmail-smtpd.c
Comment 1 Georgi Georgiev 2003-11-19 05:50:03 UTC
Sorry, I submitted an old version.

--- ./qmail-1.03-r13.ebuild   2003-11-07 05:23:27.000000000 +0900
+++ ./qmail-1.03-r13.ebuild     2003-11-19 22:38:35.000000000 +0900
@@ -6,3 +6,3 @@
 
-IUSE="ssl"
+IUSE="ssl noauthcram"
 DESCRIPTION="A modern replacement for sendmail which uses maildirs and includes SSL/TLS, AUTH SMTP, and queue optimization"
@@ -42,2 +42,3 @@
        ssl? ( >=dev-libs/openssl-0.9.6g )
+       noauthcram? ( >=sys-apps/sed-4 )
        >=net-mail/queue-fix-1.4-r1"
@@ -70,2 +71,3 @@
        epatch ${DISTDIR}/qregex-starttls-2way-auth.patch
+       use noauthcram && sed -i -e 's/^#define AUTHCRAM//' ${S}/qmail-smtpd.c
 
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-11-30 00:14:46 UTC
coming in -r14
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-11-30 03:34:17 UTC
if you are feeling experimental, -r14 is now out. It's hardmasked until I personally test it some more, but it should work.