Hi, i try to use relay-ctrl with my qmail but it does not work:

Trying 192.168.168.100...
Connected to ernie.sesamestreet.net.
Escape character is '^]'.
+OK <[EMAIL PROTECTED]>
user olivleh1
+OK 
pass *
Error: relay-ctrl-allow cannot be run as root-ERR authorization failed
Connection closed by foreign host.
olivleh1@sina>

here are my start scripts an my defines.h from relay-ctrl:


%cat defines.h 
#ifndef CONFIGDIR
#define CONFIGDIR "/usr/local/etc/relay-ctrl"
#endif

#ifndef AGE_CMD
#define AGE_CMD "/usr/local/sbin/relay-ctrl-age"
#endif

#ifndef AGE_MINUTES
#define AGE_MINUTES 10
#endif

#ifndef BUFSIZE
#define BUFSIZE 4096
#endif

#ifndef RULESDIR
#define RULESDIR "/service/smtpd/"
#endif

#ifndef SPOOLDIR
#define SPOOLDIR "/var/qmail/relay-spool"
#endif

#ifndef TCPRULES
#define TCPRULES "/usr/local/bin/tcprules"
#endif

#ifndef SMTPRULES
#define SMTPRULES "tcp.smtp"
#endif

#ifndef SMTPCDB
#define SMTPCDB "tcp.smtp.cdb"
#endif

#ifndef SMTPFIXUP
#define SMTPFIXUP "smtp.fixup"
#endif
%grep "prefix" Makefile
prefix  = /usr/local
sbindir = $(prefix)/sbin
mandir  = $(prefix)/man
%

nun nochmal meien beiden run scripte:

%cd /service/pop3d/
%cat run
#!/bin/sh
exec 2>&1 \
envdir ./env \
sh -c 'exec '\
'softlimit ${DATALIMIT+"-d$DATALIMIT"} '\
'/usr/local/bin/tcpserver '\
'    -vDRHl0 '\
'    ${BACKLOG+"-b$BACKLOG"} '\
'    ${CONCURRENCY+"-c$CONCURRENCY"} '\
'    -xtcp.cdb '\
'    -- "${IP-0}" "${PORT-110}" '\
'/var/qmail/bin/qmail-popup `sed 1q /var/qmail/control/me` '\
'/usr/local/sbin/relay-ctrl-allow \'
'/usr/local/bin/checkpassword '\
'/var/qmail/bin/qmail-pop3d Maildir'
%cd /service/smtpd/
%cat run
#!/bin/sh
exec 2>&1 \
/usr/local/bin/envdir /var/qmail/service/smtpd/env \
sh -c 'exec '\
'/usr/local/bin/envuidgid qmaild '\
'/usr/local/bin/softlimit ${DATALIMIT+"-d$DATALIMIT"} '\
'/usr/local/bin/tcpserver '\
'    -vUDRHl0 '\
'    ${BACKLOG+"-b$BACKLOG"} '\
'    ${CONCURRENCY+"-c$CONCURRENCY"} '\
'    -xtcp.cdb '\
'    -- "${IP-0}" "${PORT-25}" '\
'/var/qmail/bin/qmail-smtpd'
%

i had installed relay-ctrl with 'make root-install'

%ls -alois /usr/local/sbin/relay*
326372  9 -rwxr-xr-x  1 root  wheel  - 8839 Nov  8 15:15
/usr/local/sbin/relay-ctrl-age
326256  7 -rwsr-xr-x  1 root  wheel  - 6765 Nov  8 15:15
/usr/local/sbin/relay-ctrl-allow
%


Olli


-- 
Having trouble in Windows? Reboot!
Having trouble in Unix? Be root!

Reply via email to