Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: Franco on May 05, 2007, 06:36:32 AM

Title: Block certain users from using email
Post by: Franco on May 05, 2007, 06:36:32 AM
Anyone got a recipe on how can I block some users from using email? They logon to the domain and know how to set-up email and use webmail, so I need to block their email account.

Thanks,
Title: Block certain users from using email
Post by: mmccarn on May 05, 2007, 04:20:43 PM
Are you trying to keep them from checking and sending email using the email address on your SME server, or are you trying to prevent these users from accessing any form of email whatsoever - yahoo mail, hotmail, gmail, aol, &c - from inside your network?
Title: Block certain users from using email
Post by: Franco on May 05, 2007, 05:25:26 PM
External email access has been blocked already, I'm using Dansguardian. I need to remove/block their access to the SME mail server.

It would be great if I could disable the email account for a particular account completelly.

Thanks,
Title: Block certain users from using email
Post by: dmay on May 05, 2007, 11:35:47 PM
Quote from: "stuntshell"
External email access has been blocked already, I'm using Dansguardian. I need to remove/block their access to the SME mail server.

It would be great if I could disable the email account for a particular account completelly.

Thanks,

To block external inbound mail you would:

# db accounts setprop username Visible internal

To block outbound mail add the users e-mail address into /var/qmail/control/badmailfrom. This is a templated file so create a templates-custom fragment.

Darrell
Title: Block certain users from using email
Post by: Franco on May 06, 2007, 06:34:31 AM
Thanks very much Darrel, will try that and post feedback.

Thanks,
Title: Block certain users from using email
Post by: Tib on May 08, 2007, 02:54:46 AM
stuntshell

I have been using a contrib that blocks external e-mail ... including webmail and only allows those IP address to use internal mail.

If you need something like that I can dig it up for you.

It was called Squid Properties on SMEv6 ... been modified to work on SME7 ... also does some other things for you as well ... like flush the cache and also bypass cache for other domains you may have.

Regards,

Tib
Title: Block certain users from using email
Post by: Franco on May 08, 2007, 03:34:54 AM
I would love to try that  :pint:
stuntshell [ ] gmail.com

I remember that on SME6 :)

Thanks,
Title: Block certain users from using email
Post by: Tib on May 08, 2007, 06:31:26 AM
K found one of my old posts ...

http://forums.contribs.org/index.php?topic=34667.msg150339#msg150339

Try that out ... it's still active


Regards,

Tib