Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: jsheets on November 08, 2006, 06:04:34 PM
-
I am setting up another sme7 server and I would like to only allow email from a couple choice domains and block mail from all others. Does anybody know how I could easily do this? Thanks!
-
jsheets
> sme7 ....allow email from a couple choice domains and block mail from all others.
http://forums.contribs.org/index.php?topic=34333.0
-
I'm not sure if that is what I am looking for or not. For example, I would like to allow mail from *@whatever.com and block mail from anybody else. By using the ip block method in Ray's post can I allow the 1 ip and block all others? I see that you can block single ip's but can I use wildcards to block all ip's except the ones I want to allow? Thanks!
-
jsheets
> I would like to allow mail from *@whatever.com and block mail from anybody else.
> I see that you can block single ip's but can I use wildcards to block all ip's except the ones I want to allow?
To use that feature you would need to take the approach of block everything except what I want to allow, ie block whole blocks of IP address ranges.
You would not enter the IPs of those domains (mail servers) you wanted to receive from.
eg
203.14.64.0/24
etc etc etc
Doing what you ask is easily circumvented, anybody can pretend to be
someone@whatever.com
so in time when spammers discover that your server accepts mail for certain domains (which they will), you will end up receiving mail from people you don't want to receive it from.
-
jsheets
> I would like to allow mail from *@whatever.com and block mail from anybody else.
The other option is to use spamassassin White list & Black list entries.
Anything White will be accepted, anything Black will be rejected (by sme7 at the qpsmtpd level).
Search here as there have been recent posts showing how to add these at the command line.
Subject 'test 2', Account: 'user@unwanted.com', Server: 'mail.xxxxx.xxxxx.xxx', Protocol: SMTP, Server Response: '552 spam score exceeded threshold',