Hi all,
Anyone know if you can get Spamassassin to block and/or delete emails from certain countries if you are on shared hosting please ?
Any help very much appreciated.
Dez.
| SitePoint Sponsor |





Hi all,
Anyone know if you can get Spamassassin to block and/or delete emails from certain countries if you are on shared hosting please ?
Any help very much appreciated.
Dez.





Anyone know ? Or, is there somewhere else to find out please ?
Any help appreciated.
Dez.
http://www.yrex.com/spam/spamconfig.php
Check at the bottom secton of the page for:
Language Options - for blocking
Maybe that will help
Max
Last edited by Max_Ludz; Sep 28, 2007 at 03:45. Reason: adding more details





Open a support ticket with your host and ask them directly.





I did, and got this :
One, spamassassin comes built in with cpanel and if it is altered it
gives a lot of problems. Recently Aurora has gone through such problems
due to cpanel11 update. Hence, on shared environment we cannot alter the
applications that come built in with control panel. We cannot risk other
users on the server for the cost of such changes.
Other problem is, even if we customize spamassassin, it will create
problems for other users. You do not wish to receive emails from certain
countries, but other users do wish to receive emails. We cannot
configure this on shared server. If you wish to have customized modules
please go for a dedicated server where we can do anything that you wish
to on your server.
I am sorry, we cannot do any customized configuration on shared servers.
If you are interested in dedicated servers, please let us know and I
will forward you the quotes.
So the answer would be no then.





Certainly seems to be. Just wondering if there's any other way of using SA to stop the spam from certain countries? In the filters somehow?
Dez,
SpamAssassin is a good product, however a result of too many "cooks in the kitchen". You have to undertand the logic and interaction with all the .cf files.. Well, that's it for my pet peeve..
To block countries: There are two local.cf files.. There is the Server Local.cf and the domain local.cf:
You can simply put the following in your server local.cf file and restart sendmail and spamassassin..
fr REJECT
jp REJECT
ru REJECT
in REJECT
tr REJECT
gr REJECT
eg REJECT
uk REJECT
ae REJECT
de REJECT
pl REJECT
lt REJECT
dk REJECT
co REJECT
ph REJECT
br REJECT
au REJECT
ca REJECT
I hope this helps!
- New Jersey Managed Web Hosting Services





You're on a shared server, you're not going to have access to those files and I don't think that all the other sites on the server are going to be happy about you screwing up their e-mail settings if you did have access.
You'll have to talk to your host about this but I really doubt you will get anywhere with them.
Set up a rule in your e-mail reader to automatically delete all those if you don't want to see them.
Bookmarks