Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 39579 - qmail-smtpd should not boast AUTH capability if no password checker has been defined.
Summary: qmail-smtpd should not boast AUTH capability if no password checker has been ...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Qmail Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 95892
  Show dependency tree
 
Reported: 2004-01-27 10:16 UTC by Kris Kelley
Modified: 2006-11-14 04:01 UTC (History)
1 user (show)

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 Kris Kelley 2004-01-27 10:16:06 UTC
qmail-smtpd, as compiled and installed by qmail ebuild 1.03-r13, always boasts AUTH capability, even when a password checking program has not been defined (that is, QMAIL_SMTP_POST and/or QMAIL_SMTP_CHECKPASSWORD have not been set to anything in /var/qmail/control/conf-smtpd).  This can lead to the following SMTP session:

> 220 tollymac.zoo ESMTP
< ehlo localhost
> 250-tollymac.zoo
> 250-AUTH LOGIN CRAM-MD5 PLAIN
> 250-AUTH=LOGIN CRAM-MD5 PLAIN
> 250-STARTTLS
> 250-SIZE 0
> 250-PIPELINING
> 250 8BITMIME
< auth login
> 503 auth not available (#5.3.3)

I would suggest a patch that checks the number of command-line arguments passed to qmail-smtpd, and removes the AUTH lines from the EHLO response if the number is less than 4.

Reproducible: Always
Steps to Reproduce:
1.  Install and run qmail 1.03-r13 using the default configuration
2.  Launch an SMTP session.
3.  Try to send along "AUTH LOGIN" or another AUTH command.

Actual Results:  
qmail-smtpd responds that AUTH is not available, after stating AUTH was 
available in the EHLO response.

Expected Results:  
qmail-smtpd should not boast AUTH capability unless the default configuration 
has been changed and a password checking program defined.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-01-27 12:51:57 UTC
patched accepted as always.

i responded to your other item re qmail uids as well.
Comment 2 Fred Dinkler 2005-05-24 06:58:42 UTC
It apears that this is breaking my auth, I emerged 1.03-r15 I cannot get it to
auth at all, how do I undo this?
Comment 3 Kris Kelley 2005-06-05 18:03:07 UTC
I am no longer running qmail on any of my systems, so I am unable to tell
whether this issue still exists in the latest qmail ebuilds.  This bug should
either be closed or transferred to a new owner (if possible).

Thanks.
Comment 4 Michael Hanselmann (hansmi) (RETIRED) gentoo-dev 2005-08-07 03:45:05 UTC
I think that we can fix this with -r17.
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-11-14 03:47:22 UTC
hansmi: what's up on this one, should we just drop with WONTFIX?
Comment 6 Michael Hanselmann (hansmi) (RETIRED) gentoo-dev 2006-11-14 04:01:48 UTC
Try mail-mta/netqmail. We won't add custom patches.