The .domains file
Tutorial
Maintaining
This tutorial is for all of our customers who have run into the ".domains
nightmare" in the past.
The following is the basic format for the .domains file:
RECEVING_ADDRESS [spc] FORWARDING_ADDRESS
And now a working example:
info@infopg.com # ron@infopg.com ron john@infopg.com somewhere@somewhere.com me@infopg.com you@there.com default@infopg.com default infopg.com default |
So in this example any mail sent to info@infopg.com will be forwarded to MReply.
The "#" tells the mail program to forward any mail to MReply.
Mail sent to ron@infopg.com will be forwarded to local user "ron".
The means that ron has a POP account set up so we want his mail to go to that
account.
Mail going to john@infopg.com will be forwarded to somewhere@somewhere.com.
The same goes for me@infopg.com. Since users "john" and "me"
don't have local POP accounts then we must forward their mail to a real e-mail address.
Now, these last 2 lines are important. "default" is the default
username that you gave when you set the account up. That is the user that has ownership of
the directory. Any mail going to default@infopg.com is going to be sent to default's
local POP account. The last line is the "catch-all". This means that any
unrecognized mail will automatically be sent to user "default". So if you
were to send mail to president@infopg.com it would automatically be forwarded to "default"
because there is no entry in the .domains file for president.
You can have as many forwardings as you like but keep in mind that if we forward john@cavecreek.com
to somewhere@somewhere.com, the somewhere account must be a valid account at
somewhere.com
Suppose you want to have mail sent to foo@bar.com to 2 places. This is how you
would do it:
foo@bar.com tom@netcom.net,tim@earthlink.com |
So mail sent to foo@bar.com will be forwarded to both tom@netcom.net AND tim@netcom.com.
A few things that are VERY IMPORTANT: