Hi guys,
I have a 8.2 amd64 machine where I have to build qmail but unfortunately, the end result doesn't work as expected because one can use *ANY* username and password (in fact, *ANY* key on the keyboard to get a valid login into qmail).
I built qmail-tls and qmail from the ports with the following options:
Installed tcpserver with:
Installed checkpassword and vpopmail (with threaded-perl 5.12).
I start qmail with
and /etc/tcp.smtp contains:
The problem is the following (telnet from another network/country/ISP/etc):
so, what? I can type whatever I want and I get a green "go ahead"? That's weird.
What I've tried so far:
Can someone replicate this problem?
I have a 8.2 amd64 machine where I have to build qmail but unfortunately, the end result doesn't work as expected because one can use *ANY* username and password (in fact, *ANY* key on the keyboard to get a valid login into qmail).
I built qmail-tls and qmail from the ports with the following options:
Code:
SMTP_AUTH_PATCH=on "Provide SMTP Authentication"
QMAILQUEUE_PATCH=on "run a QMAILQUEUE program"
BIG_TODO_PATCH=on "enable big_todo qmail patch"
BIG_CONCURRENCY_PATCH=on "use a concurrency greater than 240"
QMTPC_PATCH=on "send email using qmtp protocol"
MAILDIRQUOTA_PATCH=on "Maildir++ support"
BLOCKEXEC_PATCH=on "block many windows viruses/worms"
DISCBOUNCES_PATCH=on "discard double-bounces"
EXTTODO_PATCH=on "extern high-perform. todo processing"
RCDLINK=on "create rc.d/qmail.sh symlink"
Code:
MAN=on "Install man(1) pages"
RSS_DIFF=on "Patch rblsmtpd for qmail users"
SSL=on "Adds support for SSL (Secure Socket Layer)"
I start qmail with
Code:
/usr/local/bin/tcpserver -H -R -c 255 -x /etc/tcp.smtp.cdb -u 82 -g 81 0 25 /var/qmail/bin/qmail-smtpd
/usr/local/bin/checkpassword /usr/bin/true
and /etc/tcp.smtp contains:
Code:
127.0.0.1:allow,RELAYCLIENT=""
192.168.1.:allow,RELAYCLIENT=""
:allow
The problem is the following (telnet from another network/country/ISP/etc):
Code:
telnet <ip> 125 [B]<- pf redirect rule from external 125 to internal 25[/B]
Trying <ip>...
Connected to <ip>.
Escape character is '^]'.
220 <dns goes here> ESMTP
ehlo c
250- <dns goes here>
250-AUTH LOGIN CRAM-MD5 PLAIN
250-AUTH=LOGIN CRAM-MD5 PLAIN
250-STARTTLS
250-PIPELINING
250 8BITMIME
auth login plain
334 UGFzc3dvcmQ6
typewhatever [B]<- should be base64 encoding here and then it should as for a password[/B]
235 ok, go ahead (#2.0.0)
so, what? I can type whatever I want and I get a green "go ahead"? That's weird.
What I've tried so far:
- Using the /usr/local/bin/checkpassword instead of /usr/local/vpopmail/bin/vchkpw, but to no avail.
- netqmail-1.06 with the smtp-patch - makes no difference
- qmail-1.03 from djb website - no difference
- Fresh VirtualBox 8.2-amd64 installation with up-to-date ports - same result
- Also tried a 9-STABLE (amd64) but due to problems with the utmp.h file and qmail, I did not go further.
Can someone replicate this problem?