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
Allowing Incoming Mail From Specific Hosts
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
Author Message
Jeff
*nix forums beginner


Joined: 06 Jul 2006
Posts: 1

PostPosted: Thu Jul 06, 2006 4:04 pm    Post subject: Allowing Incoming Mail From Specific Hosts Reply with quote

Have our mail being filtered by a third party so all of our e-mail comes in
through one of there three SMTP servers. How do I modify my config so that
the server will only accept invoming mail from only certain servers? The
server is already setup to only allow relaying via authentication so I want
to continue to allow that. I just want to block the spammers who are
guessing at our mail server address and bypassing the third party servers in
our MX records.
Back to top
Richard Feldmann
*nix forums addict


Joined: 06 Jun 2005
Posts: 62

PostPosted: Thu Jul 06, 2006 4:14 pm    Post subject: Re: Allowing Incoming Mail From Specific Hosts Reply with quote

Using tcpserver to run your service? Just put something like this in your tcp.smtp file (where you include the IPs of those three servers):

1.2.3.4:allow,RELAYCLIENT=""
1.2.3.5:allow,RELAYCLIENT=""
1.2.3.6:allow,RELAYCLIENT=""
:deny

This way, only those three servers get access, all others are denied.

Check out the docs at http://cr.yp.to/ucspi-tcp.html for more info.

Regards,
Richard

--
Did this email or post help you? If so, please rate
me at affero: http://rate.affero.net/RhunDraco
Back to top
Matthew R. Dempsky
*nix forums Guru Wannabe


Joined: 11 Mar 2006
Posts: 110

PostPosted: Thu Jul 06, 2006 4:20 pm    Post subject: Re: Allowing Incoming Mail From Specific Hosts Reply with quote

On Thu, Jul 06, 2006 at 09:03:54AM -0700, Jeff wrote:
Quote:
How do I modify my config so that the server will only accept invoming
mail from only certain servers? The server is already setup to only
allow relaying via authentication so I want to continue to allow that.

Change tcpserver's rules cdb to deny connections by default and then
add whitelist entries for acceptable mail servers.
Back to top
Charles Cazabon
*nix forums Guru


Joined: 08 Jan 2005
Posts: 805

PostPosted: Thu Jul 06, 2006 4:32 pm    Post subject: Re: Allowing Incoming Mail From Specific Hosts Reply with quote

Jeff <buyer@penslimited.com> wrote:
Quote:
Have our mail being filtered by a third party so all of our e-mail comes in
through one of there three SMTP servers. How do I modify my config so that
the server will only accept invoming mail from only certain servers? The
server is already setup to only allow relaying via authentication so I want
to continue to allow that. I just want to block the spammers who are
guessing at our mail server address and bypassing the third party servers in
our MX records.

Have an empty (but present) rcpthosts control file; then no one can send you
mail unless RELAYCLIENT is set. Your users will get that set via
authentication, so they can still send mail, and your mail-scanning service
will get that set via tcpserver's rules database, so your regular mail still
gets through from them.

Note for strict rfc-conformance, you should actually accept mail for a few
domains (like an address literal corresponding to your mail server) for other
postmasters to contact you when they don't know your domain name and therefore
can't look up MX records.

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
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 Sun Nov 23, 2008 12:59 pm | All times are GMT
navigation Forum index » Apps » Qmail
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Postfix relay to specific domain and to everybody else golgotha Postfix 0 Thu Oct 23, 2008 11:11 pm
No new posts Restricting postfix mail incoming only from Barracuda firewa gnewak Postfix 0 Thu Jul 03, 2008 12:57 am
No new posts Postfix Multiple Relay Hosts? blaze Postfix 0 Wed Jun 25, 2008 5:02 am
No new posts Filtering internal mail and forwarding to another domain fmaa1 Postfix 0 Wed Apr 30, 2008 12:50 pm
No new posts problem with sending mail nuxia Postfix 0 Mon Apr 21, 2008 3:58 am

Ringtones | Credit Counseling | Per Insurance | Web Advertising | Mortgages
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.1828s ][ Queries: 16 (0.1087s) ][ GZIP on - Debug on ]