Hi there,
I want to enable authenticated smtp between server and mua.
Therefor I installed either mrs.brisbys qmail-smtp patch or
the advanced version from http://members.elysium.pl/brush/qmail-smtpd-auth/
As I use vpopmail I applied all modifications mentioned in
http://members.elysium.pl/brush/qmail-smtpd-auth/faq.html
Now when I connect to the server using outlook or outlook express (both are
mentioned on the above website as working) qmail-smtpd exits with "421 out
of memory (#4.3.0)".
I attached the relevant code so that someone might tell me what the problem
is..
<snipp from qmail-smtpd.c>
//This is mrs. brisbys version, but its the same problem with the other one
too
switch ((pid=fork())) {
case -1: die_nomem();
case 0: close(fds[1]);
fd_copy(3,fds[0]);
execvp(smtpauth_argv[1], smtpauth_argv+1);
die_nomem();
/*Thats the exception were qmail-smtpd dies. I'm not quite sure why they
inserted die_nomem() here anyway, but it seems as if there's a problem
invoking the external
programm which validates user/pass */
};
close(fds[0]);
write(fds[1], smtpauthlogin, str_len(smtpauthlogin)+1);
write(fds[1], smtpauthpass, str_len(smtpauthpass)+1);
close(fds[1]);
wait_pid(&st, pid);
if (wait_exitcode(st) == 0) {
out("235 go ahead\r\n");
flush();
relayclient="";
return;
}
sleep(2);
out("535 auth failure\r\n"); flush(); _exit(0);
</snipp>
<snipp from qmail/supervise/qmail-smtpd/run>
#!/bin/sh
QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g vpopmail`
exec /usr/local/bin/softlimit -m 4000000 /usr/local/bin/tcpserver -H -R -l
mydomain -u $QMAILDUID -g $NOFILESGID 0 smtp /usr/local/bin/rblsmtpd
/var/qmail/bin/qmail-smtpd /usr/vpopmail/bin/vchkpw /bin/true
</snipp>
Thanx in advance
Manuel, the confused one