August 22nd, 2011 by gia

Download following items :

  • re2c (yum install re2c)
  • SAPRFC, download here.
  • SAPCAR, download from SAP Service Support Portal  (Software Download > Support Packages and Patches > Additional Components > SAPCAR > SAPCAR 7.10 > Windows Server on x64 64bit). Download for Windows 64bit, this tool for extract SAR file.
  • Non-Unicode SAP RFCSDK 6.20 or 6.40, download from SAP Service Support Portal  (Software Download > Support Packages and Patches > Additional Components > SAP RFC SDK > SAP RFC SDK 6.40 > Linux on x86_64 64bit ). Extract using SAPCAR in Windows 64bit. Copy rfcsdk folder to Linux server.
  • librfc, download from SAP Service Support Portal  (Software Download > Support Packages and Patches > Additional Components > SAP Kernel > SAP Kernet 64-BIT > SAP KERNEL 6.40 64-BIT > Linux on x86_64 64bit > #Database independent). Extract using SAPCAR in Windows 64bit. Copy librfccm.so file to Linux Server.

Read the rest of this entry »

Tags: ,
Posted in PHP, Programming, SAP | No Comments »
July 23rd, 2011 by gia
[gia@mail ~]$ su -
[root@mail ~]# su zimbra
[zimbra@mail root]$ zmcontrol stop
Host mail.rgiapratama.net
Stopping stats...Done.
Stopping mta...Done.
Stopping spell...Done.
Stopping snmp...Done.
Stopping cbpolicyd...Done.
Stopping archiving...Done.
Stopping antivirus...Done.
Stopping antispam...Done.
Stopping imapproxy...Done.
Stopping memcached...Done.
Stopping mailbox...Done.
Stopping logger...Done.
Stopping zmconfigd...Done.
Stopping ldap...Done.
[zimbra@mail root]$ zmcontrol stop
[zimbra@mail root]$ exit
[root@mail ~]# ps -aux | grep zimbra  <----- make sure zimbra stopped
[root@mail ~]# cp -R opt/zimbra/ /san-disk/backzimbra/
[root@mail ~]# du /san-disk/backzimbra/ -s
11477660    /san-disk/backzimbra/
[root@mail ~]# du /san-disk/backzimbra/ -s
11466448    /opt/zimbra/
[root@mail ~]# cd /home/gia/
[root@mail gia]# tar -zxf zcs-7.1.1_GA_3196.RHEL5_64.20110527011124.tgz
[root@mail gia]# cd zcs-7.1.1_GA_3196.RHEL5_64.20110527011124
[root@mail zcs-7.1.1_GA_3196.RHEL5_64.20110527011124]# ./install.sh --platform-override

Operations logged to /tmp/install.log.31003
Checking for existing installation...
zimbra-ldap...FOUND zimbra-ldap-7.1.0_GA_3140
zimbra-logger...FOUND zimbra-logger-7.1.0_GA_3140
zimbra-mta...FOUND zimbra-mta-7.1.0_GA_3140
zimbra-snmp...FOUND zimbra-snmp-7.1.0_GA_3140
zimbra-store...FOUND zimbra-store-7.1.0_GA_3140
zimbra-apache...FOUND zimbra-apache-7.1.0_GA_3140
zimbra-spell...FOUND zimbra-spell-7.1.0_GA_3140
zimbra-convertd...NOT FOUND
zimbra-memcached...FOUND zimbra-memcached-7.1.0_GA_3140
zimbra-proxy...FOUND zimbra-proxy-7.1.0_GA_3140
zimbra-archiving...NOT FOUND
zimbra-cluster...NOT FOUND
zimbra-core...FOUND zimbra-core-7.1.0_GA_3140
ZCS upgrade from 7.1.0 to 7.1.1 will be performed.

Saving existing configuration file to /opt/zimbra/.saveconfig

PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE.
ZIMBRA, INC. ("ZIMBRA") WILL ONLY LICENSE THIS SOFTWARE TO YOU IF YOU
FIRST ACCEPT THE TERMS OF THIS AGREEMENT. BY DOWNLOADING OR INSTALLING
THE SOFTWARE, OR USING THE PRODUCT, YOU ARE CONSENTING TO BE BOUND BY
THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS
AGREEMENT, THEN DO NOT DOWNLOAD, INSTALL OR USE THE PRODUCT.

License Terms for the Zimbra Collaboration Suite:

http://www.zimbra.com/license/zimbra_public_eula_2.1.html

Do you agree with the terms of the software license agreement? [N] Y

Checking for prerequisites...
FOUND: NPTL
FOUND: sudo-1.7.2p1-10
FOUND: libidn-0.6.5-1.1
libidn-0.6.5-1.1
FOUND: gmp-4.1.4-10
gmp-4.1.4-10
FOUND: /usr/lib64/libstdc++.so.6
Checking for suggested prerequisites...
FOUND: perl-5.8.8
FOUND: sysstat
FOUND: sqlite
Prerequisite check complete.
Checking current number of databases...

Do you want to verify message store database integrity? [Y] Y
Verifying integrity of message store databases.  This may take a while.
Starting mysqld...done.
mysqld is alive
Database errors found.
/opt/zimbra/mysql/bin/mysqlcheck --defaults-file=/opt/zimbra/conf/my.cnf -S /opt/zimbra/db/mysql.sock -A -C -s -u root --password=_ds9Lf08JRfQX6cnxNX72R5._ --auto-repair
mysql.general_log
Error    : You can't use locks with log tables.
mysql.slow_log
Error    : You can't use locks with log tables.
mysqld is alive
Stopping mysqld... done.

Checking for installable packages

Found zimbra-core
Found zimbra-ldap
Found zimbra-logger
Found zimbra-mta
Found zimbra-snmp
Found zimbra-store
Found zimbra-apache
Found zimbra-spell
Found zimbra-memcached
Found zimbra-proxy

The Zimbra Collaboration Suite appears already to be installed.
It can be upgraded with no effect on existing accounts,
or the current installation can be completely removed prior
to installation for a clean install.

Do you wish to upgrade? [Y] Y

Select the packages to install
Upgrading zimbra-core
Upgrading zimbra-ldap
Upgrading zimbra-logger
Upgrading zimbra-mta
Upgrading zimbra-snmp
Upgrading zimbra-store
Upgrading zimbra-apache
Upgrading zimbra-spell
Upgrading zimbra-memcached
Upgrading zimbra-proxy
Checking required space for zimbra-core
checking space for zimbra-store

Installing:
zimbra-core
zimbra-ldap
zimbra-logger
zimbra-mta
zimbra-snmp
zimbra-store
zimbra-apache
zimbra-spell
zimbra-memcached
zimbra-proxy

You appear to be installing packages on a platform different
than the platform for which they were built.

This platform is CentOS5_64
Packages found: RHEL5_64
This may or may not work.

Using packages for a platform in which they were not designed for
may result in an installation that is NOT usable. Your support
options may be limited if you choose to continue.

Install anyway? [N] Y

The system will be modified.  Continue? [N] Y

Shutting down zimbra mail

Backing up the ldap database...done.

Removing existing packages

zimbra-ldap...done
zimbra-logger...done
zimbra-mta...done
zimbra-snmp...done
zimbra-store...done
zimbra-spell...done
zimbra-memcached...done
zimbra-proxy...done
zimbra-apache...done
zimbra-core...done

Removing deployed webapp directories
Installing packages

zimbra-core......zimbra-core-7.1.1_GA_3196.RHEL5_64-20110527011124.x86_64.rpm...done
zimbra-ldap......zimbra-ldap-7.1.1_GA_3196.RHEL5_64-20110527011124.x86_64.rpm...done
zimbra-logger......zimbra-logger-7.1.1_GA_3196.RHEL5_64-20110527011124.x86_64.rpm...done
zimbra-mta......zimbra-mta-7.1.1_GA_3196.RHEL5_64-20110527011124.x86_64.rpm...done
zimbra-snmp......zimbra-snmp-7.1.1_GA_3196.RHEL5_64-20110527011124.x86_64.rpm...done
zimbra-store......zimbra-store-7.1.1_GA_3196.RHEL5_64-20110527011124.x86_64.rpm...done
zimbra-apache......zimbra-apache-7.1.1_GA_3196.RHEL5_64-20110527011124.x86_64.rpm...done
zimbra-spell......zimbra-spell-7.1.1_GA_3196.RHEL5_64-20110527011124.x86_64.rpm...done
zimbra-memcached......zimbra-memcached-7.1.1_GA_3196.RHEL5_64-20110527011124.x86_64.rpm...done
zimbra-proxy......zimbra-proxy-7.1.1_GA_3196.RHEL5_64-20110527011124.x86_64.rpm...done

Setting defaults from saved config in /opt/zimbra/.saveconfig/config.save
HOSTNAME=mail.rgiapratama.net
LDAPHOST=mail.rgiapratama.net
LDAPPORT=389
SNMPTRAPHOST=mail.rgiapratama.net
SMTPSOURCE=admin@mail.rgiapratama.net
SMTPDEST=admin@mail.rgiapratama.net
SNMPNOTIFY=yes
SMTPNOTIFY=yes
LDAPROOTPW=G71OqrXVE
LDAPZIMBRAPW=G71OqrXVE
LDAPPOSTPW=G71OqrXVE
LDAPREPPW=G71OqrXVE
LDAPAMAVISPW=G71OqrXVE
LDAPNGINXPW=G71OqrXVE
Restoring existing configuration file from /opt/zimbra/.saveconfig/localconfig.xml...done
Operations logged to /tmp/zmsetup.07222011-205019.log
Upgrading from 7.1.0_GA_3140 to 7.1.1_GA_3196
Stopping zimbra services...done.
Verifying /opt/zimbra/conf/my.cnf
Starting mysql...done.
This appears to be 7.1.0_GA
Checking ldap status...not running.
Running zmldapapplyldif...done.
Checking ldap status...already running.
Stopping mysql...done.
Updating from 7.1.1_GA
Updating global config and COS's with attributes introduced after 7.1.0_GA...done.
Stopping ldap...done.
Upgrade complete.

Running bdb db_recover...done.
Running zmldapapplyldif...done.
Checking ldap status....already running.
Setting defaults...done.
Setting defaults from existing config...done.
Checking for port conflicts
Setting defaults from ldap...done.
Saving config in /opt/zimbra/config.11618...done.
Operations logged to /tmp/zmsetup.07222011-205019.log
Setting local config values...done.
Setting up CA...done.
Deploying CA to /opt/zimbra/conf/ca ...done.
Setting replication password...done.
Setting Postfix password...done.
Setting amavis password...done.
Setting nginx password...done.
Creating server entry for mail.rgiapratama.net...already exists.
Saving CA in ldap ...done.
Saving SSL Certificate in ldap ...done.
Setting service ports on mail.rgiapratama.net...done.
Adding mail.rgiapratama.net to zimbraMailHostPool in default COS...done.
Installing webclient skins...
sky...done.
bare...done.
lemongrass...done.
tree...done.
sand...done.
twilight...done.
steel...done.
bones...done.
waves...done.
lake...done.
carbon...done.
smoke...done.
hotrod...done.
beach...done.
oasis...done.
pebble...done.
lavender...done.
Finished installing webclient skins.
Setting Keyboard Shortcut Preferences...done.
Setting zimbraFeatureTasksEnabled=TRUE...done.
Setting zimbraFeatureBriefcasesEnabled=FALSE...done.
Setting MTA auth host...done.
Setting TimeZone Preference...done.
prov&gt; Initializing mta config...done.
Setting services on mail.rgiapratama.net...done.
Creating user spam.ljx1gsln@mail.rgiapratama.net...already exists.
Creating user ham.jbzvfdba6o@mail.rgiapratama.net...already exists.
Creating user virus-quarantine.9eima30q26@mail.rgiapratama.net...already exists.
Setting spam training and Anti-virus quarantine accounts...done.
Configuring SNMP...done.
Checking for default IM conference room...not present.
Initializing default IM conference room...done.
Setting up syslog.conf...done.

You have the option of notifying Zimbra of your installation.
This helps us to track the uptake of the Zimbra Collaboration Suite.
The only information that will be transmitted is:
The VERSION of zcs installed (7.1.1_GA_3196_CentOS5_64)
The ADMIN EMAIL ADDRESS created (admin@rgiapratama.net)

Notify Zimbra of your installation? [Yes] No
Notification skipped
Starting servers...done.
Checking for deprecated zimlets...done.
Checking for network zimlets in LDAP...done.
Removing network zimlets...
Finished removing network zimlets.
Installing common zimlets...
com_zimbra_bulkprovision...done.
com_zimbra_webex...done.
com_zimbra_email...done.
com_zimbra_social...done.
com_zimbra_cert_manager...done.
com_zimbra_phone...done.
com_zimbra_date...done.
com_zimbra_linkedin...done.
com_zimbra_url...done.
com_zimbra_attachmail...done.
com_zimbra_attachcontacts...done.
com_zimbra_dnd...done.
com_zimbra_srchhighlighter...done.
com_zimbra_adminversioncheck...done.
Finished installing common zimlets.
Getting list of all zimlets...done.
Updating non-standard zimlets...
com_zimbra_webex...done.
Finished updating non-standard zimlets.
Restarting mailboxd...done.
Setting up zimbra crontab...done.

Moving /tmp/zmsetup.07222011-205019.log to /opt/zimbra/log

Configuration complete - press return to exit

[root@mail zcs-7.1.1_GA_3196.RHEL5_64.20110527011124]# cd ..
[root@mail gia]# tar -zxf zcs-patch-7.1.1_GA_3213.tgz
[root@mail gia]# cd zcs-patch-7.1.1_GA_3213
[root@mail zcs-patch-7.1.1_GA_3213]# ./installPatch.sh
Current Version: 7.1.1_GA_3196
Found Patch for 7.1.1_GA called 7.1.1_P2
Deploying patch for 7.1.1_GA
Updating files for package zimbra-store
/opt/zimbra/jetty/webapps/zimbraAdmin/WEB-INF/classes/messages/ZaMsg.properties... copied.
/opt/zimbra/jetty/webapps/zimbraAdmin/js/Admin_all.js.zgz... copied.
/opt/zimbra/jetty-6.1.22.z6/webapps/zimbra/js/NewWindow_2_all.js.zgz... copied.
/opt/zimbra/jetty/common/lib/zimbracommon.jar... copied.
/opt/zimbra/jetty/webapps/service/WEB-INF/lib/zimbrastore.jar... copied.
/opt/zimbra/jetty/webapps/zimbra/WEB-INF/lib/zimbrastore.jar... copied.
/opt/zimbra/jetty/webapps/zimbraAdmin/WEB-INF/lib/zimbrastore.jar... copied.
/opt/zimbra/lib/jars/zimbrastore.jar... copied.
/opt/zimbra/jetty-6.1.22.z6/webapps/zimbra/js/Startup1_1_all.js.zgz... copied.
/opt/zimbra/jetty-6.1.22.z6/webapps/zimbra/js/Mail_all.js.zgz... copied.
/opt/zimbra/jetty/webapps/zimbraAdmin/js/zimbraAdmin/common/EmailAddr_FormItem.js... copied.
/opt/zimbra/jetty/webapps/zimbraAdmin/js/zimbraAdmin/domains/model/ZaDomain.js... copied.
/opt/zimbra/jetty/webapps/zimbraAdmin/js/Admin_all.js... copied.
/opt/zimbra/jetty/webapps/zimbraAdmin/js/zimbraAdmin/search/model/ZaSearch.js... copied.
/opt/zimbra/jetty/webapps/zimbraAdmin/js/zimbraAdmin/domains/controller/ZaDomainListController.js... copied.
/opt/zimbra/jetty-6.1.22.z6/webapps/zimbra/js/CalendarAppt_all.js.zgz... copied.
/opt/zimbra/jetty/webapps/zimbraAdmin/js/zimbraAdmin/common/ZaOverviewPanelController.js... copied.
/opt/zimbra/jetty-6.1.22.z6/webapps/zimbra/js/NewWindow_1_all.js.zgz... copied.
Updating files for package zimbra-core
/opt/zimbra/zimbramon/pylibs/state.py... copied.
/opt/zimbra/bin/zmconfigdctl... copied.
/opt/zimbra/lib/jars/jython-2.5.2.jar... copied.
/opt/zimbra/lib/jars/zimbracommon.jar... copied.
/opt/zimbra/libexec/zmfixperms... copied.
/opt/zimbra/lib/jars/jython-2.5.1.jar... deleted.

[root@mail zcs-patch-7.1.1_GA_3213]# reboot

Broadcast message from root (pts/0) (Fri Jul 22 20:59:33 2011):

The system is going down for reboot NOW!
[root@mail zcs-patch-7.1.1_GA_3213]#
June 23rd, 2011 by gia

OS : CentOS 5.6 64bit
ZCS : Release 7.1.0_GA_3140.RHEL5_64_20110329150833 CentOS5_64 FOSS edition.

[root@mail conf]# su zimbra
[zimbra@mail conf]$ vi /opt/zimbra/conf/postfix_recipient_restrictions.cf

Add line 6 (highlight line) to postfix_recipient_restrictions.cf file

%%contains VAR:zimbraServiceEnabled cbpolicyd, check_policy_service inet:127.0.0.1:10031%%
reject_non_fqdn_recipient
permit_sasl_authenticated
permit_mynetworks
reject_unauth_destination
check_client_access hash:/opt/zimbra/conf/allow_rbl
reject_unlisted_recipient
%%contains VAR:zimbraMtaRestriction reject_invalid_hostname%%
%%contains VAR:zimbraMtaRestriction reject_non_fqdn_hostname%%
%%contains VAR:zimbraMtaRestriction reject_non_fqdn_sender%%
%%contains VAR:zimbraMtaRestriction reject_unknown_client%%
%%contains VAR:zimbraMtaRestriction reject_unknown_hostname%%
%%contains VAR:zimbraMtaRestriction reject_unknown_sender_domain%%
%%explode reject_rbl_client VAR:zimbraMtaRestrictionRBLs%%
%%contains VAR:zimbraMtaRestriction check_policy_service unix:private/policy%%
permit

Read the rest of this entry »

Tags: , ,
Posted in Zimbra | No Comments »
June 22nd, 2011 by gia

Zimbra Version : Release 7.1.0_GA_3140.RHEL5_64_20110329150833 CentOS5_64 FOSS edition.

Edit postfix_transport_maps values :

[root@mail conf]# su zimbra
[zimbra@mail conf]$ zmlocalconfig -e postfix_transport_maps=hash:\${zimbra_home}/conf/transport,proxy:ldap:\${zimbra_home}/conf/ldap-transport.cf

Create file transport in /opt/zimbra/conf

[zimbra@mail conf]$ vi /opt/zimbra/conf/transport

Add this line to file transport (Format -> destinationdomain :[smtprelayhost]) sample :

gmx.com :[smtp.server.net.id]

Read the rest of this entry »

Tags: , ,
Posted in Zimbra | No Comments »
March 28th, 2011 by gia

OS : Centos 5.4 32bit
ZCS : Release 6.0.1_GA_1816.RHEL5_20090911181524 CentOS5 FOSS edition.
output : dislist
*execute using user zimbra

#!/bin/bash

for i in `zmprov gadl`
do
  echo $i
  echo "zmprov cdl $i" >> dislist
  zmprov gdl $i | grep zimbraMailForward | awk '{print $2}' > TEMP
  for row in $(cat TEMP)
  do
    echo "zmprov adlm $i $row" >> dislist
  done
done

rm -f TEMP

Switch to our mobile site