The patch you are using is incredibly old.
You should consider auth-jms1.4a.patch from http://www.jms1.net/qmail/auth-jms1.4a.patch
If that link is broken, google on "auth-jms1.4a.patch" and look at the cached version.
You might also consider the qmail-requireauth.patch that allows you to set an environment variable to selectively require authentication. I had to manually apply the patch as some of the line numbers didn't jive. I've pasted it below.
Greg
*** qmail-smtpd-orig.c Tue May 15 13:21:04 2001
--- qmail-smtpd.c Tue May 15 13:26:04 2001
***************
*** 72,77 ****
--- 72,79 ----
int err_authabrt() { out("501 auth exchange cancelled (#5.0.0)\r\n"); return -1; }
int err_input() { out("501 malformed auth input (#5.5.4)\r\n"); return -1; }
+ void err_authrequired() { out("503 you must authenticate first (#5.5.1)\r\n"); }
+
stralloc greeting = {0};
void smtp_greet(code) char *code; *************** *** 93,98 **** --- 95,102 ---- char *remoteinfo; char *local; char *relayclient; + char *requireauth; + int authd = 0;
stralloc helohost = {0}; char *fakehelo; /* pointer into helohost, or 0 */ *************** *** 143,148 **** --- 147,153 ---- if (!remotehost) remotehost = "unknown"; remoteinfo = env_get("TCPREMOTEINFO"); relayclient = env_get("RELAYCLIENT"); + requireauth = env_get("REQUIREAUTH"); dohelo(remotehost); }
*************** *** 259,264 **** --- 264,270 ---- } void smtp_mail(arg) char *arg; { + if (requireauth && !authd) { err_authrequired(); return; } if (!addrparse(arg)) { err_syntax(); return; } flagbarf = bmfcheck(); seenmail = 1; *************** *** 425,431 **** char **childargs; substdio ssup; char upbuf[128]; - int authd = 0;
int authgetl(void) { int i; --- 431,436 ----
blist wrote:
I am installing vchkpw + SMTP AUTH + qmail. I have installed qmail with this patch:
qmail-smtpd-auth-0.31 from http://members.elysium.pl/brush/qmail-smtpd-auth/
Here is my run tcpserver script for qmail-smtpd:
exec /usr/local/bin/softlimit -m 10000000 \ /usr/local/bin/tcpserver -v -H -R -l "$LOCAL" -x \ /usr/local/vpopmail/etc/tcp.smtp.cdb -c "$MAXSMTPD" -u \ "$QMAILDUID" -g vchkpw 192.168.5.50 25 \ /usr/local/bin/fixcrio \ /usr/local/bin/rblsmtpd -r relays.ordb.org \ /var/qmail/bin/qmail-smtpd ps1.prostream.net \ /usr/local/vpopmail/bin/vchkpw /bin/true &
I cannot get any users to authenticate when sending email. I then tried taking out ps1.prostream.net after /var/qmail/bin/qmail-smtpd and it lets all users authenticate. I am running SUSE 9.0 x86-64 with vpopmail 5.4.0
Any ideas why its not working?
Thanks, Brooks Roy