PDA

View Full Version : Can I set up email accounts for multiple domains



spellow
11-24-2003, 10:03 AM
I know I can host multiple domains from one hosting account, which I am doing, but can I set up email for 2 different domains as well?

spellow
11-24-2003, 10:26 AM
I have the holiday special plan.

FZ
11-24-2003, 11:08 AM
Unfortunately that is not possible. E-mail accounts are mirrored, in that if you set up "username1@primarydomain.com" then all mail sent to "username1@seconddomain.com" will be sent to the same mailbox automatically. I have figured out a way to separate them, though, so if you would like me to help you with that, let me know. By "separate" I mean you can send mail to the secondary domain to another mailbox instead of having to receive it at the first one, if you know what I mean...

spellow
11-24-2003, 11:25 AM
thanks for the info, that's too bad. I'll run the mail from somewhere else.

Thanks anyway.

Can I run bulletin boards on the different domains, or just the primary domain?

FZ
11-24-2003, 11:58 AM
No problem. Just before you give up on the option though, you might want to keep in mind that you could set it up so people that send you the mail never realize that it is going to a mailbox on the primary domain (by changing your From: to match your secondary domain name e-mail address, etc.) so it really wouldn't be that bad at all - the only real difference would be that you would be connecting to a mailbox on the primary domain to receive mail supposedly sent to the secondary domain (i.e. the login name would be different, that's all).

As for bulletin boards, yes, your domains can point to totally different web sites. As for being able to install more than one instance of PHPBB (via the Site Manager at least), I don't think that is possible (manually, yes you can do that), but you should check and make sure...

spellow
11-24-2003, 12:38 PM
oh, gotcha, I think I can live with that email option, I'll try it out and let ya know. Thanks. I figured on the phpbb I would have to install it manually, I'm working on that now.

thanks for all the info.

adpwl1
11-24-2003, 05:28 PM
FZ, I'm looking to do the same, but in the Reseller package.

So, are you saying that you can do something that will allow the following

username1@primary.com
username1@secondary.com

And each of these be separate? so one doesn't mirror the other?

I think WestHost should allow you "helpers" to put a web cast together to help all of us other users out.

Thanks!

CK1
11-24-2003, 06:09 PM
You can use the same e-mail alias name for different domains, but it is a bit complicated. This is how you do it:

(The files I talk about are in the /etc/mail directory)

1. Remove the alias in question from the 'aliases' file.
2. Run the 'newaliases' command to compile the aliases file.
3. Edit the 'virtualusertable' file, and add these lines:
(I am using the alias name john)


john@domain1.com mark
john@domain2.com sally

4. Run this command to compile virtualusertable


makemap hash virtusertable < virtusertable

With this setup, john@domain1.com would be forwarded to the mailbox mark and john@domain2.com would be forwarded to the mailbox sally.

*Disclaimer* make backups of everything. This is not something that WestHost supports, this is tinkering on my part.

FZ
11-25-2003, 11:37 AM
adpwl1,

Yes, you can have the same address (but different domains) go to two different mailboxes, just like CK1 explains so well in his post above. Initially I was using Procmail to do that, but I figured out the hack above as well, and it is a much better solution (since Procmail might "miss" a mail or two, depending on how well you specify the conditions), plus the fact that the above method works out well in conjunction with custom Procmail recipes and Spamassassin settings (i.e. it works out much, much better than using Procmail when the mail account(s) in question have home directories specified - full functionality is restored in this case).

adpwl1
11-25-2003, 08:15 PM
Thanks all! I fully understand this a lot better.

In the most basic sense, its looks like a forward type of setup.

How does this effect webmail logins. Will they then login using the actual mailbox instead of virtual email address?

Loging using mary@xxx.com instead of userid1@xxx.com?

FZ
11-26-2003, 04:52 AM
adpwl1,

They'd need to log in using the username/password combo assigned to the mailbox you are forwarding the second domain's mail to. Taking CK1's example, to read mail sent to john@domain2.com you would need to log in to the sally mailbox...

adpwl1
11-26-2003, 07:45 PM
I think, one last question. Since I don't have a test domain setup to try this out and I need to know this to help design our reseller layout packages. The next question, how does this all effect email aliases?

If I create contact@primary.com and contact@secondary.com can I have:

contact@primary.com forward to contact@yahoo.com
contact@secondary.com forward to contact@aol.com

What about Maillists?

Thanks for all the help!!!

FZ
11-27-2003, 05:04 AM
Yes, that is all possible (forwarding to different addresses as well as mailing lists). If not with Sendmail, it can be done with Procmail. However, I would recommend you test it all thoroughly (when you get a chance) before you design your packages around something as "untested" as this. In fact, I could test this for you if you like (I'm not on a reseller package, but I do have 2 domains) - let me know.

mrhyde
12-03-2003, 03:54 PM
Hi..

I am about to buy the holiday package - which is obviously not a reseller package..

however i am looking at the same issue - similar emailIDs and multiple domains - I sorted out the problem for a client on a verio VPS - using the virtusertable technique - that was a couple of years back !!

Now what I want to know is whether on a NON-RESELLER package, I would have write-permission on /etc/mail/virtusertable - or rather /etc/mail/* ... also, would I have execute permission for makemap ??

The last query of mine about makemap is sounding SILLY but then I gotta be sure before I leave Superb.net for westhost.com !!! I mean it should not be the case that ONLY on reseller packages is the write permission granted to /etc/mail while on the rest it is not...

Thanks
Nilanjan

FZ
12-03-2003, 04:27 PM
Nilanjan

I am on a non-reseller account, and I have write permissions to /etc/mail/* so, yes, you will be able to do the above with your new account. In fact, I just executed the makemap command as above to make sure it does work (it does).

mrhyde
12-03-2003, 04:46 PM
Thanx FZ !!! I am excited to move to Westhost... gess shall move two domains and see for a day or two and then move the rest of the domains... dont want clients cannibalizing me !!! :)

FZ
12-03-2003, 04:56 PM
No problem. I'm sure you'll have a great experience with WestHost. They rock. Plus there is this forum where you can always get non-standard help/solutions from creative people when you need it (apart from WestHost support, of course) ;)

spellow
12-05-2003, 09:23 AM
okay, so I have joey@domain1.com created

I have no aliases set up for user joey

when I ssh into /etc/mail and look at 'virtualusertable' file I see

joey@domain.com joey
joey@domain1.com joey
joey@domain2.com joey
joey@domain3.com joey

now I know I was suppose to modify this file to say this, but it already said it when I got there and I didn't do anything?

what am I missing?

mrhyde
12-05-2003, 09:56 AM
Well I bought the reseller1 package finally - still waiting for it to be setup, though. So what I am writing in here is not based on a direct experiece of westhost's servers but on a similar experience on a Verio VPS.

I believe, when you would have created your email addess, joey@domain.com, by DEFAULT, the westhost system would have been appending the virtusertable file with the list of entries you have given, so that, by DEFAULT, all mails sent to joey@domain1.com, joey@domain2.com and so on, get forwarded to the user "joey" on the server - it doesn't matter which domain because a "user" is domain independent. This must be their default settings for any new email user created by you.

Now if what you want anything@domain1.com to be handled by a separate user, say "sally" and anything@domain.com to be handled by the user "joey" then the virtusertable entries have to be like this:

@domain.com joey
@domain1.com sally

Of course, the user sally has to be created first. And also, of course, the entries present in there need to be deleted too. And ALSO, you need to do the makemap thingy:

makemap hash virtusertable < virtusertable

Hope that helps... however do remember, I am YET to actually begin operations on my own account... hope these guyz set up my account QUICKLY !!!

spellow
12-05-2003, 12:18 PM
ok, I got it, working good now.

THanks all,

Scott

themela
01-18-2004, 03:05 PM
Hi, I think I found the solution to my problem about emails to different domains. I just don't have the technical background to pull this off. I read CK1's reply, but I don't understant the part of "Run Command"???

4. Run this command to compile virtualusertable

makemap hash virtusertable < virtusertable

How does one 'run command'?

wildjokerdesign
01-18-2004, 03:25 PM
Hi, I think I found the solution to my problem about emails to different domains. I just don't have the technical background to pull this off. I read CK1's reply, but I don't understant the part of "Run Command"???

4. Run this command to compile virtualusertable

makemap hash virtusertable < virtusertable

How does one 'run command'?

When CK1 speaks of running a command it is within a SSH session. Confused :) I was at first. It really is not that hard.

First you are going to need a progam called putty installed on your home computer. You can get it here Putty (http://www.chiark.greenend.org.uk/~sgtatham/putty/) and the WestHost instructions to configure it are here WestHost Manual (http://manual.westhost.com/part1.html#gi-telnet).

Once you have it installed and configured it you start it up and log in. You well need your username (no @domain.com) and password. Type in your username and hit return. Now type in your password and hit return. (Note: When typing in your password it well not show no the screen in fact it the cursor well not even move but it is being input so type carefully.)

Now that you are logged in all you have to do is type type in what they say when they say run command.

Let us know if you have any problems.

mrhyde
01-18-2004, 03:35 PM
"run a command" means you need to login into your account using an SSH client - I use Putty - a free SSH2 client - you can get it at:

http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

Once you login to your account you need to do the following:

[youraccount][~]$ cd /etc/mail

and click on "Enter"

[youraccount][/etc/mail]$ makemap hash virtusertable < virtusertable

and click on "Enter"

followed by this you will, I believe, need to restart sendmail - but since I don't know how to do so under the current environment, I simply restart the server - from my site manager.

and its done...

wildjokerdesign
01-18-2004, 04:31 PM
followed by this you will, I believe, need to restart sendmail - but since I don't know how to do so under the current environment, I simply restart the server - from my site manager...

If type "restart" while in your ssh session it well restart the server.

jalal
01-19-2004, 01:37 AM
sendmail is not run as a daemon, so will not need restarting...

mrhyde
01-19-2004, 05:02 AM
are u sure about the "restart using ssh" thingy ? i had tried that earlier but somehow I got a response about httpd and mysql being restarted - are all other services also restarted ?

also, in any case as jalal's pointed out restart is not required... but then does sendmail have to read through the entire virtusertable (and other tables) on the disk every time a mail reaches the server as compared to say compiling it into its memory at startup ???? maybe - i am not an expert on sendmail :)

wildjokerdesign
01-19-2004, 07:50 AM
hmm... Now I am confused and I hate to think I gave out bad info... guess it would not have been the first time. I had assumed that restart was working on sendmail because I had read through the files in /ect/mail and the help file had this at the bottom:


control Help for smcontrol:
control help This message.
control restart Restart sendmail.
control shutdown Shutdown sendmail.
control status Show sendmail status.


But then again not everything is set up on the VPS as normal as we have found in the past. I wonder if you would need to type:
restart sendmail

When I was reading through all the different files it did mention restating sendmail I think in one of them but I could not find it this morning on a quick look through.

I have another question that comes from reading through my sendmail.cf file. There is an entry that looks like this:

#O DeadLetterDrop=/var/tmp/dead.letter

Most enteries are minus the # and I had thought that the # was like commenting out something. I know that I have gotten a dead.letter file before in my root directory and not the /var/tmp/ directory. Is there another file that is part of the config of sendmail that needs to be looked at or is maybe the dead.letter feature handled by procmail in this set up. I don't need to do anything about it but trying to understand the whole e-mail thing. I have read your info, Jalal, on the route mail takes and if I remember it goes from sendmail to procmail.

Don't know that any of this answers anything... talk about a can of worms. :)

jalal
01-19-2004, 09:39 AM
sendmail is started each time an email arrives in the current setup. No big deal.

DeadLetterDrop is handled by sendmail, it is where undeliverable mail ends up. On Westhost it ends up in the root directory.

I'm not sure why that is except that for some applications such as sendmail and ssh the root directory is perceived as the users home directory. I think the internet interfaces are started outside of the virtual machines and do not read the .bashrc file, which is what changes the home directory from root to /home/mydomain/.

mrhyde
01-20-2004, 11:06 AM
well i did some hunting around on the server using my ssh client and i am now sure the "restart" command does NOT restart the server but rather only httpd and mysql...

the "alias" command lists restart to be an alias for

/etc/rc.d/rc stop; /etc/rc.d/rc start

now when i studied the "rc" script and followed the instructions i understood that as of now only httpd and mysqld are restarted... thats becoz thats how its configured... mebbe someone can add more services to be restarted.

jalal
01-20-2004, 12:49 PM
The only two services on a Westhost site are MySQL and Apache.

Skullman
02-16-2004, 07:56 AM
As long as I'm not a Linux specialist, I'd like to have a very easy to use guide in order to understand all the changes that you provide on this topic. Here is what I understand as the steps to make the same email address (in two domains) go to diferent mail boxes:

1. Create two users that will recieve the mailboxes of our two domains. This can be done via the control panel. For example:


mailbox_one -> this should create: mailbox_one@domain1.com, mailbox_one@domain2.com
mailbox_two -> this should create: mailbox_two@domain1.com, mailbox_two@domain2.com


2. Open a Telnet session. Westhost Manual (http://manual.westhost.com/part1.html#gi-telnet)

3. Edit /etc/mail/virtualusertable file, and point the same address to the different mailboxes that we have created:


info@domain1.com mailbox_one
info@domain2.com mailbox_two



Note: This is not tested, and are only the steps that I have understand from all the messages of this topic.

I want this message to be a clear How To, of making this thing work, not for me, but for everyone who like using multiple domains and email accounts.

jalal
02-16-2004, 09:15 AM
I don't think steps 2 - 5 are necessary.
And in step 7 you can just run:
$ make

Apart from that, it seems like systems are a go...
8)

mrhyde
02-16-2004, 09:52 AM
also as jalal has already pointed out in some other topic, "restart" is not required since sendmail does NOT run as a service so it will anyway read everything everytime it is invoked.

Good work there, in having compiling the steps !!

adpwl1
02-16-2004, 12:09 PM
Jalal, is correct. I perform these steps everytime I add email address or domains.

I have actually modified my virtusertable to breat it down in sections.

I have commented my file and broke it down to each type of email

Default, root, mail-deamon, postmaster, domain1, domain2.....

THis makes it easier for me to modify my file and know exactly what emails exist for each domain.

I'm no linux guy either and don't know the first think about the commands being entered, but the steps that this forum provide are easy enough for me to understand.

Skullman
02-18-2004, 10:56 AM
It whould be cool if you post an example of your virtusertable in the forum. That way may help others configuring it themselfs.

I have asked to the support about all this topic, I think is quite usefull thing to everyone to think about making it easy to understand and configure. I still think that this should be implemented on the Admin tool.

I'm going to edit my last post and fix all the things that some of you have write. That should be a kind of unoficial guide to make this work :P

adpwl1
02-18-2004, 12:00 PM
Here is a sample of my file. Domain and emails have been changes to protect the innocient.

#This is a comment. Comments are good.

#A regular virtual user alias takes the following form:
#alias@domain.com anotheraddress@domain2.com

#A "global" alias looks like the following:
#@domain.com account@mail.com

#@default
@domain1.com user1
@domain1.com.whsites.net user1
@domain1.com.yourtempsite.com user1
@domain2.com user1
@domain3.com user1

#root
root@domain1.com root
root@domain1.com.whsites.net root
root@domain1.com.yourtempsite.com root
root@domain2.com user2
root@domain3.com root

#postmaster
postmaster@domain1.com postmaster
postmaster@domain1.com.whsites.net postmaster
postmaster@domain1.com.yourtempsite.com postmaster
postmaster@domain2.com user2
postmaster@domain3.com postmaster

#MAILER-DAEMON
MAILER-DAEMON@domain1.com MAILER-DAEMON
MAILER-DAEMON@domain1.com.whsites.net MAILER-DAEMON
MAILER-DAEMON@domain1.com.yourtempsite.com MAILER-DAEMON
MAILER-DAEMON@domain2.com user2
MAILER-DAEMON@domain3.com MAILER-DAEMON

#domain1.com
info@domain1.com info_eit
user1@domain1.com user1
firstname1.lastname@domain1.com user1


#domain2.com
info@domain2.com user2
user2@domain2.com user2

#domain3.com
user3@domain3.com user3

dansroka
03-18-2004, 11:02 AM
Hi - I have another question to toss into this thread. So, I see CK1's overview of how to use the same email alias for different domains. Seems to make sense. But how does this impact what you see in WestHost Manager? Once you do this manually, I assume that Manager's alias list will no longer be accurate. Is that right? And if you use Manager to change an alias, it will overwrite all your manual efforts. Will adding new mail accounts via Manager mess up these manually created aliases?

Thanks!
Dan




You can use the same e-mail alias name for different domains, but it is a bit complicated. This is how you do it:

(The files I talk about are in the /etc/mail directory)

1. Remove the alias in question from the 'aliases' file.
2. Run the 'newaliases' command to compile the aliases file.
3. Edit the 'virtualusertable' file, and add these lines:
(I am using the alias name john)


john@domain1.com mark
john@domain2.com sally

4. Run this command to compile virtualusertable


makemap hash virtusertable < virtusertable

With this setup, john@domain1.com would be forwarded to the mailbox mark and john@domain2.com would be forwarded to the mailbox sally.

*Disclaimer* make backups of everything. This is not something that WestHost supports, this is tinkering on my part.

adpwl1
03-18-2004, 01:56 PM
So, here is how I handle that. You are correct in thinking that once you modify the file manually, it can not be modified in the control panel. So, here is the process I use. Remember I always have the most current version of my custom file locally also.

1) I create the user account in control panel. Eventhough this creates an email address, I don't use it that way. I consider it a USER account.

2) Once you create these user accounts, all the additions will be added to the end of the existing virtusertable.

3) Now, I edit the local virtusertable file with the new email address I want created.

4) I ftp the updated file and run the commands to get everything going.

Does that help?

dansroka
03-18-2004, 05:36 PM
Yeah, that helps. So basically -- once you do this, ignore what Manager's control panel shows you. (And save a local backup in case you forget and accidentally use the control panel.)

Oh, and I edit "etc/mail/virtusertable" and NOT virtuser or virtusertable.db, right?

I think this will all make sense once I actually try it, and see what happens. Thanks.

adpwl1
03-18-2004, 08:59 PM
You only need to use the control panel to create the user. In a normal setup, the USERID would also be USERID@abc.com.

With this setup USERID is actually a user ID and you can create any email address against that ID by manually creating the entries in the file.

You got the right file to modify also. Just makesure you run that make command stated in the instructions.

I am no Linux guy and once I did this I understood what this all ment. So, give it a try.

wildjokerdesign
03-18-2004, 09:38 PM
Trying to clearify everything.
So the instructions that Skullman posted are correct and the steps you need to take... correct?

The only thing I think I see missing from them is that once finnished the command
makemap hash virtusertable < virtusertable
needs to be run in the telenet session. Only one command in telenet needs to be run?

I'd like to copy a version of the steps to my forum which is why I am trying to make sure I have it right. Right now I don't have the need for it so have not played with it and the only account I have access to with multiple domains is a clients and I don't want to be fooling around with it. :)

adpwl1, I like the example you have given and the way you have laid everything out so that it is easy to keep track of. It helps to see a "real" version detailed out like that.

adpwl1
03-19-2004, 06:28 AM
THe only command missing from Skullman is the Make command that need to be ran in the SSH/Telnet connection.

Where he mentions about opening a telnet session to edit the file, that part I do locally then FTP the new file over. I find it easier to format and navigate in the file using a windows based editor. But someone could use "vi" or someother linux editor via SSH/Telnet.

wildjokerdesign
03-19-2004, 07:23 AM
Thank you adpwl1 when I post this on my board do you mind if I use your example file? I would credit you and link to your site. The reason I like to duplicat stuff to my board is so that solutions do not get lost in the middle of post. I think in reality I am about the only one who uses my board. :)

Skullman
03-19-2004, 07:41 AM
Then, here we go again, this should be all the steps and the right way:

1. Create two users that will recieve the mailboxes of our two domains. This can be done via the control panel. For example:


mailbox_one -> this should create: mailbox_one@domain1.com, mailbox_one@domain2.com
mailbox_two -> this should create: mailbox_two@domain1.com, mailbox_two@domain2.com


2. Open a Telnet session. Westhost Manual (http://manual.westhost.com/part1.html#gi-telnet)

3. Edit /etc/mail/virtualusertable file, and point the same address to the different mailboxes that we have created:


info@domain1.com mailbox_one
info@domain2.com mailbox_two



4. Run the makemap command:

makemap hash virtusertable &lt; virtusertable


Alternatively you can edit those files via FTP as adpwl1 said before.

warren
05-04-2004, 12:42 AM
CK1 should get an award for this fix!


You can use the same e-mail alias name for different domains, but it is a bit complicated. This is how you do it:

(The files I talk about are in the /etc/mail directory)

1. Remove the alias in question from the 'aliases' file.
2. Run the 'newaliases' command to compile the aliases file.
3. Edit the 'virtualusertable' file, and add these lines:
(I am using the alias name john)


john@domain1.com mark
john@domain2.com sally

4. Run this command to compile virtualusertable


makemap hash virtusertable &lt; virtusertable

With this setup, john@domain1.com would be forwarded to the mailbox mark and john@domain2.com would be forwarded to the mailbox sally.

*Disclaimer* make backups of everything. This is not something that WestHost supports, this is tinkering on my part.
---------------------------------------------------------
REPLY
I am working on reselling domains using the deluxe package with 10 domains. but what good is 10 domains if you cant offer email!!
I just completed testing the solution offered by CK1 and it works perfectly and is not as difficult as it may seem at first. I did not have to do steps 1 and two as I did not have any alais setup. Heres what I did in simple terms so dummies like me can follow.

(Note instead of using sally and mark as alais (read mailbox names) I devised this format which is very descriptive and will not confuse the end user As a mailbox name concanteniate the name and domain (john.abc.com)

(john@domain1.com uses john.domain1.com as mailbox name instead of using mark. john@domain2.com uses john.domain2.com as mailbox name instead of using sally as in CK1 instructions above)

_BEFORE YOU DO ANYTHING_
YOU BETTER DOWNLOAD A COPY OF VIRTUSERTABLE FILE _BEFORE YOU DO ANYTHING_IN CASE YOU SCREW UP. KEEP IT IN A SAFE PLACE!!

/etc/mail/vertusertable
NOT /etc/mail/vertusertable.db

You host two domain abc.com and xyz.com.

1. Go to manager and make a new mailbox called john.abc.com give it a password

2. Via ftp I downloaded the /etc/mail/vertusertable file as described above.

At the end of the file you will see two new entries.

----AT THE END OF THE FILE YOU WILL SEE:
john.abc.com@abc.com john.abc.com
john.abc.com@xyz.com john.abc.com

[as matter of fact you will have john,abc.com mailboxes for every domain you have]

----AT THE END OF THE FILE YOU WILL SEE:
john.abc.com@abc.com john.abc.com
john.abc.com@hjk.com john.abc.com
john.abc.com@mydomain.com john.abc.com
john.abc.com@example.com john.abc.com

3. I edit the file to delete all the false mailboxes (which appear below the one you want) so only this remain. DO NOT DELETE THE EXISTING ONES WHICH APPEAR ABOVE THE NEW ONE - YOU BETTER DOWNLOAD A COPY OF VIRTUSERTABLE FILE _BEFORE YOU DO ANYTHING_IN CASE YOU SCREW UP.

BEFORE EDITS

----AT THE END OF THE FILE YOU WILL SEE:
john.abc.com@abc.com john.abc.com
john.abc.com@hjk.com john.abc.com
john.abc.com@mydomain.com john.abc.com
john.abc.com@example.com john.abc.com

AFTER EDIT
----MAKE LAST ENTRY AT THE END OF THE FILE:
john.abc.com@abc.com john.abc.com
( \/ DELETE THESE \/)
john.abc.com@hjk.com john.abc.com
john.abc.com@mydomain.com john.abc.com
john.abc.com@example.com john.abc.com

AND EDIT
john.abc.com@abc.com john.abc.com
SO IT READS
john@abc.com john.abc.com


4 login via ssh and CD to /etc/mail/
5. run makemap hash virtusertable &lt; virtusertable

(at the prompt type,without the quotes, "makemap hash virtusertable &lt; virtusertable" then press enter)

as described above by CK1

BINGO You got it!!

now if you get a john for xyz.com do above so last TWO lines of virtusertable would look like this:
john@abc.com john.abc.com
john@xyz.com john.xyz.com


Tell your user to connect to their mailbox (using their email client) as
username john.abc.com [THATS THEIR USER ID] not john or john@abc.com and the password you gave when setting up the mailbox in manager.

AFTER ALL THATS THE WHOLE POINT OF THIS

CAUTION
To delete mail boxes you need to remove it in manager and download vertusertable and delete the entry manually then upload
and run
makemap hash virtusertable &lt; virtusertable
again


BONUS!!!
http://forums.westhost.com/phpBB2/viewtopic.php?t=1837
---------------
fz: "You have to use the "mini Site Manager" [login] at http://yourdomain.com/users/ [http://yourdomain.com that would be your primary domain not domain1.com] . Unfortunately, this is (I think) still undocumented by WestHost, which is why few people seem to know about it. "
--------------------

Give this link to your user and they can change their own **** password!
(THEY LOG IN WITH MAILBOX NAME i.e. john.abc.com)

AND the beautiful part is that they can't change mailbox limit!
IT WORKS - I TESTED IT!

What more can you ask??

I hope I did not miss something here TEST TEST AND TEST before going live!!

WEBmail works with this but test the application there are some issues with the return addess.

I hear through the grapevine WH is looking into this issue. HEY WH how about a simple GUI to automate the above, after all it seems to work!

adpwl1
05-04-2004, 06:45 AM
For some reason, I just noticed my sample Virtusertable didn't make it up here. I redid my file to help me orginize the emails better. I hope this helps.




#This is a comment. Comments are good.

#A regular virtual user alias takes the following form:
#alias@domain.com anotheraddress@domain2.com

#A "global" alias looks like the following:
#@domain.com account@mail.com

#@default
@domain1.com user1
@domain1.com.whsites.net user1
@domain1.com.yourtempsite.com user1
@domain2.com user1
@domain3.com user1

#root
root@domain1.com root
root@domain1.com.whsites.net root
root@domain1.com.yourtempsite.com root
root@domain2.com user2
root@domain3.com root

#postmaster
postmaster@domain1.com postmaster
postmaster@domain1.com.whsites.net postmaster
postmaster@domain1.com.yourtempsite.com postmaster
postmaster@domain2.com user2
postmaster@domain3.com postmaster

#MAILER-DAEMON
MAILER-DAEMON@domain1.com MAILER-DAEMON
MAILER-DAEMON@domain1.com.whsites.net MAILER-DAEMON
MAILER-DAEMON@domain1.com.yourtempsite.com MAILER-DAEMON
MAILER-DAEMON@domain2.com user2
MAILER-DAEMON@domain3.com MAILER-DAEMON

#domain1.com
info@domain1.com info_eit
user1@domain1.com user1
firstname1.lastname@domain1.com user1


#domain2.com
info@domain2.com user2
user2@domain2.com user2

#domain3.com
user3@domain3.com user3

FZ
05-04-2004, 11:32 AM
Thanks for sharing, this thread is truly useful.

warren
06-09-2004, 10:49 PM
Hey Guys &amp; Gals

I just discovered a problem! We have been tossing around hacks to the vertusertable file detailed in last post on this page (the "CK1 hack") here

http://forums.westhost.com/phpBB2/viewtopic.php?t=1407&amp;start=30

Yes it works BUT it seems that often I can't send attachments.

SMTP server said 552 5.2.3 Message size exceeds fixed message size (20480)

Sometime it works and sometimes it don't??

Go figure

FZ
06-10-2004, 11:37 AM
Where are you getting that error message? In your e-mail program? In a bounce-back mail from someone you tried sending a large e-mail to?

I doubt that this hack has anything to do with quotas. What comes to mind is that either the person you are trying to send mail to has a quota imposed on their mail server, or you have one set in your own Site Manager (either an e-mail quota [Site Manager > E-mail/FTP Management] or an outgoing mail size restriction [Site Manager > E-mail/FTP Management > Settings > Maximum content length]). The other thing that comes to mind is the fact that WestHost no longer allows truly unlimited (e-mail) quotas, but instead limits them to 20MB - maybe that setting is in effect for outgoing mail, too. If you have a 20MB quota set on that particular e-mail/FTP account, there is a way to bypass the 20MB restriction and restore unlimited quotas: http://forums.westhost.com/phpBB2/viewtopic.php?p=9972#9972

warren
06-10-2004, 07:21 PM
Thanks for the help. I'm getting the message from the email client (Outlook Express). I doubt is vaild since I'm only sending a test (.doc or .xls) of about 100Kb. I'm sending to other test domains I have. One is within WH and the other is off WH both fail most of the time (mailbox full) and I KNOW both mailboxes are empty!!

Any help is much appreciated 'cause I really dont have a clue.

FURTHER TESTING RESULTS:

After furtherr testing I find this

the problem occurrs when using outlook express on a MAC but not on a PC

Something did change when I mucked around with the virtusertable file. My other WH accounts (which I've had for many years and did not edit the virtusertable file) can send attachments regardless of whatever email client I use on any platform.

FZ
06-11-2004, 05:24 PM
Hmm, I have no clue (and can't say without "inspecting" your account's files myself). I guess the only thing you can do is contact support and ask them what's up. Apart from that, make sure your two e-mail programs (OE PC vs. OE Mac) use exactly the same settings.

Let us know how it goes.

wildjokerdesign
09-12-2004, 09:51 PM
Bump

El Morro
09-10-2005, 08:02 PM
BTT and bump

rolling
10-29-2006, 02:17 AM
All the links in this thread are broken, so for those trying to increase the 20MB limit on their emails, the file to edit is /etc/features. However, this file is the key to ftp access and mail on your account, so great care should be taken when editing it. Change the mail=20 to whatever you desire (mail=0 is unlimited)

Note that Westhost will take steps to limit any mailbox to 75MB (and will delete archived mail after 2 months) - See their note on large mailboxes (http://helpdocs.westserver.net/large-mailbox.html)

taylorutah
11-16-2006, 06:54 PM
This is what I need!

So do I create the accounts in the administration (GUI) before manually editing the virtusertable file?

I have the following domains:
inyourgrill.com
executiveangler.com
napcopumps.com

I need to have info@ for each of these. SO do I creat info in the email.ftp manager and then edit the file?

I have tried the method mentioned above and didn't get it to work, luckily I did back up the virtusertable file :)

What is the easy method? Thanks in advance!

wildjokerdesign
11-17-2006, 07:05 AM
You need to create accounts (not aliases) for where you want to send the info mail to for each domain via the Site Manager. You may already have email accounts you want to use. Once that is done the info alias is created manually by the edits you have read about that point them to the accounts for each domain.

bossbn
10-03-2007, 02:00 PM
Interesting thread, but requires treading on paths I fear.
All this just to get name@mydomain.com is pretty complicated compared to other hosts.
Could someone review this for Fall 2007, and report if there are solutions that don't require mod of vertusertable and impairment of sitemanager?
The host I'm leaving lets me define anyusername@eachdomain.com, and I have used that to separate activities. :confused:

rolling
10-04-2007, 08:24 AM
You only need to edit virtusertable if you want example@mydomain.com to be delivered to a different mailbox than example@myotherdomain.com

By default, Westhost's Site Manager delivers mail for example@anydomain.com to the mailbox for user "example". It does not matter if you define the email user or the domain first; virtusertable is updated when you add either.

HTH

bossbn
10-05-2007, 08:11 AM
I can download vertusertable via FTP, edit, upload.
Do I still need SSH/shell access or MAKE command, i.e., anything other than FTP, edit, and sitemanager to customize email addresses? I know PC stuff much better than mainframe stuff.

wildjokerdesign
10-05-2007, 04:32 PM
Yes once you have made your edits you must log in via SSH and issue the following command:

makemap hash /etc/mail/virtusertable </etc/mail/virtusertable
You can read Richard's full details of how to do this on his blog. EMail - Setting up Multiple Domains (http://www.rollingr.net/wordpress/2007/01/11/email-setting-up-multiple-domains/)

bossbn
10-06-2007, 08:11 AM
Thanks. I read and posted this comment there:
"It seems the major difference is that email setup has
user = recipient.domain2.com instead of recipient+domain2.com.
True?"

In other words, after setup, folks corresponding with modified email address won't see a difference? If true, golden.

OBSERVATION:
At top of /fm/FileManager/FileManager.cgi
is "Execute a Command" which goes to
Enter Shell Command:

Can this replace putty for
"Activate changes
* Login to your server using SSH
* Generate a new copy of virtusertable.db by entering the command makemap hash /etc/mail/virtusertable </etc/mail/virtusertable"

wildjokerdesign
10-06-2007, 11:32 AM
File Manager's Execute Command may work for you. I have never used it that much so I don't known if it has some limitations or not. You are correct that it is for running many of the same commands that you would in SSH.

bossbn
10-07-2007, 01:22 PM
I did as directed except did not putty but in Filemgr
"Execute a command" I ran
makemap hash /etc/mail/virtusertable /etc/mail/virtusertable
New email Works.

wildjokerdesign
10-07-2007, 03:05 PM
Thanks for letting us know bossbn. I had a feeling it would work but I seem to remember that at one time not all commands worked in FileManager. :)

warren
10-26-2007, 08:50 AM
As you can see from my prior posts on this topic, I have been up and down the ladder on this issue. I have pulled all my email hosting for multiple domains to other providers who specialize in email hosting. Its just not worth it to do all that tweaking of your server. Plus the nightmare of spam issue. Edit your dns (zone) records and send the email elsewhere. It then easy to administer. Keep in mind that you can't do this from within WH due to security limitations of MANGER so right for your internic record send your requests to a DNS service such as dnsmadeeasy.com or some where and split the http/ftp to WH and the mail to whoever you choose.

Keep in mind this issue is by choice for WH Yes probably the virtual server archicture makes it complicated but they do not wish to provide this funcationality. They could provide seperate services for email hosting but so far have chose not to.

taylorutah
01-18-2008, 05:38 PM
warren,
where do you host your mail?

godrockzzz
01-20-2008, 09:59 PM
warren,
where do you host your mail?

I'm curious about that as well. I may switch over to gmail for webmasters