Sorry, ill include the complete run file;

#!/bin/sh
QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl" ; export QMAILQUEUE
QMAILDUID=`id -u vpopmail`
NOFILESGID=`id -g vpopmail`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
LOCAL=`head -1 /var/qmail/control/me`
if [ -z "$QMAILDUID" -o -z "$NOFILESGID" -o -z "$MAXSMTPD" -o -z "$LOCAL" ]; then
echo QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset in
echo /var/qmail/supervise/qmail-smtpd/run
exit 1
fi
if [ ! -f /var/qmail/control/rcpthosts ]; then
echo "No /var/qmail/control/rcpthosts!"
echo "Refusing to start SMTP listener because it'll create an open relay"
exit 1
fi
exec /usr/local/bin/softlimit -m 40000000 \
/usr/local/bin/tcpserver -v -R -l "$LOCAL" -x /etc/tcp.smtp.cdb -c "$MAXSMTPD" \
-u "$QMAILDUID" -g "$NOFILESGID" 0 smtp \
/var/qmail/bin/qmail-smtpd mx.domain.com \
/home/vpopmail/bin/vchkpw /usr/bin/true 2>&1

/Aleksander

On 9/21/05, tonix (Antonio Nati) <[EMAIL PROTECTED]> wrote:
At 11.14 21/09/2005, you wrote:
Hi

I didnt. I missed the trailing */ on that line it seems. Thanks!
-
Now, it seems the patch didnt like working with auth-jms1.4a.patch(auth patch) and/or qmail-1.03-jms1.5.patch (tls patch).

I got the auth patch from the vpopmail contrib dir and tried with that, leaving the ones mentioned above out of it and then patched with the netqmail*auth*chkuser patch. I believe im not really in the need for that tls anyways for smtp transactions. Now, anyone know if there is another trick to that to make the auth work with chkuser? Qmail compiled fine
with the patches and the result at the moment is the the smtp wont auth anyone and chkuser works somewhat how it is designed to work (sweet).

220 mx.domain.com ESMTP
ehlo
250-mx.domain.com
250-PIPELINING
250-8BITMIME
250-SIZE 0
250 AUTH LOGIN PLAIN

chkuser.c
#include "/home/vpopmail/include/vpopmail.h"
#include "/home/vpopmail/include/vauth.h"
#include "/home/vpopmail/include/vpopmail_config.h"

/* #define CHKUSER_ENABLE_VAUTH_OPEN */

/usr/local/bin/tcpserver -v -R -l "$LOCAL" -x /etc/tcp.smtp.cdb -c "$MAXSMTPD" \
-u "$QMAILDUID" -g "$NOFILESGID" 0 smtp \
/var/qmail/bin/qmail-smtpd mx.domain.com \
/home/vpopmail/bin/vchkpw /usr/bin/true 2>&1

Why are you running it with -u $QMAILDUID ?

You should run it as vpopmail, excluding any uidswitching (if you enabled uidswitching within chkuser_settings.h, comment it).

Cert must be owned by vpopmail as well.

Tonino


I undefined and defined /* #define CRAM_MD5 */ from qmail-smtpd.c, compiled fine - but no-go. Wont auth.

Anyone notice anything i might have missed out?

This hoffman patch -should- work with a vpopmail/mysql setup right?

Thanks!

/Aleksander

On 9/20/05, tonix (Antonio Nati) <[EMAIL PROTECTED]> wrote:
At 11.51 20/09/2005, you wrote:

Tried to patch up a clean src of qmail-1.03. I get the same error as I get with the already patched up src.

Hope this is right.

Yes. How did you define CHKUSER_STARTING_VARIABLE within chkuser_settings.h?

Tonino


Thanks,
/Aleksander

-
static void first_time_init (void) {

  char * temp_string;

#if !defined CHKUSER_ALWAYS_ON && defined CHKUSER_STARTING_VARIABLE
        starting_string = env_get (CHKUSER_STARTING_VARIABLE);
        if (starting_string) {
                if (strcasecmp(starting_string, "ALWAYS") == 0) {
                        starting_value = 1;
                } else if (strcasecmp(starting_string, "DOMAIN") == 0) {
                        starting_value = 0;
                }
        } else {
                starting_string = "";
        }
#endif

-

./load qmail-qmtpd rcpthosts.o control.o constmap.o \
received.o date822fmt.o now.o qmail.o cdb.a fd.a wait.a \
datetime.a open.a getln.a sig.a case.a env.a stralloc.a \
alloc.a substdio.a error.a str.a fs.a auto_qmail.o
./compile qmail-smtpd.c
qmail-smtpd.c: In function `main':
qmail-smtpd.c:1021: warning: return type of `main' is not `int'
./compile spf.c
./compile base64.c
./compile chkuser.c
chkuser.c: In function `first_time_init':
chkuser.c:425: error: syntax error before '/' token
make: *** [chkuser.o] Error 1


On 9/20/05, tonix (Antonio Nati) <[EMAIL PROTECTED]> wrote:
At 11.26 20/09/2005, you wrote:
 
Hi,
 
Trying to patch up an already auth+tls+spf patched qmail-smtpd and seems i hit a rock and
hoping for some guidance.
 
I followed the manual patch guide at http://www.interazioni.it/opensource/chkuser/documentation/installation/manual.html     and think I somewhat
fit all the pices in the right places. When i now try to compile it I get this:
 
make
./compile chkuser.c
chkuser.c: In function `first_time_init':
chkuser.c:425: error: syntax error before '/' token
make: *** [chkuser.o] Error 1
 
I have not changed anything directly within the .c file
Can you pls post ten lines of code surrounding the error?
Tonino


 
Anyone got a clue?
 
Thanks!
 
/Aleksander



Reply via email to