Can SpamAssassin delete mails just 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. Chris.
Re: Can SpamAssassin delete mails just from certain countries ?
Chris wrote: 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. Chris. Just add a custom rule for matching the desired countries and use procmail to deliver it to /dev/null. Ruben
Re: Can SpamAssassin delete mails just from certain countries ?
On Wed, May 9, 2007 09:57, Ruben Cardenal wrote: Chris wrote: 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. Chris. Just add a custom rule for matching the desired countries and use procmail to deliver it to /dev/null. http://wiki.apache.org/spamassassin/URICountryPlugin http://wiki.apache.org/spamassassin/RelayCountryPlugin
RE: Can SpamAssassin delete mails just from certain countries ?
-Original Message- From: Duncan Hill [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 09, 2007 11:00 AM To: users@spamassassin.apache.org Subject: Re: Can SpamAssassin delete mails just from certain countries ? On Wed, May 9, 2007 09:57, Ruben Cardenal wrote: Chris wrote: 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. Chris. Just add a custom rule for matching the desired countries and use procmail to deliver it to /dev/null. http://wiki.apache.org/spamassassin/URICountryPlugin http://wiki.apache.org/spamassassin/RelayCountryPlugin Many thanks Ruben, Gabriel and Duncan for the help - it's appreciated. One thing, my hosts say that I'm not able to do this if I'm on shared hosting - are you saying that there's a way to do this on shared hosting please ? Out of the ways that have been kindly recommended here, which one would be the easiest for a comparative newbie to do and for it to still be effective please ? Chris.
RE: Can SpamAssassin delete mails just from certain countries ?
On Wed, May 9, 2007 10:37, Chris wrote: One thing, my hosts say that I'm not able to do this if I'm on shared hosting - are you saying that there's a way to do this on shared hosting please ? Out of the ways that have been kindly recommended here, which one would be the easiest for a comparative newbie to do and for it to still be effective please ? It all depends on the shared hosting. SA never, ever deletes mail, it only assigns scores to it. Talk to the hosting provider, ask if they can enable either of the linked plug-ins. IIRC, the relayclient one adds headers to say where the mail went through, so you can then use header rules in procmail or your mail client to handle that.
RE: Can SpamAssassin delete mails just from certain countries ?
-Original Message- From: Duncan Hill [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 09, 2007 11:44 AM To: users@spamassassin.apache.org Subject: RE: Can SpamAssassin delete mails just from certain countries ? On Wed, May 9, 2007 10:37, Chris wrote: One thing, my hosts say that I'm not able to do this if I'm on shared hosting - are you saying that there's a way to do this on shared hosting please ? Out of the ways that have been kindly recommended here, which one would be the easiest for a comparative newbie to do and for it to still be effective please ? It all depends on the shared hosting. SA never, ever deletes mail, it only assigns scores to it. Talk to the hosting provider, ask if they can enable either of the linked plug-ins. IIRC, the relayclient one adds headers to say where the mail went through, so you can then use header rules in procmail or your mail client to handle that. Thanks Duncan. I will look into that - I would prefer the emails from some countries to not even reach my pc in the first place - so bearing that in mind, is procmail still recommended in this instance please ? If you have for example, a spam threshold of 5 and an email comes in with a score of 4, what happnes to that email ? I never see it, so I thought they got deleted ? Just been trying to find this thread on the message boards - but can't seem to be able to find it ? Am I looking in the right place please ? : http://www.nabble.com/SpamAssassin-f191.html Chris.
RE: Can SpamAssassin delete mails just from certain countries ?
On Wed, May 9, 2007 11:13, Chris wrote: I will look into that - I would prefer the emails from some countries to not even reach my pc in the first place - so bearing that in mind, is procmail still recommended in this instance please ? If your hosting provider offers procmail, yes. The may offer sieve or another filtering/delivery agent. If you have for example, a spam threshold of 5 and an email comes in with a score of 4, what happnes to that email ? I never see it, so I thought they got deleted ? Nothing should happen. That said, it depends on any customisations made by your hosting provider. Just been trying to find this thread on the message boards - but can't seem to be able to find it ? No idea - I'm using an e-mail client, not a web interface.
RE: Can SpamAssassin delete mails just from certain countries ?
-Original Message- From: Duncan Hill [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 09, 2007 12:20 PM To: users@spamassassin.apache.org Subject: RE: Can SpamAssassin delete mails just from certain countries ? On Wed, May 9, 2007 11:13, Chris wrote: I will look into that - I would prefer the emails from some countries to not even reach my pc in the first place - so bearing that in mind, is procmail still recommended in this instance please ? If your hosting provider offers procmail, yes. The may offer sieve or another filtering/delivery agent. I will check and let you know. If you have for example, a spam threshold of 5 and an email comes in with a score of 4, what happnes to that email ? I never see it, so I thought they got deleted ? Nothing should happen. That said, it depends on any customisations made by your hosting provider. But what happens to the email that fails the threshold of spam filtering ? Just been trying to find this thread on the message boards - but can't seem to be able to find it ? No idea - I'm using an e-mail client, not a web interface. I do as well - but I thought there was also a message board of these threads viewable on the internet ?
RE: Can SpamAssassin delete mails just from certain countries ?
On Wed, May 9, 2007 11:29, Chris wrote: But what happens to the email that fails the threshold of spam filtering ? If it's below the threshold, it may get a subject modification, it probably gets a new header or two. If it's above the threshold, it probably gets a new header or two, and then it's up to the hosting provider. Some may quarantine it, some may pass it through, some may bit bucket it. I do as well - but I thought there was also a message board of these threads viewable on the internet ? That might be Nabble, no idea. There are certainly quite a few web archives of the list.
RE: Can SpamAssassin delete mails just from certain countries ?
On Wed, May 9, 2007 11:13, Chris wrote: I will look into that - I would prefer the emails from some countries to not even reach my pc in the first place - so bearing that in mind, is procmail still recommended in this instance please ? If your hosting provider offers procmail, yes. The may offer sieve or another filtering/delivery agent. If you have for example, a spam threshold of 5 and an email comes in with a score of 4, what happnes to that email ? I never see it, so I thought they got deleted ? Nothing should happen. That said, it depends on any customisations made by your hosting provider. Just been trying to find this thread on the message boards - but can't seem to be able to find it ? No idea - I'm using an e-mail client, not a web interface.
RE: Can SpamAssassin delete mails just from certain countries ?
On Wed, May 9, 2007 10:37, Chris wrote: One thing, my hosts say that I'm not able to do this if I'm on shared hosting - are you saying that there's a way to do this on shared hosting please ? Out of the ways that have been kindly recommended here, which one would be the easiest for a comparative newbie to do and for it to still be effective please ? It all depends on the shared hosting. SA never, ever deletes mail, it only assigns scores to it. Talk to the hosting provider, ask if they can enable either of the linked plug-ins. IIRC, the relayclient one adds headers to say where the mail went through, so you can then use header rules in procmail or your mail client to handle that.