Page 1 of 1

block some users send external email.

Posted: Mon May 28, 2007 4:02 am
by lowkl
Hello, i want to block some users to send external email. They only allow to send the internal emai. Is that posible to do it.

Thank You

Posted: Mon May 28, 2007 8:54 am
by ScalixSupport
Hi!

There is a possible way, but it's not pretty at the moment.

You can use pam_listfile to block a user, but you'll also need om_om2authid to get a
PAM_USER name that's useful for putting in a pam_listfile command.

Basically need to add "auth required om_om2authid" and "auth required pam_listfile ..." lines
to file ~/sys/pam.d/smtpd.auth so that you can use that to block access for specified users.

Hope this helps.

Thanks,
Subir

Posted: Mon May 28, 2007 9:27 pm
by eyalm
check this post http://www.scalix.com/forums/viewtopic.php?t=125&start=0&postdays=0&postorder=asc

Basically you create 2 rules (incoming and outgoing), add them to the mailnode with ommodrt.
Then change the service level of the users you want to block access with ommodu -n <user> -s <service level>

hope it helps.

Posted: Tue May 29, 2007 2:19 am
by lowkl
I will try it. Thank You