niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Apps » Qmail
tcpserver
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
Author Message
John Anderson
*nix forums beginner


Joined: 22 Jun 2005
Posts: 7

PostPosted: Mon Jun 19, 2006 11:39 pm    Post subject: tcpserver Reply with quote

Hi all.



I'm sure that this has been covered many times over, and I apologize for
coming to you with this question. I've looked thru the archives and
couldn't find the answer.



So here goes. I'm hosting about 12 email domains on my server. I also
need to allow relaying for about 4 of those clients, along with my internal
mail being sent out thru my qmail system.



I'm running tcpserver.



My questions are fairly simple:



1. I'd like to be able to "lock down" qmail to only send mail from the 6 or
so IPs I need to send from.



2. I would like to deny everything else.



3. And obviously I would like to receive the email from anywhere for my 12
or so domains.



No matter how I compile the rules in the cdb file, running the tcprulescheck
always just kicks back the first rule. (Eventho the cdb file I am currently
running is allowing everything to work, I'm just not certain how secure I
am).



What am I missing? Is the tcprulescheck not a good testing tool?



Thanks in advance.





--John
Back to top
Maurice Lucas
*nix forums beginner


Joined: 30 Mar 2005
Posts: 38

PostPosted: Tue Jun 20, 2006 6:30 am    Post subject: Re: tcpserver Reply with quote

On Mon, 2006-06-19 at 19:39 -0400, John Anderson wrote:
Quote:
My questions are fairly simple:

1. I'd like to be able to "lock down" qmail to only send mail from
the 6 or so IPs I need to send from.

#allow and relay

127.:allow,RELAYCLIENT=""
192.168.1.:allow,RELAYCLIENT=""

# allow but don't relay
192.168.2.:allow,RELAYCLIENT=""

# allow all connections
:allow

#or as last line deny all connections
#:deny

Quote:
2. I would like to deny everything else.

take the last line but you won't receive any mail from the outside world



Quote:
3. And obviously I would like to receive the email from anywhere for
my 12 or so domains.

So take as last line the allow

Quote:
No matter how I compile the rules in the cdb file, running the
tcprulescheck always just kicks back the first rule. (Eventho the cdb
file I am currently running is allowing everything to work, I'm just
not certain how secure I am).



What am I missing? Is the tcprulescheck not a good testing tool?


TCPREMOTEIP=192.168.1.1 && tcprulescheck /etc/tcp.smtp.cdb
TCPREMOTEIP=127.0.0.1 && tcprulescheck /etc/tcp.smtp.cdb


--
With kind regards,

Maurice Lucas
TAOS-IT
Back to top
Brian T Glenn
*nix forums beginner


Joined: 17 Mar 2005
Posts: 22

PostPosted: Tue Jun 20, 2006 12:22 pm    Post subject: Re: tcpserver Reply with quote

On Mon, Jun 19, 2006 at 07:39:06PM -0400, John Anderson may have written:
Quote:

So here goes. I'm hosting about 12 email domains on my server. I also
need to allow relaying for about 4 of those clients, along with my internal
mail being sent out thru my qmail system.

I'm running tcpserver.

1. I'd like to be able to "lock down" qmail to only send mail from the 6 or
so IPs I need to send from.

ip.of.the.server:allow,RELAYCLIENT=""

Rinse and repeat for each IP. This will allow that IP address complete
relay access through your system.

Quote:
2. I would like to deny everything else.

Is this server an MX for any of those domains? If so, you don't actually
want to do this.

Quote:
3. And obviously I would like to receive the email from anywhere for my 12
or so domains.

This answers my above question. After putting in your 6 IP address with
RELAYCLIENT access, put a line like the following at the bottom of
tcp.smtp:

:allow

Quote:
No matter how I compile the rules in the cdb file, running the tcprulescheck
always just kicks back the first rule. (Eventho the cdb file I am currently
running is allowing everything to work, I'm just not certain how secure I
am).

What am I missing? Is the tcprulescheck not a good testing tool?

As another member of the list replied, you'll need to set TCPREMOTEIP in
the environment of tcprulescheck in order to get the correct
information.

It would have also been a lot more helpful to include the complete,
unedited output of your tcp.smtp file if you'd like real help debugging
it.

--
http://www.delink.net/
BOFH excuse #441:

Hash table has woodworm
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
The time now is Sat Jan 10, 2009 1:15 am | All times are GMT
navigation Forum index » Apps » Qmail
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Tcpserver part 2 John Anderson Qmail 3 Tue Jun 20, 2006 2:19 am
No new posts tcpserver strangeness on 64bit Opteron Philip Rhoades Qmail 5 Mon Jun 19, 2006 8:14 am
No new posts tcpserver pop3 problem anu bhaskar Qmail 13 Wed Nov 02, 2005 12:39 pm
No new posts Bound tcpserver to more than one ip, is that possible? Vini Qmail 1 Sat Oct 29, 2005 4:43 pm
No new posts Using SRP on TCPServer module dcrespo python 1 Fri Oct 14, 2005 4:01 pm

Credit Counseling | Bankruptcy | Payday Loans | BabbFest | MPAA
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2934s ][ Queries: 16 (0.1703s) ][ GZIP on - Debug on ]