Hello.
Sorry for a noise.I've the following problem:
/etc/tcp.smtp file as follows:
192.168.0.1:allow,RELAYCLIENT=" "
192.168.0.2:allow,RELAYCLIENT=" "
192.168.0.4:allow,RELAYCLIENT=" "
192.168.0.5:allow,RELAYCLIENT=" "
192.168.0.6:allow,RELAYCLIENT=" "
192.168.0.7:allow,RELAYCLIENT=" "
192.168.0.8:allow,RELAYCLIENT=" "
192.168.0.9:allow,RELAYCLIENT=" "
192.168.0.10:allow,RELAYCLIENT=" "
192.168.0.25:allow,RELAYCLIENT=" "
192.168.4.120:allow,RELAYCLIENT=" "
127.:allow,RELAYCLIENT=" "
as in FAQ I do:
cat /etc/tcp.smtp | /usr/local/tcpserver/bin/tcprules /etc/tcp.smtp.cdb ~/tcp.smtp.tmp
& I got the following answer:
tcprules: fatal: unable to parse this line:
192.168.0.1:allow,RELAYCLIENT=" "
What could be wrong?
PS: I can make .cdb file by cdb itself (& I did) , but does it produce the
same thing & why then tcprules fail?
After I created .cdb file via cdb I commented out the following line from
inetd.conf:
smtp stream tcp nowait qmaild /usr/sbin/tcpd /var/qmail/bin/tcp-env
/var/qmail/bin/qmail-smtpd
& run the following script:
#!/bin/sh
killall -HUP inetd
/usr/local/tcpserver/bin/tcpserver -R -x/etc/tcp.smtp.cdb -c100 -u599 -g598 0 smtp
/var/qmail/bin/qmail-smtpd &
After this when my user sends email to microsoft.com from 192.168.0.1 we
see the following error:
553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)
The file rcpthosts is only 2 lines:
localhost
my.dns_host.name
Well,I've read that in this situation rcpthosts is not used. Am I wrong?
So - cdb & tcprules seem to use diffrent formats or I'm wrong in somth.
else there? & if I'm not - what wrong w/ the linebelow:
192.168.0.1:allow,RELAYCLIENT=" "
tcprules doesn't want to parse all strings in my /etc/tcp.smtp .
Anyhow while compiling I got binaries w/o errrors.
uname -a gives me:
Linux my.dns_host.name 2.0.36 #1 ��� ��� 26 19:20:45 GMT+3 1999 i586 unknown
VERSION file for tcpserver contains:
ucspi-tcp 0.84
that's all. So could anyone tell me what's wrong? I'm tring to stop open
mail relay (right now I've to make rcpthosts w/ commonly used domains in
our company, so anyone there can use us as relay. :( )
Bye.Olli.