Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: ted baker on August 02, 2003, 02:42:51 PM

Title: block single email address
Post by: ted baker on August 02, 2003, 02:42:51 PM
hi,

is there a simple way to ban a specific email address from being accepted.

one of my employees get about 30 a day from his friend i want to stop them in a way similar to 'block sender' in outlook express but at the server level.

i am using sme 5.6 and look forward to your comments.

thanks,

ted
Title: Re: block single email address
Post by: Ed Form on August 02, 2003, 03:22:08 PM
ted baker wrote:
>
> hi,
>
> is there a simple way to ban a specific email address from
> being accepted.
>
> one of my employees get about 30 a day from his friend i want
> to stop them in a way similar to 'block sender' in outlook
> express but at the server level.

Install the user manager addon and use it to set the mail to be handled by procmail. Then install SpamAssassin and blacklist the address.

Ed Form
Title: Re: block single email address
Post by: ted baker on August 02, 2003, 05:33:35 PM
Thanks for your post Ed.

I hoped there was an easier way as i have done all that and i have spamassassin on highest sensitivity but it dont seem to work.

i have obviously done something wrong but i tried to resolve that about a month ago to no avail :-(

is that the only way or is there any easier way!

ta

Ted
Title: Re: block single email address
Post by: Ed Form on August 03, 2003, 12:52:58 AM
ted baker wrote:

> I hoped there was an easier way as i have done all that and i
> have spamassassin on highest sensitivity but it dont seem to
> work.

Have you...

1. Installed the User Manager addon?
2. Set mail delivery to be handled by Procmail within the User Manager
3. Written a blacklist entry for the offending address in SpamAssassin?

Ed Form
Title: Re: block single email address
Post by: Michael Doerner on August 03, 2003, 12:53:06 AM
Ted,

I would suggest to use Darrell May's contributed "Mailfront mailrules" for that.
You could set a 'reject' rule to block that specific sender's address or you can set to reject whole domains, all easily done in  in the server manager. It's an excellent contribution (Thanks Darrell).

Regards,
Michael
Title: Re: block single email address
Post by: Kelvin on August 04, 2003, 04:23:07 PM
Hi All,

Here's a curly one. Is there a way to reject a particular non-existent local user address ?

Here's the problem.

Old staff member of a client has left (ages ago !). His account no longer exists on the server. However, his e-mail address is being used to send spam (most likely spoofed by spammers). The bounce messages are coming back and getting bounced until the server gives up. Obviously, that address is also being spammed continuously as well. So far, no one else in that organisation appears to be getting any spam other than this one account.

Is there a way to just reject any mails intended for this one account without affecting anyone else's accounts ?

Kelvin
Title: Re: block single email address
Post by: Michiel on August 04, 2003, 05:39:06 PM
You could (re)create this account and write a procmail rule that sends all the mail for this user to /dev/null

Michiel
Title: Re: block single email address
Post by: Kelvin on August 05, 2003, 10:20:14 AM
Hi Michiel,

Thanks for the suggestion. I was kinda hoping that there was a way (might not be possible due to the way SMTP works, I don't know) to actually stop / reject the mail prior to accepting it (ie. during the initial SMTP dialog).

Kelvin
Title: Re: block single email address
Post by: Michael Doerner on August 05, 2003, 11:37:47 AM
I recommend again Darrell's mailfront  mailrules for that.

You might want to define the user account as Michiel suggested and then you would create a Reject rule to reject from everyone (*@*) to that user only. These mailrules work on the smtp level therefore the mail does not go through your ISP link.

Regards,
Michael