My guess is that you are missing a piece that is supposed to build a new cdb
when the user authenticates, not just add a IP record.  For it to take
effect immediately, you need to add the IP and build a new CDB then.  The
age one should run independent of the users authenticating.


Russell Nelson made a open-smtp patch that achieves this if you are using
checkpasswd as part of your system.

The methodolgy is it patches checkpasswd to run a script which adds an entry
to the cdb database when a user successfully authenticates.  A small script
is then run by cron to 'age' the cdb database.

Small, and effective.  You do have to patch checkpassswd, but unless you are
running lots of other patches, whats just 1 lil patch? =)

I use it on my system (after updating the syntax of the scripts for a guess
a newer version of tcpserver) and its been flawless so far.

There should be a link on the qmail page.

-Steve

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 01, 1999 7:52 PM
To: [EMAIL PROTECTED]
Subject: Re: relay-ctrl 1.2 - doesn't work


On Wed, 1 Dec 1999 16:20:55 -0800, Jon Rust wrote:

>It does work-- I'm using it now, but I can't see what you've missed
>here. Is anything showing up in the spool directory,
>/opt/relay-ctrl/spool? Does it exist? Are you positive you have the
>names of the rules files correct?

The IPs are written to the spool dir and relay-ctrl-age creates a new
cdb file every 5 minutes via cron. It's strange. Are there other relay
solutions which works?

>At 11:16 PM +0100 12/1/99, [EMAIL PROTECTED] wrote:
>>Hello,
>>
>>I tried to setup relay-ctrl on a new machine, but it doesn't work.
>>relay-ctrl-allow writes the IP in the spool dir, but does not make a
>>new cdb file. relay-ctrl-age (executed via cron) builds a new cdb file
>>every five minutes. So I have to wait up to 5 minutes to relay a mail.
>>It's a little bit weird, because I installed an older version on
>>another system and it worked perfectly. Do you have any idea what could
>>be wrong? I thinks relay-ctrl-allow executes relay-ctrl-age. Maybe
>>there is a problem in executing relay-ctrl-age, but I don't know why.
>>AGE_CMD looks fine.
>>
>>pop3d part from my qmail startup file:
>>
>>sh -c "start-stop-daemon --start --quiet --user root \
>>  --exec /usr/bin/tcpserver -- \
>>  0 pop-3 /usr/sbin/qmail-popup `hostname`.`dnsdomainname` \
>>  /opt/vmailmgr/bin/checkvpw /opt/relay-ctrl/sbin/relay-ctrl-allow
>>/usr/sbin/qmail-pop3d Maildir &"
>>
>>
>>Here my defines.h:
>>
>>#ifndef AGE_MINUTES
>>#define AGE_MINUTES 10
>>#endif
>>
>>#ifndef BUFSIZE
>>#define BUFSIZE 4096
>>#endif
>>
>>#ifndef RULESDIR
>>#define RULESDIR "/etc"
>>#endif
>>
>>#ifndef SPOOLDIR
>>#define SPOOLDIR "/opt/relay-ctrl/spool"
>>#endif
>>
>>#ifndef AGE_CMD
>>#define AGE_CMD "/opt/relay-ctrl/sbin/relay-ctrl-age"
>>#endif
>>
>>#ifndef TCPRULES
>>#define TCPRULES "/usr/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
>




Reply via email to