Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: MasterSleepy on November 16, 2003, 01:15:47 PM

Title: Limit user email to one or more (virtual) domain.
Post by: MasterSleepy on November 16, 2003, 01:15:47 PM
Hello,

I write a contrib to limit email users on one or more domain.
This contrib was tested on SME 5.6 and 6.0b3 with all update.

You can find it
Here

Regards.
MasterSleepy
Title: Re: Limit user email to one or more (virtual) domain.
Post by: vj on November 17, 2003, 01:56:11 AM
that sounds great :-)
I'll test it right away

is it supposed to work with aliases too?

vj
Title: Re: Limit user email to one or more (virtual) domain.
Post by: MasterSleepy on November 17, 2003, 08:50:39 AM
Yes

The limitation applies to username and all alias define for that user.

MasterSleepy
Title: Re: Limit user email to one or more (virtual) domain.
Post by: Daley on November 17, 2003, 04:56:22 PM
how many emails that we can define per user? or is it a global setting?

Thank you,
Daley
Title: Re: Limit user email to one or more (virtual) domain.
Post by: MasterSleepy on November 17, 2003, 07:06:23 PM
Hello daley,
It's not really emails, but alias.
If you have 3 domains on your SME:
for example :
test.com
example.com
users.com

If you create a user for example :
itest
He can receive email if it is adressed to  itest@test.com or itest@expample.com or itest@users.com

This contrib allow you to limit that, If you want that users to only receive email at itest@example.com only select example.com.
Of course as seen before it work for all pseudonym given to that user.

Hope this can help you,
Regards
Title: Re: Limit user email to one or more (virtual) domain.
Post by: haj on March 31, 2004, 06:47:18 AM
Quote from: "MasterSleepy"
Hello daley,
It's not really emails, but alias.
If you have 3 domains on your SME:
for example :
test.com
example.com
users.com

If you create a user for example :
itest
He can receive email if it is adressed to  itest@test.com or itest@expample.com or itest@users.com

This contrib allow you to limit that, If you want that users to only receive email at itest@example.com only select example.com.
Of course as seen before it work for all pseudonym given to that user.

Hope this can help you,
Regards


First of all: great job !!!

Have a problem with that contrib.

My server is set up in Gataway mode.

My SME domain is domain.com but that domain also exist on the internet so I have set up www.domain.com to point to real domain server.

So:

- when i want to send a mail to a user created on my sme I send it to user@domain.com

- when I want to send a mail to a user created on the real domain.com server (on the internet) and if that user does not exist on my SME, I send it to user@www.domain.com

After installing your contrib, I can't send anymore mail to user@www.domain.com it says user unknow...

Any idea?