Reply to topic
Email addresses for subdomains
chrisnewcomb


Joined: 11 Dec 2007
Posts: 3
Reply with quote
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


Joined: 24 Oct 2006
Posts: 93
Location: Bear, DE
Reply with quote
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


Joined: 11 Dec 2007
Posts: 3
Reply with quote
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


Joined: 24 Oct 2006
Posts: 93
Location: Bear, DE
Reply with quote
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

Confused
chrisnewcomb


Joined: 11 Dec 2007
Posts: 3
Reply with quote
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


Joined: 21 Dec 2006
Posts: 1
Reply with quote
Good deal Wink

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! Very Happy
Email addresses for subdomains
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic