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 part 2
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
Author Message
Charles Cazabon
*nix forums Guru


Joined: 08 Jan 2005
Posts: 805

PostPosted: Tue Jun 20, 2006 1:43 pm    Post subject: Re: Tcpserver part 2 Reply with quote

John Anderson <janderson@ceeva.com> wrote:
Quote:

No matter how I compile the rules in the cdb file, running the tcprulescheck
always just kicks back the first rule.

That's a classic symptom of running tcprulescheck incorrectly. Hint: tcprules
check gets the IP address to use in the check from an environment variable,
not from the commandline. Check its documentation again if you're unsure.

Charles
--
--------------------------------------------------------------------------
Charles Cazabon <qmail@discworld.dyndns.org>
Read http://pyropus.ca/personal/writings/12-steps-to-qmail-list-bliss.html
My services include qmail consulting. See http://pyropus.ca/ for details.
--------------------------------------------------------------------------
Back to top
Jeremy Eder
*nix forums beginner


Joined: 11 Jan 2005
Posts: 15

PostPosted: Tue Jun 20, 2006 1:18 pm    Post subject: RE: Tcpserver part 2 Reply with quote

-----Original Message-----
From: Brian T Glenn [mailto:brian-qmail@delink.net]
Sent: Tuesday, June 20, 2006 8:25 AM
To: qmail@list.cr.yp.to
Subject: Re: Tcpserver part 2

On Mon, Jun 19, 2006 at 10:19:33PM -0400, John Anderson may have
written:
Quote:


[snip reposted question]

Quote:

Several users recommended that I include my CDB file. Problem is, I
wrote up what I am trying to do and am looking for guideance in how to

accomplish that. This is what I'm doing now:

209.114.187.231:allow,RELAYCLIENT=""
209.114.187.232:allow,RELAYCLIENT=""
206.210.88.18:allow,RELAYCLIENT=""

Obviously I think that I need to lock this down a little more.

Just add ":allow" to the bottom of the file, and this is exactly what
you need to do.

You do have the domains you are doing MX for in your rcpthosts file,
right?

Cheers,
--
http://www.delink.net/
BOFH excuse #418:

Sysadmins busy fighting SPAM.



Hi,

You seem rather security-conscious. To me, this means smtp-auth.

Ideally:
Setup smtp-auth (theres a ton of patches to qmail to handle it).
Remove any static relayclient allows from tcp.smtp.
In your user's MUA, enable authentication.

Your situation:
Include the 6 static relayclient allows in your tcp.smtp.
Setup smtp-auth, and convert your customers over.
In the future, remove any static allows from tcp.smtp.

resist the temptation to stick :deny at the end of tcp.smtp. This is
not what you want.




Best Regards,

Jeremy Eder
UNIX Administrator
INVISION.COM
631.543.1000 x334
Back to top
Brian T Glenn
*nix forums beginner


Joined: 17 Mar 2005
Posts: 22

PostPosted: Tue Jun 20, 2006 12:25 pm    Post subject: Re: Tcpserver part 2 Reply with quote

On Mon, Jun 19, 2006 at 10:19:33PM -0400, John Anderson may have written:
Quote:


[snip reposted question]

Quote:

Several users recommended that I include my CDB file. Problem is, I wrote
up what I am trying to do and am looking for guideance in how to accomplish
that. This is what I'm doing now:

209.114.187.231:allow,RELAYCLIENT=""
209.114.187.232:allow,RELAYCLIENT=""
206.210.88.18:allow,RELAYCLIENT=""

Obviously I think that I need to lock this down a little more.

Just add ":allow" to the bottom of the file, and this is exactly what
you need to do.

You do have the domains you are doing MX for in your rcpthosts file,
right?

Cheers,
--
http://www.delink.net/
BOFH excuse #418:

Sysadmins busy fighting SPAM.
Back to top
John Anderson
*nix forums beginner


Joined: 22 Jun 2005
Posts: 7

PostPosted: Tue Jun 20, 2006 2:19 am    Post subject: Tcpserver part 2 Reply with quote

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

Quote:




Hi all,

Several users recommended that I include my CDB file. Problem is, I wrote
up what I am trying to do and am looking for guideance in how to accomplish
that. This is what I'm doing now:

209.114.187.231:allow,RELAYCLIENT=""
209.114.187.232:allow,RELAYCLIENT=""
206.210.88.18:allow,RELAYCLIENT=""

Obviously I think that I need to lock this down a little more.

Thanks.


--John
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
The time now is Fri Jan 09, 2009 9:24 pm | All times are GMT
navigation Forum index » Apps » Qmail
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts How to query on part of a date column? Barry Newton MySQL 4 Thu Jul 20, 2006 5:02 pm
No new posts link to part of a file Weiguang Shi shell 2 Tue Jul 18, 2006 10:45 pm
No new posts A Historical Look at the VAX: DEC, NVAX, Alpha and Compet... Neil Rieck VMS 0 Tue Jul 18, 2006 12:26 am
No new posts HELP: lost part of /usr/sbin, have backup but no frecover... John Burns HP-UX 0 Mon Jul 17, 2006 6:55 pm
No new posts FAQ 4.63 How do I reset an each() operation part-way thro... PerlFAQ Server Perl 0 Wed Jul 05, 2006 7:03 pm

Remortgages | Bankruptcy | Cash Advance Loan | Looking for Credit Cards? | Debt Consolidation
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.2038s ][ Queries: 20 (0.0863s) ][ GZIP on - Debug on ]