[vchkpw] CHKUSER for non-netqmail, non-stock-qmail

2006-06-15 Thread Rainer Duffner
Hi, it seems I need to outfit a custom-patched version of qmail with CHKUSER. In qmail-smtpd.c it has the following code: void smtp_rcpt(arg) char *arg; { if (!seenmail) { err_wantmail(); return; } if (!addrparse(arg)) { err_syntax(); return; } if (flagbarfspf) { err_spf(); return; } switch

Re: [vchkpw] CHKUSER for non-netqmail, non-stock-qmail

2006-06-15 Thread tonix (Antonio Nati)
Cut away all these lines:  if (relayclient) {    --addr.len;    if (!stralloc_cats(&addr,relayclient)) die_nomem();    if (!stralloc_0(&addr)) die_nomem();  }  else #ifndef TLS    if (!addrallowed()) { err_nogateway(); return; } #else    if (!addrallowed())     { if (ssl) { STACK_OF(X50

Re: [vchkpw] CHKUSER for non-netqmail, non-stock-qmail

2006-06-15 Thread Rainer Duffner
tonix (Antonio Nati) wrote: Cut away all these lines: and put the following code: /* start chkuser code */ switch (chkuser_realrcpt (&mailfrom, &addr)) { case CHKUSER_KO: return; break; case CHKUSER_RELAYING: --addr.len; if (!stralloc_cats(&addr,rela

Re: [vchkpw] CHKUSER for non-netqmail, non-stock-qmail

2006-06-15 Thread tonix (Antonio Nati)
At 16.15 15/06/2006, you wrote: tonix (Antonio Nati) wrote: Cut away all these lines: and put the following code: /* start chkuser code */ switch (chkuser_realrcpt (&mailfrom, &addr)) { case CHKUSER_KO: return; break; case CHKUSER_RELAYING: --addr.len;

Re: [vchkpw] CHKUSER for non-netqmail, non-stock-qmail

2006-06-15 Thread Rainer Duffner
tonix (Antonio Nati) schrieb: At 16.15 15/06/2006, you wrote: Thanks, Tonino. But isn't that snippet needed for the TLS-support? If you are using specific certificates on client side you probably need it, otherwise it is completely unuseful. Ah, yes. So the TLS-patch would support authent

Re: [vchkpw] CHKUSER for non-netqmail, non-stock-qmail

2006-06-16 Thread tonix (Antonio Nati)
At 23.09 15/06/2006, you wrote: tonix (Antonio Nati) schrieb: At 16.15 15/06/2006, you wrote: Thanks, Tonino. But isn't that snippet needed for the TLS-support? If you are using specific certificates on client side you probably need it, otherwise it is completely unuseful. Ah, yes. So th