I need to have some sites that are strictly website. How do I turn off email. Any email that is sent from the server to that domain fails because it tries to go local. zeroing the email numbers doesn’t remove the domain.
You can do this as root on the server with this command
/var/vpopmail/bin/vdeldomain domain.com
Many thanks
I should be able to enable or disable services on a site by site basis through the control panel. I have several other CPs and they all make it easy.
Would:
/var/vpopmail/bin/vadddomain domain.com
add the domain again?
Sometimes a customer starts only with web and transfers the emailservices later. Still they usually need their website to be able to send emails to their domain (like contact forms) which only works if you remove the domain from emailservices first (otherwise always trying to deliver to local).
Thanks
-tsl-
vdeldomain will also stop the ability to add pointer or sub-domains.
When using vadddomain, you need a second parameter, which becomes the password of the postmaster@ account that is created;
/var/vpopmail/bin/vadddomain domain.com newpassword
Thanks EverythingWeb, that was good info
-tsl-
There’s a little more involved than that.
When adding a domain with vadddomain, the default mail store is in /var/vpopmail/domains/domain.com
On an InterWorx box, the default mail store is in /home/domainco/var/domain.com/mail. We actually symlink /var/vpopmail/domains/domain.com to /home/domainco/var/domain.com/mail when you create a new SiteWorx account.
If, at any point, you vdeldomain and then vadddomain a domain, you’ll need to reset up that symlink manually yourself. So, the steps would be:
1.) Check that /home/domainco/var/domain.com/mail is empty or move it out of the way temporarily (e.g., /home/domainco/var/domain.com/mail.bak). Take note of any existing email accounts in that directory.
2.) vadddomain the domain back in, just like Everything web said
3.) Move /var/vpopmail/domains/domain.com to /home/domainco/var/domain.com/mail
4.) Point (via symlink) /var/vpopmail/domains/domain.com to /home/domainco/var/domain.com/mail
5.) Recreate any mailboxes that were in the original /home/domainco/var/domain.com/mail.bak directory
6.) Copy over the contents from /home/domainco/var/domain.com/mail.bak into /home/domainco/var/domain.com/mail
Thanks for the steps Socheat, they will surely be handy to have at times
-tsl-
vdeldomain will also stop the ability to add pointer or sub-domains.
Actually as of InterWorx version 3.0.2, this shouldn’t be true any more
Paul
Ah lovely - I just remember it being ‘part’ of the effect in earlier versions
Cheers Paul