yum install mysql-server sendmail-cf MySQL-python libxml2
Download Jdk latest version from: wget http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/VerifyItem-Start/jdk-6u20-linux-
i586.bin?BundledLineItemUUID=Er9IBe.oOf0AAAEoay9bNk7a&OrderID=gddIBe.oe.0AAAEoXi9bNk7a&ProductID=guBIBe.oc_wAAAEnaDJHqPYe&FileName=/jdk-6u20-linux-i586.bin
mv jdk-6u20-linux-i586.bin?AuthParam=1272633583_0b435f520fad540d314411f50a185d7a&TicketId=B%2Fw4khmGSVNITB1FPFVTkwPl&GroupName=CDS&FilePath=%2FESD6%2FJSCDL%2Fjdk%2F6u20-b02%2Fjdk-6u20-linux-i586.bin&File=jdk-6u20-linux-i586.bin jdk-6u18-linux-i586.bin
Download openemm source file from : http://sourceforge.net/projects/openemm/files/OpenEMM%20software/OpenEMM%206.0.1/OpenEMM-6.0.1-bin.tar.gz/download
Create the ‘openemm’ User
Create a special group and user for OpenEMM:
groupadd openemm
useradd -m -g openemm -d /home/openemm -c “OpenEMM 6.x.y” openemm
Installation: Sun Java JDK
Copy the file to your /tmp directory: cp jdk-6u18-linux-i586.bin /tmp
- Change to the /tmp directory: cd /tmp
- Grant the file execution permission: chmod u+x jdk-6u18-linux-i586.bin
- Execute the file:
./jdk-6u18-linux-i586.bin
- Follow the onscreen instructions and confirm the license agreement
- Create a directory:
mkdir -p /opt/openemm.org/software
- Move the JDK-directory in there: mv jdk1.6.0_18 /opt/openemm.org/software
- Change to that directory:
cd /opt/openemm.org/software
- Create a symbolic link for the JDK:
ln -s jdk1.6.0_18 java
- Test the JDK: /opt/openemm.org/software/java/bin/java -version
You should get an output like this:
java version “1.6.0_18″
Java(TM) SE Runtime Environment (build 1.6.0_18-b01)
Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode, sharing)
Installation of OpenEMM:
cd /home/openemm
tar xzvpf /tmp/OpenEMM-6.0.1.bin.tar.gz
mkdir -p /usr/share/doc/OpenEMM-6.0.1
mv USR_SHARE/* /usr/share/doc/OpenEMM-6.0.1
Read Access to Maillog
chmod 604 /var/log/maillog
chkconfig mysqld on
service mysqld start
give the root password for mysql: .
mysqladmin -u root password root123
Create data base for openemm:
mysqladmin -u root -p create openemm
mysql -u root -p openemm_cms < openemm_cms.sql
Replace the generic string “http://localhost:8080″ with the domain name of
your server (like “http://www.domain.com:8080″) in these files:
- /usr/share/doc/OpenEMM-6.0.1/openemm-6.0.1.sql (once)
- /home/openemm/webapps/core/WEB-INF/classes/emm.properties (twice)
o /home/openemm/webapps/core/WEB-INF/classes/cms.properties (once)
Add the data from sql file:
mysql -u root -p openemm_cms < /usr/share/doc/OpenEMM-6.0.1/openemm_cms.sql
Give full permission to user for acces the data bases:/
mysql -u root -p
GRANT DELETE, INSERT, UPDATE, LOCK TABLES, SELECT, ALTER, INDEX, CREATE TEMPORARY TABLES, DROP, CREATE ON openemm.* TO ‘agnitas’@'localhost’ IDENTIFIED BY ‘openemm’;
FLUSH PRIVILEGES;
quit
Change the line on sendmail:.
Open file /etc/mail/sendmail.mc and change the line
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA’)dnl
to
dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA’)dnl
This will enable Sendmail to listen on all available network interfaces. By default Sendmail is listing only on the local interface lo0 for connections.
Add the following line at the end of the file:
INPUT_MAIL_FILTER(`bav’, `S=unix:/home/openemm/var/run/bav.sock, F=T’)dnl
This will enable the dynamic mail loop required by the bounce management to process delayed bounces.
If file /etc/mail/relay-domains does not exist, create the file – for example by
touch relay-domains
and add a line at the end of the file which specifies your DNS entry for the sender hostname (FQDN). In our example it is simply:
newsletter.pawan.in
open file /etc/mail/mailertable and add a line at the end which activates the bounce management for that FQDN:
news.openemm.org procmail:/home/openemm/conf/bav/bav.rc
to activate all Sendmail changes, run the following commands:
cd /etc/mail
make
and restart the Sendmail service by
/etc/init.d/sendmail restart
Launch OpenEMM
su – openemm
cd bin
sh OpenEMM.sh start
exit
