Turnpike Man wrote:
This, as David describes is a piece of cake with most any mailer, via aliases. Make the MTA (Postfix, Sendmail, Qmail, choose your own torture) accept mail for those domains, and then any user on the system (and any alias you setup for that user) gets mail at each of the addresses in each of the domains.Email... kinda depends. Do you need completely separate instances as if running 2 completely different email servers? OR, like I do at home, I have all 3 domains I host separate websites at home all come into one email server, postfix. This means [EMAIL PROTECTED], [EMAIL PROTECTED] and [EMAIL PROTECTED] all go into username's inbox.
I don't have a separateThis actually isn't much harder. Both Sendmail and Postfix do it rather easily via Virtual aliases, and both have very good documentation on how to set it up. In principle, you setup a file something like this:
inbox for username in each domain per say. If this is what you want, I can
help, if you want it as if they were completely separate servers, well, I'd be
interested to see how postfix gets setup that way, though I don't really need
it myself.
[EMAIL PROTECTED] asjoyner
[EMAIL PROTECTED] user2
@example2.com user2
Now the only addresses in those domains are user1 in the first domain, and user2 in the second domain. But in the second domain, any address is valid, and all mail to "other" addresses (ala [EMAIL PROTECTED]) goes to user2's mailbox.
Check out the documentation for your mailer, for the specifics.
Don't forget the DNS setups - each domain needs to have an MX record which points to the mail host for that domain. To make the mailers active for the domain, check out /etc/mail/local-host-names for Sendmail, or $mydestinations in main.cf for Postfix. Don't forget to reload each daemon after you change the config file, kill -HUP `sendmailpid` or postfix reload.
Enjoy! Aaron S. Joyner -- TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug TriLUG Organizational FAQ : http://trilug.org/faq/ TriLUG Member Services FAQ : http://members.trilug.org/services_faq/ TriLUG PGP Keyring : http://trilug.org/~chrish/trilug.asc
