Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: mpaoliniluquin 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.
-
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
-
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
-
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.
-
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.
-
mpaoliniluquin
You didn't find the full command required in your search
db accounts setprop xxx Visible internal
signal-event email-update
-
yes I execute exactly as you say, both lines. But.. the problem persist.
-
removed, accidental double post
-
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/
-
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.
-
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.
-
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.
-
>There was a contrib for sme6 (mailblocking)
this only worked if the user was honest and set his email address correctly