# Creating emails

**URL:** <https://community.unix.com/t/creating-emails/184174>\
**Category:** UNIX for Dummies Questions & Answers\
**Created:** [February 3, 2008, 1:13am UTC](https://community.unix.com/t/creating-emails/184174 "2008-02-03T01:13:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ferret495](https://community.unix.com/letter_avatar/ferret495/32/5_5575768a8748004e209b776fc1b2916d.png) [@ferret495](https://community.unix.com/u/ferret495)\
**Post date:** [February 3, 2008, 1:13am UTC](https://community.unix.com/t/creating-emails/184174/1 "2008-02-03T01:13:15Z")

</div>

Hi, I posted here 2 months ago, saying I wanted to learn UNIX for my work running a small ISP. I had the problem of practically no technical support for our system. Many courses later, I can just about do everything I need to do.  
The server is a FreeBSD i386. I can now create email accounts for customers using the adduser command. This creates a user with the email address [customer@myisp.com](mailto:customer@myisp.com). So this is great, but we also host some domain names. If I could now figure out how to create a [customer@hosteddomain.com](mailto:customer@hosteddomain.com) email account, I'll be all set.

I'm a bit clueless of how this works. I first thought it was based on aliases, but I can't find anything on the mail server that supports this. (the /etc/aliases or etc/mail/aliases file doesn't have anything like this in it.)

So am I on the right path? Or can adduser create these types of accounts as well??

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![ferret495](https://community.unix.com/letter_avatar/ferret495/32/5_5575768a8748004e209b776fc1b2916d.png) [@ferret495](https://community.unix.com/u/ferret495)\
**Post date:** [February 3, 2008, 1:29am UTC](https://community.unix.com/t/creating-emails/184174/2 "2008-02-03T01:29:30Z")

</div>

also, we're using sendmail.

---

<div class="post-metadata">

**Author:** ![ynilesh](https://community.unix.com/user_avatar/community.unix.com/ynilesh/32/699_2.png) [@ynilesh](https://community.unix.com/u/ynilesh)\
**Post date:** [February 4, 2008, 12:48am UTC](https://community.unix.com/t/creating-emails/184174/3 "2008-02-04T00:48:33Z")

</div>

In case of sendmail try using virtusertable and relaydomain. Dont forget to add entry of your second domain in DNS.

I would suggest if you can switch to qmail. it would be better as management of more than one domain is easy in qmail. It provides GUI to handle everything including handling your user, there accounts, you domain etc.

Thanks,  
Nilesh

---

<div class="post-metadata">

**Author:** ![ferret495](https://community.unix.com/letter_avatar/ferret495/32/5_5575768a8748004e209b776fc1b2916d.png) [@ferret495](https://community.unix.com/u/ferret495)\
**Post date:** [February 4, 2008, 2:14am UTC](https://community.unix.com/t/creating-emails/184174/4 "2008-02-04T02:14:57Z")

</div>

Hmm still can't find anything. Everything should be ready to add these accounts and mail forwards. I just need a simple explanation on how one might go about doing this.  
ex) create a mailbox for [user@secondarydomain.com](mailto:user@secondarydomain.com). Do I create a regular account first? After I do this how to I make sure any mail sent to the above will go to the new account I created?

---

<div class="post-metadata">

**Author:** ![ferret495](https://community.unix.com/letter_avatar/ferret495/32/5_5575768a8748004e209b776fc1b2916d.png) [@ferret495](https://community.unix.com/u/ferret495)\
**Post date:** [February 5, 2008, 12:13am UTC](https://community.unix.com/t/creating-emails/184174/5 "2008-02-05T00:13:04Z")

</div>

Problem solved. It was on a relay server. Everything I was looking for in etc/mail/virtusertable !

Thanks for the advice!
