Koozali.org: home of the SME Server

Restrict a set of users to local domain only

Offline kryptos

  • ****
  • 245
  • +0/-0
Re: Restrict a set of users to local domain only
« Reply #15 on: June 10, 2008, 07:41:08 AM »
Thanks for the answers.

I have tried doing db accounts setprop username Visible internal

and it is automatically added the account name and username@mydomain.comto /var/qmail/control/badrcptto. But my problem is if someone uses the pseudonym of the account instead of username and sending from extrenal domain to pseudonym-of-user@mydomain.com it goes through. Just guide me on how to add an entry to the templated /var/qmail/comntrol/badrcptto.Not very good at it when comes to creating templates in SME.


Regards,
Rocel

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Restrict a set of users to local domain only
« Reply #16 on: June 10, 2008, 03:05:30 PM »
Thanks for the answers.

I have tried doing db accounts setprop username Visible internal

and it is automatically added the account name and username@mydomain.comto /var/qmail/control/badrcptto. But my problem is if someone uses the pseudonym of the account instead of username and sending from extrenal domain to pseudonym-of-user@mydomain.com it goes through.

Set the 'Visible' property of the pseudonyms as well.