SitePoint Sponsor

User Tag List

Results 1 to 11 of 11

Thread: Can Spamassassin block emails from certain countries ?

  1. #1
    SitePoint Wizard
    Join Date
    Jun 2005
    Posts
    1,399
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Can Spamassassin block emails from certain countries ?

    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.

  2. #2
    SitePoint Wizard
    Join Date
    Jun 2005
    Posts
    1,399
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Anyone know ? Or, is there somewhere else to find out please ?

    Any help appreciated.

    Dez.

  3. #3
    SitePoint Enthusiast
    Join Date
    Sep 2004
    Location
    Cincinnati, OH
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    SpamAssassin Configuration Generator

    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

  4. #4
    SitePoint Wizard
    Join Date
    Jun 2005
    Posts
    1,399
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Max_Ludz View Post
    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
    Many thanks Max, but the emails are in English, so that option wouldn't help ;-(

    Also, would you need to be on dedicated servers for that ? (I'm on shared).

    Any help appreciated.

    Dez.

  5. #5
    King of Paralysis by Analysis bronze trophy
    Join Date
    Jul 2004
    Location
    Ottawa, Canada
    Posts
    5,840
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Open a support ticket with your host and ask them directly.

  6. #6
    SitePoint Wizard
    Join Date
    Jun 2005
    Posts
    1,399
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by tke71709 View Post
    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.

  7. #7
    King of Paralysis by Analysis bronze trophy
    Join Date
    Jul 2004
    Location
    Ottawa, Canada
    Posts
    5,840
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So the answer would be no then.

  8. #8
    SitePoint Wizard
    Join Date
    Jun 2005
    Posts
    1,399
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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?

  9. #9
    SitePoint Member
    Join Date
    Oct 2007
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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

  10. #10
    SitePoint Wizard
    Join Date
    Jun 2005
    Posts
    1,399
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by NjWebHost View Post
    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
    Many thanks NjWebHost - anything that could help me on this is appreciated.

    How do I find the server local.cf file and how do I restart sendmail and spamassassin please ? (I'm on shared servers).

    Dez.

  11. #11
    King of Paralysis by Analysis bronze trophy
    Join Date
    Jul 2004
    Location
    Ottawa, Canada
    Posts
    5,840
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •