ispCP - Board - Support - VHCS fork

Full Version: Disable mail for a domain
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi

How do I disable mail for a domain?

Some of our customers host mail other places, so they do not use mail in ispcp. I have the set mails to -1 on there account, but Postfix still get the domain as local domain. So others that uses the server as smtp can't send mails to them. Is this a bug or is there a way to disable mail for an account?

/ryan
nano /etc/postfix/ispcp/domains
comment domain
cp /etc/postfix/ispcp/domains /etc/ispcp/postfix/working
cd /etc/postfix/ispcp
postmap domains

Enjoy!

p.s. I want to do this by mouse. Maybe this feature will be realesed in 1.0 or 1.1 ?
This worked great!

I just wanted to add that if I have a catchall mail configured this wont work and mail will be sent to the catchall email...

My fix for this was to delete the catchall, so far, everything works right Smile
This feature should REALLY be shipped with ispCP. Not everybody will want email included in their domains so the ability to turn off email is sorely needed.
Reference URL's