![]() |
| Email addresses for subdomains |
|
chrisnewcomb
|
Hi,
I'm running Linux VPS and using qmail to do email list distribution. I have a couple of subdomains off of my main domain, and would like to allow email addresses in the subdomains themselves, e.g.: email1@sub1.domain.com email1@sub2.domain.com email2@sub2.domain.com ... What do I need to do to set this up properly? Thanks, Chris |
||||||||||||
|
|
|||||||||||||
|
nathacof
Forum Admin
|
You have to configure the domains as an actual domain in plesk, and not a subdomain:
http://forum.swsoft.com/showthread.php?t=43672&highlight=subdomain+email ^Check it out. |
||||||||||||
|
|
|||||||||||||
|
chrisnewcomb
|
Thanks for the link! As it turns out, I ended up abandoning plesk altogether for this task and doing it manually:
- Added a DNS "A" record for the subdomain pointing to the main IP address - In /var/qmail/control/rcpthosts, added a ".domain.com" entry to all all subdomains to receive email - In /var/qmail/control/virtualdomains, added entries for each of the specific subdomains - In /var/qmail/users/assign, added entries for each of the subdomains pointing to the "mailnames" directory for the main domain - In /var/qmail/users/domain.com/.qmail-default, added a qmail-command ("|") entry to call my subdomain email handling script This worked like a charm. I can now get emails for each of my subdomains, and the RECIPIENT environment variable actually names the correct subdomain. Cheers, Chris |
||||||||||||
|
|
|||||||||||||
|
nathacof
Forum Admin
|
Only problem is that when it come times to upgrade Plesk will probably overwrite your configuration by rebuilding Qmails control files.
http://kb.swsoft.com/en/944 |
||||||||||||
|
|
|||||||||||||
|
chrisnewcomb
|
I expected that--that's why I copied all of the modified qmail config files to my home directory, so I can restore them if they get clobbered.
Thanks for the heads-up, though! |
||||||||||||
|
|
|||||||||||||
|
ncoffield
|
Good deal
Just remember to run a diff on the new config and any updated control files to ensure that you are compatible with the newest configuration files. If Plesk adds functionality to Qmail it will likely add additional directives to the control files, but with your backups you can diff the files and add anything you've configured specially to the new files generated by Plesk. Good luck! |
||||||||||||
|
|
|||||||||||||
| Email addresses for subdomains |
|
||
|


