ispCP - Board - Support
Can I turn off mail for a domain? - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: Can I turn off mail for a domain? (/thread-2789.html)



Can I turn off mail for a domain? - Erik - 03-20-2008 01:20 AM

Hello,

I'm looking for a way to turn of mail for certain domains so mail can be handled by another server.
A non-solution is just changing the DNS records (mx and such) because the server itself will still deliver mail to the local postfix server Sad

Does anyone have a suggestion?


RE: Can I turn off mail for a domain? - rbtux - 03-20-2008 01:27 AM

remove the domain and the accounts from:
/etc/postfix/ispcp/{aliases,domains,mailboxes}
/etc/ispcp/postfix/working/{aliases,domains,mailboxes}

and restart postfix...


RE: Can I turn off mail for a domain? - Erik - 03-20-2008 01:30 AM

That is what we currently do. You need to run "postmap domains" too to update the database. But every change in the control panel will undo the changes made. I'm looking for a permanent fix like an option to handle or not handle mail for a domain in the control panel itself. It's a requirement that most users will need so I hoped I just missed some option somewhere.


RE: Can I turn off mail for a domain? - Cube - 03-20-2008 01:32 AM

I am not sure, but I think an entry in postfix's transport-map would be enough. It's not in the panel, but quite easy to do.


RE: Can I turn off mail for a domain? - rbtux - 03-20-2008 01:33 AM

then you havn't changed the files under /etc/ispcp/postfix/working/{aliases,domains,mailboxes}
they make the change permanent

and no there is no option in the panel...


RE: Can I turn off mail for a domain? - Erik - 03-20-2008 01:45 AM

rbtux Wrote:then you havn't changed the files under /etc/ispcp/postfix/working/{aliases,domains,mailboxes}
they make the change permanent

and no there is no option in the panel...

rbtux, thanks. I did not know there were such files for the mail config too. This will at least provide a permanent fix although it's still a feature request that should be made (in my opinion).


RE: Can I turn off mail for a domain? - BioALIEN - 03-20-2008 05:00 AM

Just to outline, I believe the feature request made here is 100% valid. Especially with hosted app services such as Google and Live, a domain user (yes at the user level) may want their mail handled elsewhere.