email account

Dear All

Mine is a shared hosted domain name say mydomain.com service.. I would like to create email account info@mydomain.com through a program.. I am running on redhat linux 8. I have been asking a lot... Please somebody help me in this issue.. or recommenfd me any book which explains the email creation in detail....

"shared hosted domain name".... What is that? But maybe I can shed some light here. Suppose we send mail to

collins@gnu.org

what would happen? First we need to find the mail exchanger for gnu.org:

% nslookup -q=mx gnu.org
Server:  VTOT.proxy.aol.com
Address:  205.188.146.146

Non-authoritative answer:
gnu.org MX preference = 20, mail exchanger = mx20.gnu.org
gnu.org MX preference = 30, mail exchanger = mx30.gnu.org
gnu.org MX preference = 10, mail exchanger = mx10.gnu.org

gnu.org nameserver = ns4.gnu.org
gnu.org nameserver = ns1.gnu.org
gnu.org nameserver = ns2.gnu.org
gnu.org nameserver = ns3.gnu.org
mx10.gnu.org    internet address = 199.232.76.166
mx20.gnu.org    internet address = 199.232.41.8
mx30.gnu.org    internet address = 199.232.41.6
ns4.gnu.org     internet address = 193.201.200.170

% 

We see that gnu.org has three mail exchangers. We would try mx10, then mx20, then finally mx30.

Let's say that we connect to mx10 and send mail to collins@gnu.org, what would happen? That depends on how mx10 is configured. It could send all mail to another host, perhaps called "mailhost.gnu.org". This would be more or less typical. A second option would be a large aliases file sending each addressee to various hosts. Each of the 3 mail exchangers would new the same aliases file in this case.

So setting a new mail account might mean adding an account to mailhost. Or it might mean adding entries to aliases files.

And if there is only one mail exchanger, it might be just adding an unix account there. So collins would log in to the mail exchanger to get mail. Or perhaps collins would use a .forward file to send the mail elsewhere.

At work, our mail exchangers send all mail to a Microsoft Exchange server. So we need an Exchange Administrator to add mail accounts for us.

So there is not one answer for everyone. It depends how things are set up. The starting point is to use DNS to find the mail exchangers and take it from there.

Perderabo,
he was reffering that mydomain.com has bean hosted in a "shared hosting" service where more than one domain will be parked, he was asking " how to create a email id in linux box like cpanel" ist so collins
thanks
muthu

Hai

Thanks 4 ur response...

But i actually meen how to create an email account for subhost... I tried creating a user account... But the adduser (or) useradd command is not working even when i entered with the root login of the subhost... If i create a user account with root login of host, then the mail account is created in the host and not in subhost... But i want it for the subhost...How can I

:confused: