Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: forumuser7 on September 24, 2006, 11:19:48 PM
-
Hi,
Can SME 7 handle the email for 2 domains?
How the mail server can be configured to collect and
deliver email for both of these domains.
Thank you for your comments!
-
forumuser7,
> How the mail server can be configured to collect and
deliver email for both of these domains.
1) Read the manual
2) Add required domains in the Domains panel
3) Configure pseudonyms for domain users
-
Hi,
I added new users, I created pseudonyms for domain users but I found this setup a little bit inconvenient.
In order to have the same email user names for all 3 domains I had to create:
username1 and pseudonyms=username1@domain1.com
username2 and pseudonyms=username1@domain2.com
username3 and pseudonyms=username1@domain3.com
Instead, I'd like to create a set of users (username1,username2, username3) for domain1.com.
I'd like to have exactly the same set of users (username1,username2,username3) for domain2.com.
Is his possible with SME 7.0?
Thank you for your help!
-
Is user1 the same user on both domains?
-
Yes,
I'd like to have 3 email accounts like this:
usename1@domain1.com
usename1@domain2.com
usename1@domain3.com
where "username1" is the same for all 3 domans.
-
If
username1@domain1.com
and
username1@domain2.com
and
username1@domain3.com
are all the same person, you do not have to do anything. Any email comming into your server will go to user1 reguardless of the domain. If they are in fact different people, then pseudonyms must be used.
-
forumuser7
sme only has one name set, meaning only one occurence of a same name can be in the system, whether it be a user, a group, or an ibay.
Therefore whenever you create a user account and you have multiple domains, then that user will apply to all domains automatically.
So user1 will receive email for
user1@domain1
user1@domain2
user1@domain3
user1@domain4
The problem is that you cannot have different people using the same user account name to collect email.
Using the pseudonyms panel is the only way that sme can distribute email for the same user "name@different-domain" names, but you need to use it in conjunction with the correct underlying naming concepts.
If you want something like the following (which I suspect you do), then this is how you must do it.
The golden rule is never allocate unique user names to end users accounts as these will no longer be available for globalname@domain type email address usage.
eg
create your domains eg domain1, domain2, domain3, domain4 and configure those domains to use different ibays for the web content.
You can even setup different groups to allow only different users to access each ibay to update web content etc.
create user accounts john1, john2, john3, john4 as needed for users who want the name john, but they will use the login name john1 rather than john (the login names could be johnb, johnb2, johnw, johnm etc etc)
create user accounts mary1, mary2, mary3, mary4 as needed for users who want the name mary, but they will use the login name mary1 rather than mary
create user accounts paul1, paul2, paul3, paul4 as needed for users who want the name paul, but they will use the login name paul1 rather than paul
create pseudonyms eg
john@domain1 which forwards to user john1
john@domain2 which forwards to user john2
john@domain3 which forwards to user john3
john@domain4 which forwards to user john4
mary@domain1 which forwards to user mary1
mary@domain2 which forwards to user mary2
mary@domain3 which forwards to user mary3
mary@domain4 which forwards to user mary4
paul@domain1 which forwards to user paul1
paul@domain2 which forwards to user paul2
paul@domain3 which forwards to user paul3
paul@domain4 which forwards to user paul4
ie in the pseudonyms field type the whole pseudonym name as john@domain1
Note do not use john, mary or paul for any other purpose ie as user account names or group names or pseudonym names (on its own) or ibay names.
If your want your end users to use webmail then they login in using the URL
https://domain1/webmail
https://domain2/webmail
https://domain3/webmail
https://domain4/webmail
If you want webmail to be configured for the correct domain for the correct end user the first time they use it, then you will need to do that manually yourself before issuing the login details to the user.
eg
login to webmail as the end user eg john1 (for domain1) and setup the profile for that user to show the return email address of john@domain1
login to webmail as the end user eg john2 (for domain2) and setup the profile for that user to show the return email address of john@domain2
Do the same for all other webmail accounts that will be issued configuring the profile and return address as applicable.
If you don't configure webmail profiles manually then they will have the default return address of loginusername@domain1 (or the main domain name of the server if different).
> I added new users, I created pseudonyms for domain users
> but I found this setup a little bit inconvenient.
I'm sorry but you don't have to use sme server if you find it too inconvenient. The method outlined above is the only way it can be done due to the design of sme server
-
forumuser7
For clarification eg for john1 for domain1
The user account will be john1 and the person uses that name (& corresponding password) to login to the server or to webmail.
The email address for the user will be the same as the pseudonym
ie john@domain1
and that is the address the user should publish and use as the return email address.
Obviously the name before the @domain is different to their login username, that's the compromise to be accepted if using sme this way.
It is quite common in practise, as users often have different "position related" pseudonyms anyway eg manager@domain1 forwards to john1.
As the user account john1 has been created on the server, then that will also work as a valid email address ie john1@domain1 will deliver email to john1, but note also that email "inadvertantly" sent to john1@domain2 or john1@domain3 or john1@domain4 will also be sent to john1.
This is not usually a problem as you simply don't tell john1 that any hosted domain addresses will work for that name.
-
forumuser7
If the above method is not acceptable/desirable, then the only other way you could setup users is to have only one occurence of a user name eg
john, john1, john2, john3, johnb, johnb1, johnb2, johnw, johnws etc, similar to what ISP's do anyway.
Every username will be valid (email address) for every domain hosted on your server, but you only tell the end user about their domain eg
john@domain1
john2@domain1
john3@domain2
johnb@domain1
johnb2@domain2
johnb3@domain3
etc etc
but
john@domain2
and
john@domain3
etc etc will still work.
Any email sent to any of the addresses will automatically be received by the end user account, and the user account name and login name will be the same.
No need to configure pseudonyms in that case.
You will still need to configure Webmail profiles manually for each domain that is different to the default domain.
The ultimate answer to having seperately administered domains and identical user names at different domains, is to host only one domain on one sme server ie have a different server for every domain.
There have been recent posts in these forums re how to do this and forward/delegate email for different domains from one gateway server to other server only boxes on the same LAN using the same Internet connection.
See this thread for details
http://forums.contribs.org/index.php?topic=30953.0
-
Thank you very much for the detailed explanation Ray!
Now I understand the concept.
forumuser7
sme only has one name set, meaning only one occurence of a same name can be in the system, whether it be a user, a group, or an ibay.
Therefore whenever you create a user account and you have multiple domains, then that user will apply to all domains automatically.
In my case - I need to create 3 sets of users for 3 different domains.
These users will only use the email system and no any other services like FTP, or SSH.
Following your advise I chose to create SME users names and pseudonyms like these:
john@domain1.com which forwards to SME user "user001"
john@domain2.com which forwards to SME user "user002"
john@domain3.com which forwards to SME user "user003"
mary@domain1.com which forwards to SME user "user004"
mary@domain2.com which forwards to SME user "user005"
mary@domain3.com which forwards to SME user "user006"
etc.
So, the mail user john@domain3.com has to use "user003" login
name to retrieve his email, but his email address will be:
"john@domain3.com".
I'm sorry but you don't have to use sme server if you find it too inconvenient.
No, Now I do not think it is "too" inconvinient.
I just didn't know what is the right way to do it.
I searched SME 7 documentation here (before posting the question) http://smeserver.sourceforge.net/sme70/Manual?v=78k
and I didn't find any info on multiple domain email setup.
I think you should submit this to the documentation.
Thank you very very much again for your help!
It saved me days of experimenting!
-
forumuser7
What you have done sounds OK.
> I searched SME 7 documentation .....and I didn't find any info on multiple domain email setup.
It's not well covered in the manual, that's why I wrote a good explanation for you.
> I think you should submit this to the documentation.
Good idea, I'll either write a seperate mini howto or submit this thread for inclusion as a FAQ.
> It saved me days of experimenting!
Hopefully it's useful to others too !
-
Yes
I believe it will be very usefull for those who want to host several web
sites on one SME server using different domains.
Thank You for the help!
-
I searched SME 7 documentation here (before posting the question) http://smeserver.sourceforge.net/sme70/Manual?v=78k
and I didn't find any info on multiple domain email setup.
I think you should submit this to the documentation.
The user manual is a wiki - it can be edited - you just need to register on that site to edit the pages - Anyone can do it.
The current section on pseudonyms is here:
http://smeserver.sourceforge.net/sme70/Manual?v=78k#h77-7
It is in Chapter 9 - so you just go to the bottom of Chapter 9 and click "Edit".
I think this should be in the manual too, but we need people to gather important bits of info like this and put it in the manual - I can't be the only one to do it. I would use sales@ and info@ in the example rather than John and Mary.
-
Ray,
You should add this to the documentation when you have time.
-
gregswallow
> I think this should be in the manual too, but we need people to
> gather important bits of info like this and put it in the manual
Done
See 9.4 Pseudonyms, Practical usage guidelines section added at the end
http://smeserver.sourceforge.net/sme70/sme70/Manual/Chapter9?v=kcn
-
Anyway that I could go into folder to change the default identity and return address for users?
Where should I look into?
If you want webmail to be configured for the correct domain for the correct end user the first time they use it, then you will need to do that manually yourself before issuing the login details to the user.
eg
login to webmail as the end user eg john1 (for domain1) and setup the profile for that user to show the return email address of john@domain1
login to webmail as the end user eg john2 (for domain2) and setup the profile for that user to show the return email address of john@domain2
Do the same for all other webmail accounts that will be issued configuring the profile and return address as applicable.
If you don't configure webmail profiles manually then they will have the default return address of loginusername@domain1 (or the main domain name of the server if different).
-
cityexplorer
> Where should I look into?
How hard can it be ??? There are only 6 or so main menu choices in webmail.
"login to webmail as the end user eg john1 (for domain1) and setup the profile for that user"
-
Well, I need to update 300+ users settings.. life would be a bit easier if I can change them without going through the interface...
Thanks...