How-to Install Spamassassin and Postgray on Ubuntnu 12.04 Zpanel 10.10

Here is a script to install Spamassassin and Postgray on Ubuntnu 12.04 Zpanel 10.10

#!/bin/bash

#####################################################################
# #
# Version 1.1 #
# #

How-To Copy all in- and outgoing email of a certain domein with Postfix and Z-Panel

This instructions tells you how to make a copy of in- and outgoing emails from a certain domain server running Postfix and Z-Panel.

Case

There are multiple domains on a (Z-Panel)server running multiple websites and email from different customer. One customer wants a copy of in- and outgoing email for 3 domains sent to a special email address.

Repair corruct MYSQL tables

Did you ever get the message: followed with a body like this:

DATABASE-NAME.cache_menu
warning  : 1 client is using or hasn't closed the table properly
DATABASE-NAME.captcha_sessions
warning  : 1 client is using or hasn't closed the table properly

 Improperly closed tables are also reported if clients are accessing

Set Linux file permission for Dupal website

chown -R USER:www-data .
find . -type d -exec chmod u=rwx,g=rx,o= '{}' \;
find . -type f -exec chmod u=rw,g=r,o= '{}' \;

* change USER to your linux username

Disable Ubuntu’s Annoying Global Menu Bar

Ubuntu's new Unity interface has some cool features, but if it's global menu bar just gets on your nerves, here's how to turn it off.