Koozali.org: home of the SME Server

Block certain users from using email

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Block certain users from using email
« 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,

Offline mmccarn

  • *
  • 2,627
  • +10/-0
Block certain users from using email
« Reply #1 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?

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Block certain users from using email
« Reply #2 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,

Offline dmay

  • *
  • 450
  • +0/-0
    • http://myezserver.com
Block certain users from using email
« Reply #3 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

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Block certain users from using email
« Reply #4 on: May 06, 2007, 06:34:31 AM »
Thanks very much Darrel, will try that and post feedback.

Thanks,

Offline Tib

  • *
  • 571
  • +0/-0
    • http://www.tibors.net
Block certain users from using email
« Reply #5 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

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Block certain users from using email
« Reply #6 on: May 08, 2007, 03:34:54 AM »
I would love to try that  :pint:
stuntshell [ ] gmail.com

I remember that on SME6 :)

Thanks,

Offline Tib

  • *
  • 571
  • +0/-0
    • http://www.tibors.net
Block certain users from using email
« Reply #7 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