Koozali.org: home of the SME Server

Only local mail for some users?

mpaoliniluquin

Only local mail for some users?
« on: October 30, 2006, 01:50:33 PM »
Hello.

It is possible to create some group of users (onlylocalmail=userA,UserB,UserC) that only can send an recive mail from local domain? not to internet and not from internet to this group?

thanks.


Max.

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Only local mail for some users?
« Reply #1 on: November 01, 2006, 12:53:14 AM »
mpaoliniluquin

Closest thing I can think of is the per user or per group setting for "Visible internal"
Search on that for the full command
...

mpaoliniluquin

Only local mail for some users?
« Reply #2 on: November 01, 2006, 01:48:19 AM »
Hi.

I try this set Visible Internal, but users that belong to that group can send email to internet, from internet to that group works ok (blocked).
Any ideas?


thanks

Offline raem

  • *
  • 3,972
  • +4/-0
Only local mail for some users?
« Reply #3 on: November 01, 2006, 01:52:14 AM »
mpaoliniluquin

> I try this set Visible Internal...

You need to configure it for each user.

corrected this to read

It will block any incoming email from the Internet to that account.
...

mpaoliniluquin

Only local mail for some users?
« Reply #4 on: November 01, 2006, 02:48:52 PM »
I set the property to the user jperez

db accounts setprop jperez Visible internal

db accounts getprop jperez Visible
internal

and the property is ok

but the user can send email to the internet. Hi can“t recibe, in one direction works ok in the other not.

any ideas?

thanks in advance.

Offline raem

  • *
  • 3,972
  • +4/-0
Only local mail for some users?
« Reply #5 on: November 01, 2006, 03:19:07 PM »
mpaoliniluquin

You didn't find the full command required in your search

db accounts setprop xxx Visible internal
signal-event email-update
...

mpaoliniluquin

Only local mail for some users?
« Reply #6 on: November 01, 2006, 04:34:31 PM »
yes I execute exactly as you say, both lines. But.. the problem persist.

Offline raem

  • *
  • 3,972
  • +4/-0
Only local mail for some users?
« Reply #7 on: November 01, 2006, 10:50:40 PM »
removed, accidental double post
...

Offline raem

  • *
  • 3,972
  • +4/-0
Only local mail for some users?
« Reply #8 on: November 01, 2006, 10:57:04 PM »
mpaoliniluquin

> I execute exactly as you say, both lines. But.. the problem persist

I hope it was not exactly as I said.
Replace xxx with the name of the user account for which you want to block any incoming email from the Internet to that account.

eg
db accounts setprop jperez Visible internal
signal-event email-update

check your capitalisation
previously you quoted
"I try this set Visible Internal"
which is wrong capitalisation

check the entry is correct afterwards
db account show user
eg
db account show jperez

to remove the entry do
db accounts delprop jperez Visible
signal-event email-update
 
I'm guessing you may have made some changes to a group setting earlier. If you did, then perhaps you should undo those changes as they may be affecting something inappropriately.

You said
"I try this set Visible Internal, but users that belong to that group can send email to internet, from internet to that group works ok (blocked)"


db account show user
db account show group

db
to see the syntax to reverse any changes you made
example given above

Make a copy of you accounts db before playing around further
cp /home/e-smith/db/accounts /tmp/
...

mpaoliniluquin

Only local mail for some users?
« Reply #9 on: November 02, 2006, 01:30:34 AM »
RayMitchell

y have a test account (new) called tmail

y set the property Visible--> internal, as show when I execute

db accounts show tmail
tmail=user
    City=xxxx
    Company=xxxx
    Dept=Casa Central
    EmailForward=local
    FirstName=test
    ForwardAddress=
    LastName=mail
    PasswordSet=yes
    Phone=1234
    Street=150
    Uid=5002
    VPNClientAccess=no
    Visible=internal


but that user, from the web interface, can send mail to the internet. From internet to that user the mails are blocked with this message

Technical details of permanent failure:
PERM_FAILURE: SMTP Error (state 9): 550 mail to tmail@domain.xx not accepted here


thanks again!!

but the problem persist.

regards.

Max.

Offline raem

  • *
  • 3,972
  • +4/-0
Only local mail for some users?
« Reply #10 on: November 02, 2006, 11:02:11 AM »
mpaoliniluquin

> but that user, from the web interface, can send mail to the internet.
> From internet to that user the mails are blocked with this message

Sorry I was misleading you, that command will only
block any incoming email from the Internet to that account.
It will still allow that user or group to send email externally.

There was a contrib for sme6 (mailblocking) but it is not compatible with sme7, that would block the sending of mail externally with a rule, and I was confusing them.
...

Offline kruhm

  • *
  • 680
  • +0/-0
Only local mail for some users?
« Reply #11 on: November 06, 2006, 12:55:32 AM »
you could easily do this if you used a different virtual domain.

for example: anydomain.com

As long as it wasn't in the dns to go outside, any email to anyuser@anydomain.com would stay inside.

Offline stephen noble

  • *
  • 607
  • +1/-0
    • Dungog
Only local mail for some users?
« Reply #12 on: November 08, 2006, 12:14:59 AM »
>There was a contrib for sme6 (mailblocking)

this only worked if the user was honest and set his email address correctly