June 2013
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930

Categories

June 2013
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930

Zimbra commands

How to find the host name host `hostname` Domain level blocking of users

 

ZCS8: zmlocalconfig -e postfix_smtpd_sender_restrictions=”hash:/opt/zimbra/postfix/conf/reject”

ZCS8: Add hash:/opt/zimbra/postfix/conf/reject as the first line of /opt/zimbra/conf/zmconfigd/smtpd_sender_restrictions.cf

user@domain.com REJECT domainX.com REJECT

Restart zimbra postmap /opt/zimbra/postfix/conf/reject zmmtactl stop && zmmtactl start

Enable PHP on Apache

After Yum install on php on centos or fedora

AddModule mod_php.c LoadModule php_module modules/mod_php.so LoadModule php5_module modules/libphp5.so AddType application/x-httpd-php .php

And from PHP pages won’t load:

AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps

Apache mod_rewrite security rules for Web server harding

# Hardened Apache Mod_Rewrite Security Rule # Ref: http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewritecond # NC = ‘nocase|NC’ (no case-sensitive) # OR = ‘ornext|OR’ (or next condition) # L = last rule RewriteEngine on

# Allow only GET and POST verbs # ‘Coz most vul scanners use HEAD for hunting buggy files existence RewriteCond %{REQUEST_METHOD} !^(GET|POST)$ [NC,OR] # Ban Non-GUI […]