Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
tcpserver/tcprules ignoring my lines [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
kic
n00b
n00b


Joined: 04 Oct 2004
Posts: 4

PostPosted: Fri Jan 07, 2005 10:54 am    Post subject: tcpserver/tcprules ignoring my lines [SOLVED] Reply with quote

Hi all,

I have a strange behaviour of tcprules on my system. I'd like to let some hosts in our network use my machine running qmail as an SMTP relay. What I did was editing /etc/tcprules.d/tcp.qmail-smtp so it contains

127.0.0.1:allow,RELAYCLIENT="",RBLSMTPD=""
192.168.222.:allow,RELAYCLIENT="",RBLSMTPD=""
:allow

, then running "tcprules tcp.qmail-smtp.cdb tcp.qmail-smtp.cdb.temp < tcp.qmail-smtp"

- but 192.168.222.2 still gets the message

553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)

Restarting /etc/init.d/svscan does not help either.

Checking the rule by
tcprulescheck tcp.qmail-smtp.cdb 192.168.222.2
results in
rule :
allow connection

Now when I open my system WIDE for testing by editing /etc/tcprules.d/tcp.qmail-smtp so it contains

127.0.0.1:allow,RELAYCLIENT="",RBLSMTPD=""
192.168.222.:allow,RELAYCLIENT="",RBLSMTPD=""
:allow,RELAYCLIENT="",RBLSMTPD=""

it's working perfectly - so it really reads my /etc/tcprules.d/tcp.qmail-smtp.cdb file. Also, tcprulescheck tcp.qmail-smtp.cdb 192.168.222.2 now results in
rule :
set environment variable RELAYCLIENT=
set environment variable RBLSMTPD=
allow connection

Why do my first two lines never match? I tried 192.168.222.2, 192.168.222., tried 127.0.0.1 - nothing. Is this a bug or am I doing something wrong? The file in general is working as we can see from the above.
I also reinstalled the package a few times (sys-apps/ucspi-tcp-0.88-r8), no change.

Please help me, I am running out of possible reasons...

Thanks a lot and greetings,
Torben


Last edited by kic on Wed Jan 12, 2005 12:17 pm; edited 1 time in total
Back to top
View user's profile Send private message
rhavens
n00b
n00b


Joined: 08 Jan 2005
Posts: 18
Location: Chattanooga, TN

PostPosted: Sat Jan 08, 2005 6:08 pm    Post subject: Reply with quote

First, try this:

TCPREMOTEIP="192.168.222.2" tcprulescheck tcp.qmail-smtp.cdb

instead of:

tcprulescheck tcp.qmail-smtp.cdb 192.168.222.2

to see if the rules are working.

(I struggled with this one for a couple hours this morning)
Back to top
View user's profile Send private message
kic
n00b
n00b


Joined: 04 Oct 2004
Posts: 4

PostPosted: Wed Jan 12, 2005 8:23 am    Post subject: Reply with quote

Hey, thank you very much.... how did you find out about THAT??? Now it's working using tcprulescheck.... although qmail still doesn't let me send via SMTP from that host... there must be another bug somewhere...

But thanks a LOT!!! So it was only a bug in the man page!

Greetings from Munich,
Torben
Back to top
View user's profile Send private message
harlekyn
n00b
n00b


Joined: 14 Jul 2003
Posts: 9

PostPosted: Wed Jan 12, 2005 12:14 pm    Post subject: Reply with quote

I ran into the same problem this morning. I upgraded ucspi-tcp a couple of days ago, and today I noticed that I wasn't able to send mail from localhost without authentification.

This worked before, and the tcprules where set correctly. After looking through the forums, I tried to recompile ucspi-tcp with "-ipv6", and that did the trick! Now tcpserver is honouring the tcprules again correctly.

Hope that helps :)
Back to top
View user's profile Send private message
kic
n00b
n00b


Joined: 04 Oct 2004
Posts: 4

PostPosted: Wed Jan 12, 2005 12:17 pm    Post subject: Reply with quote

Yes, it did it!!! :-) Thanks for your help!!!

Torben
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum