Primer: files who’s names begin with a period are sort of invisible unless you do an ls -a
in the shell, or turn off the hiding-dot-files option in your FTP or SCP client.
When email comes in for anybody@yourdomain.com
, qmail checks your home directory for any “dot-qmail” files like the one above that match the domain yourdomain.com
. If you, for instance, also had a file in your home directory called .qmail-yourdomain:com-bob
that just contained the line “bob@yahoo.com
“, then any mail to bob@yourdomain.com
(see the name of the .qmail file?) would be forwarded to the address mentioned in the .qmail file (bob@yahoo.com
in this case). But if you sent email to jim@yourdomain.com
, qmail would look for a file named .qmail-yourdomain:com-jim
and, failing to find this, would look for a default file (such as the .qmail-yourdomain:com-default
we place in there for you for each of your domains when setting them up) and follow the directions therein which, in the case of our default files, it says to put it in your mailbox (./Maildir/
) for later retrieval via POP. This system allows for an unlimited number of forwarding email aliases to be created for your sites.
You can even set up simple mailing lists by putting each recipient’s email address on a separate line of the .qmail file, so if you had a file such as .qmail-yourdomain:com-mylist
that contained:
bob@yahoo.com
jim@hotmail.com
buzz@lightyear.com
…then any email sent to mylist@yourdomain.com
would be delivered to all three addresses listed in the .qmail file.
0 Comment:
Post a Comment