Not sure if this help you but from my experience with relay-ctrl:

1. create the /var/spool/relay-ctrl directory yourself .. (afair the relay-ctrl-age don't have the code to create this)
2. check in the relay-ctrl-age.c file and modify the folowing lines for your system then try to compile and install again.

--- BEGIN CUT ---
const char* rulesdir = "/etc/tcpcontrol";                <-- probably this line is /etc for you :)
const char* smtprules = "smtp.rules";                <-- this is the line you should check and change acordingly with your tcp.smtp file name
const char* smtpcdb = "smtp.cdb";                <-- this is the line you should check and change acordingly with your tcp.smtp.cdb file name
const char* tcprules = "/usr/bin/tcprules";                <-- as i understood you allready create a symlink for that !?
const char* spooldir = "/var/spool/relay-ctrl";        <-- create this directory yourself
--- END CUT ---

3. on my machine (Slack 7.1) the relay-ctrl-age have a minor bug in memory allocation and don't allow file names more than 11 chars .. so you must write the smtp cdb file in something like this "tcpsmtp.cdb" instead of "tcp.smtp.cdb" ... don't know if this gone work on a rh machine .. but you should check to see if the cdb file is properly created ... (try this creating an file with the name 192.168.100.1 in your /var/spool/relay-ctrl and then run relay-ctrl-age from the prompt and see what tcp.smt.cdb file contain)

4. be sure that at the end of the tcp.smtp file are a CR (cariage return) because the relay-ctrl-age append the remote pop3 addres at the end of this file and if there are no CR after the last line then will concatenate the last line with the remote pop3 address and tcprules will return an error ...

Sorry .. don't know anything about rpm ... i'm on slack so I don't use this :))

Best regards,
George Pogorelschi

Quadrant Interactive
http://www.qi.ro/
Tel: +40-1 323 06 99
Mobile: +40-09 55 10 17





_______________________________________________________________________

Message: 1
  Date: Thu, 24 May 2001 15:09:25 +0200
  From: "Webservice" <[EMAIL PROTECTED]>
Subject: Re: Relay-ctrl compiles wrong with RH 7.0?

> From: "Santosh Pasi" <[EMAIL PROTECTED]>
> 1. Did you install relay-ctrl as root and after using "make"; did you
> follow "make install-root".

Yes


> 2. Add entry in crontab using crontab -e as given in relay-control doc

Yes, it works fine, I see that coming up each time


> 3. Make this link
>    ln -s /usr/local/bin/tcprules /usr/bin/tcprules

Did that. --> no effect


> 4. Check your smtp-script(for -x /etc/tcpcontrol/smtp.cdb), as make
> necessary control database file.

This works, /etc/tcp.smtp.cdb is based on /etc/tcp.smtpd


> >I've been trying for 2 days now to install relay-ctrl-2.5.
> >
> >Everyting goes well (I see no errors in compiling), but the dir's are
> >normally not created (once I saw a /var/spool/relay-ctrl, but don't
> know for>sure), all the other times I created the dirs myself.
> >
> >When compiling I never got an error, I tried in /usr and /usr/local.
> >
> >This is how I start my tcpserver:
> >/usr/local/bin/tcpserver -R 0 pop3 /var/qmail/bin/qmail-popup \
> >ns4.pi-group.net /bin/checkpoppasswd /usr/sbin/relay-ctrl-allow \
> >/var/qmail/bin/qmail-pop3d Maildir &
> >
> >I can loggin at all times, but this 'easy' program doesn't seem to work.
> >/var/spool/relay-ctrl stays empty........



Reply via email to