|
|
|
|
|
|
| Author |
Message |
Charles Cazabon *nix forums Guru
Joined: 08 Jan 2005
Posts: 805
|
Posted: Thu Jul 06, 2006 4:32 pm Post subject:
Re: Allowing Incoming Mail From Specific Hosts
|
|
|
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 |
|
 |
Matthew R. Dempsky *nix forums Guru Wannabe
Joined: 11 Mar 2006
Posts: 110
|
Posted: Thu Jul 06, 2006 4:20 pm Post subject:
Re: Allowing Incoming Mail From Specific Hosts
|
|
|
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 |
|
 |
Richard Feldmann *nix forums addict
Joined: 06 Jun 2005
Posts: 62
|
Posted: Thu Jul 06, 2006 4:14 pm Post subject:
Re: Allowing Incoming Mail From Specific Hosts
|
|
|
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 |
|
 |
Jeff *nix forums beginner
Joined: 06 Jul 2006
Posts: 1
|
Posted: Thu Jul 06, 2006 4:04 pm Post subject:
Allowing Incoming Mail From Specific Hosts
|
|
|
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 |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Sat Nov 22, 2008 4:52 am | All times are GMT
|
|
MPAA | Mobile Phones | eBay | Books | Mortgage Calculator
|
|
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
|
|