Koozali.org: home of the SME Server

SMTP Check Rules

Offline maykelsoft

  • *
  • 57
  • +0/-0
    • http://www.esi.com.ph
SMTP Check Rules
« on: August 04, 2004, 09:05:20 PM »
Hello,

 Is there a way that i can block certain email account to send mail outside my network. For example: I have user1, user2, user3, user4, user5, user6 and so on. I want user1 to user3 can send email outside my network such as yahoo. And user4 to user6 so on, can't email outside. Their only allow to email on same domain.

I'm using SME ver 6.0.

Thanks....
Mike

Offline stephen noble

  • *
  • 607
  • +1/-0
    • Dungog
SMTP Check Rules
« Reply #1 on: August 06, 2004, 03:51:26 PM »
this does exactly what you want

http://www.dungog.net/sme/help/SMEhelp/Email%20-%20Admin%20blocking.html

http://www.dungog.net/sme/files/index.php

Copyright: GPL
Requires: e-smith-base,  e-smith-release >= 6.0
Obsoletes: dmc-mitel-mailrules, e-smith-domain_mail_user

%description
A rewrite of two rpms and panels into one for ease of maintenance and use

adds a server-manager web panel to allow adding/deleting mailfront mailrules.
Also adds to /var/qmail/control/mailrules.default the ability to restrict
incoming e-mail to valid e-mail accounts and mailing lists only. E-mail to
invalid e-mail addresses are blocked at the SMTP level.

allows limiting a groups or users email address to nominated domains

Offline maykelsoft

  • *
  • 57
  • +0/-0
    • http://www.esi.com.ph
SMTP Check Rules
« Reply #2 on: August 07, 2004, 05:05:00 PM »
Hi,

I have installed dungog-mailblocking-1.0-1.noarch.rpm, but when i tried to block address its blocked all the mails. here's my conf

REJECT:
From: test@mydomain.com
TO: *@*

All mails seems block on all of the users not for specific user.

Seems Allowed Domains for Mail is not working too.
I tried to allow only the test@mydomain.com to mydomain.com. But there's nothing happens.

I want to block more than 10 users, which they can't email outside mydomain.com.

Please help...

Thanks, Mike

Offline stephen noble

  • *
  • 607
  • +1/-0
    • Dungog
SMTP Check Rules
« Reply #3 on: August 07, 2004, 05:46:21 PM »
I'm not sure it isn't doing what you've configured
try one thing at a time only

i agree the top section is confusing

I want to look at making it simpler by having more check boxes next to the users in the bottom section
when you allow/deny send/recieve locally/externally

and you only need the top section for overrides

eg ban external for some users
but allow .edu for all

feel free to offer logic diagrams of how you think it can work ;-)

Offline maykelsoft

  • *
  • 57
  • +0/-0
    • http://www.esi.com.ph
SMTP Check Rules
« Reply #4 on: August 07, 2004, 07:53:36 PM »
Thanks for your time.

Here's what i want.

user1@mydomain.com
user2@mydomain.com
user3@mydomain.com
user4@mydomain.com
user5@mydomin.com to user20@mydomain.com

i want only user1 to user4 can email outside (externally) and the rest user5 to user20 can only email internally. How can do this in batch configuration or multiple email blocking.

Thanks again...

Mike

henry_031174

SMTP RULES
« Reply #5 on: August 08, 2004, 03:34:25 PM »
Hi,

I already use dungog-mailblocking and its working.

You could follow below procedures.

First, create this rule:

Rule Type : Accept
from      : *@mydomain.com
to        : *@mydomain.com

Secondly, create a rule for user1

Rule Type : Rejected
from      : *@*
to        : user1@mydomain.com

Rule Type : Rejected
from      : user1@mydomain.com
to        : *@*


Explanation :

even if we create a rule for user1 not to receive or send emails from any domain it will still receive email locally because i created  a rule as stated above that allow mmy local users to send and receive mails from my local domain.  As we know ALLOW rules precedence over rejected rules.  It means ALLOW rules is has the highest priority.

I hope this will help.

Offline robwellesley

  • *
  • 92
  • +0/-0
SMTP Check Rules
« Reply #6 on: August 31, 2004, 11:41:13 PM »
Hi Stephen

Darrells contrib created a list of rules based on usernames that effectively blocked all mail to unknown local users.  Does your contrib also do this by 'default' or does it require a rule to be setup?

If so - can you help with an example?

cheers Rob

And - thanks BTW

duncan

SMTP Check Rules
« Reply #7 on: September 01, 2004, 12:40:44 AM »
Quote from: "robwellesley"
Hi Stephen

Darrells contrib created a list of rules based on usernames that effectively blocked all mail to unknown local users.  Does your contrib also do this by 'default' or does it require a rule to be setup?

If so - can you help with an example?

cheers Rob

And - thanks BTW


This contrib does the same.

Offline robwellesley

  • *
  • 92
  • +0/-0
SMTP Check Rules
« Reply #8 on: September 01, 2004, 03:55:45 AM »
Cheers Duncan - BTW - where in OZ are you?  I am in NZ, we have a client on the GoldCoast.

duncan

SMTP Check Rules
« Reply #9 on: September 01, 2004, 04:24:52 AM »
Im in WA - I think your probably closer.

Offline robwellesley

  • *
  • 92
  • +0/-0
SMTP Check Rules
« Reply #10 on: September 01, 2004, 04:45:41 AM »
Significantly  :-) i'd say