<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.tetrain.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jugendra</id>
	<title>TetraWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.tetrain.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jugendra"/>
	<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Special:Contributions/Jugendra"/>
	<updated>2026-07-25T08:07:15Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=File:Beetal_Tomcat_Server_report_error.txt&amp;diff=2353</id>
		<title>File:Beetal Tomcat Server report error.txt</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=File:Beetal_Tomcat_Server_report_error.txt&amp;diff=2353"/>
		<updated>2017-02-03T11:51:07Z</updated>

		<summary type="html">&lt;p&gt;Jugendra: uploaded a new version of &amp;amp;quot;File:Beetal Tomcat Server report error.txt&amp;amp;quot;: Reverted to version as of 11:45, 3 February 2017&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;For this we had restarted the tomcat server.&lt;br /&gt;
&lt;br /&gt;
Steps are:&lt;br /&gt;
&lt;br /&gt;
1.login to tetraadmin user&lt;br /&gt;
&lt;br /&gt;
2.Switch to tomocat user “rep6545”&lt;br /&gt;
su -rep6545&lt;br /&gt;
&lt;br /&gt;
3.Execute the command cd tomcat4/bin/&lt;br /&gt;
&lt;br /&gt;
4.Command to stop tomcat server ./shutdown.sh&lt;br /&gt;
&lt;br /&gt;
5.Command to start the tomcat server ./startup.sh&lt;br /&gt;
&lt;br /&gt;
Note:report server log path is&lt;br /&gt;
&lt;br /&gt;
/home/rep6545/tomcat4/log/CCreport.log&lt;/div&gt;</summary>
		<author><name>Jugendra</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=File:Beetal_Tomcat_Server_report_error.txt&amp;diff=2352</id>
		<title>File:Beetal Tomcat Server report error.txt</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=File:Beetal_Tomcat_Server_report_error.txt&amp;diff=2352"/>
		<updated>2017-02-03T11:49:40Z</updated>

		<summary type="html">&lt;p&gt;Jugendra: uploaded a new version of &amp;amp;quot;File:Beetal Tomcat Server report error.txt&amp;amp;quot;: Beetal Tomcat server report error&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;For this we had restarted the tomcat server.&lt;br /&gt;
&lt;br /&gt;
Steps are:&lt;br /&gt;
&lt;br /&gt;
1.login to tetraadmin user&lt;br /&gt;
&lt;br /&gt;
2.Switch to tomocat user “rep6545”&lt;br /&gt;
su -rep6545&lt;br /&gt;
&lt;br /&gt;
3.Execute the command cd tomcat4/bin/&lt;br /&gt;
&lt;br /&gt;
4.Command to stop tomcat server ./shutdown.sh&lt;br /&gt;
&lt;br /&gt;
5.Command to start the tomcat server ./startup.sh&lt;br /&gt;
&lt;br /&gt;
Note:report server log path is&lt;br /&gt;
&lt;br /&gt;
/home/rep6545/tomcat4/log/CCreport.log&lt;/div&gt;</summary>
		<author><name>Jugendra</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=File:Beetal_Tomcat_Server_report_error.txt&amp;diff=2351</id>
		<title>File:Beetal Tomcat Server report error.txt</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=File:Beetal_Tomcat_Server_report_error.txt&amp;diff=2351"/>
		<updated>2017-02-03T11:46:22Z</updated>

		<summary type="html">&lt;p&gt;Jugendra: For this we had restarted the tomcat server.

Steps are:

1.login to tetraadmin user

2.Switch to tomocat user “rep6545”
su -rep6545

3.Execute the command cd tomcat4/bin/

4.Command to stop tomcat server ./shutdown.sh

5.Command to start the tomcat s&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;For this we had restarted the tomcat server.&lt;br /&gt;
&lt;br /&gt;
Steps are:&lt;br /&gt;
&lt;br /&gt;
1.login to tetraadmin user&lt;br /&gt;
&lt;br /&gt;
2.Switch to tomocat user “rep6545”&lt;br /&gt;
su -rep6545&lt;br /&gt;
&lt;br /&gt;
3.Execute the command cd tomcat4/bin/&lt;br /&gt;
&lt;br /&gt;
4.Command to stop tomcat server ./shutdown.sh&lt;br /&gt;
&lt;br /&gt;
5.Command to start the tomcat server ./startup.sh&lt;br /&gt;
&lt;br /&gt;
Note:report server log path is&lt;br /&gt;
&lt;br /&gt;
/home/rep6545/tomcat4/log/CCreport.log&lt;/div&gt;</summary>
		<author><name>Jugendra</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Zimbra_Archive_Server&amp;diff=2178</id>
		<title>Zimbra Archive Server</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Zimbra_Archive_Server&amp;diff=2178"/>
		<updated>2016-01-30T10:02:11Z</updated>

		<summary type="html">&lt;p&gt;Jugendra: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Zimbra]]&lt;br /&gt;
[[Category:Sandhar Technologies]]&lt;br /&gt;
[[Category:Triburg]] &lt;br /&gt;
                                       &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Simple archival server for Zimbra OSE==&lt;br /&gt;
 &lt;br /&gt;
==Introduction==&lt;br /&gt;
 &lt;br /&gt;
This document shows how to create a simple archiving server. If you have a user &#039;keyur@example.com&#039;, all mails sent to and from this email ID  will be forwarded to &#039;keyur@archive.example.com&#039;. &lt;br /&gt;
We will need two servers for this. Both will be installed with Zimbra, one being the live mail server &#039;example.com&#039;, and the other the archiving server, &#039;archive.example.com&#039;. The archiving server should have a much larger HDD drive than the mail server, preferably formatted using LVM, to allow for expansion later. &lt;br /&gt;
&lt;br /&gt;
The installation on each server will be independent, ie, this isn&#039;t a multi-server setup. Each server will be a single-server, with the only difference being the domain names.&lt;br /&gt;
 &lt;br /&gt;
In this example, let&#039;s assume the live server&#039;s domain is &#039;example.com&#039;, with IP 192.168.1.5, and the archiving server is &#039;archive.example.com&#039;, with IP 192.168.1.18. Install Zimbra on both as usual.&lt;br /&gt;
&lt;br /&gt;
==DNS== &lt;br /&gt;
&lt;br /&gt;
The servers will require a local DNS, as we use this to forward the mails. In this example, I will assume that we have set up a caching name server using bind on the live server. Typical entries would be something like this: &lt;br /&gt;
 example.com.       	IN A            192.0.43.10&lt;br /&gt;
 mail.example.com.       IN A            192.168.1.5&lt;br /&gt;
 example.com.            IN MX           10 mail.example.com.&lt;br /&gt;
 Along with this, we need to add an A and MX record for archive.example.com as well. &lt;br /&gt;
 archive.example.com.    IN A            192.168.1.18&lt;br /&gt;
 archive.example.com.    IN MX           10 archive.example.com.&lt;br /&gt;
 Now all mails addressed to &#039;archive.example.com&#039; will be forwarded to the archive server. &lt;br /&gt;
&lt;br /&gt;
==Postfix== &lt;br /&gt;
In postfix, we can specify an email address to which all incoming and outgoing mails from a particular email ID will be forwarded to. This is done using &#039;sender_bcc_maps&#039; and &#039;recipient_bcc_maps&#039;. All these changes are done only on the main server. &lt;br /&gt;
We make the following entries at the end of /opt/zimbra/postfix/conf/main.cf &lt;br /&gt;
&lt;br /&gt;
 sender_bcc_maps = hash:/opt/zimbra/postfix/conf/archivelist&lt;br /&gt;
 recipient_bcc_maps = hash:/opt/zimbra/postfix/conf/archivelist&lt;br /&gt;
 &lt;br /&gt;
The file &#039;/opt/zimbra/postfix/conf/archivelist&#039; will have users in the following format: keyur@example.com keyur@archive.example.com &lt;br /&gt;
All mails to and from keyur@example.com will be forwarded to keyur@archive.example.com.&lt;br /&gt;
&lt;br /&gt;
==Manual addition== &lt;br /&gt;
Create a user on the main server, and then the corresponding user on the archive server. Then add the users in the format as show above to the file &#039;/opt/zimbra/postfix/conf/archivelist&#039;, and then run the postmap command as the zimbra user: &lt;br /&gt;
 $ postmap /opt/zimbra/postfix/conf/archivelist&lt;br /&gt;
 $ postfix reload&lt;br /&gt;
&lt;br /&gt;
==Script== &lt;br /&gt;
The following script to add users automatically on the archive server, and also to the &#039;archivelist&#039; file. Run this on the main server, and all users will be automatically added. You can place it in the crontab for every half an hour, so that when a new user is created on the main server, he/she will be automatically added to the archive server. SSH using keys (password-less ssh) between the main and archive server is necessary for the script to function. &lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 # ENSURE ALL THE SERVERS HAVE PASSWORDLESS SSH AUTHENTICATON (Login using keys),&lt;br /&gt;
 # OR THE SCRIPT WILL FAIL&lt;br /&gt;
 # -----------------------------------------------------------------------------&lt;br /&gt;
 #  Zimbra Archiving&lt;br /&gt;
 #&lt;br /&gt;
 #  This script will add users that are present on the main Zimbra server, but not&lt;br /&gt;
 #  on the archival server. It will also make the appropriate changes in postfix.&lt;br /&gt;
 # ------------------------------------------------------------------------------&lt;br /&gt;
 # IP of the archive server (archive.example.com)&lt;br /&gt;
 ARCHIP=172.16.1.17&lt;br /&gt;
 # File names of example.com and archive.example.com users&lt;br /&gt;
 # MAINLST is the userlist from the main server (example.com)&lt;br /&gt;
 # ARLST is the userlist from the archive server (archive.example.com)&lt;br /&gt;
 MAINLST=mainserverlist&lt;br /&gt;
 ARLST=archiveuserlist&lt;br /&gt;
 # Emptying out the input file for zmprov&lt;br /&gt;
 echo &amp;quot;&amp;quot; &amp;gt; /tmp/zmprovarchiv&lt;br /&gt;
 # Getting userlist from the archive server&lt;br /&gt;
 ssh $ARCHIP &#039;su -c &amp;quot;zmprov -l gaa | cut -d\@ -f1 &amp;gt; /tmp/archiveuserlist&amp;quot; -l zimbra&#039;&lt;br /&gt;
 rsync -Pa $ARCHIP:/tmp/archiveuserlist /tmp/$ARLIST&lt;br /&gt;
 # Getting userlist from local (main) server&lt;br /&gt;
 su -c &amp;quot;zmprov -l gaa | cut -d\@ -f1 &amp;gt; /tmp/$MAINLST&amp;quot; -l zimbra&lt;br /&gt;
 # Sorting the files for comparison&lt;br /&gt;
 sort /tmp/$MAINLST &amp;gt; /tmp/sorted$MAINLST&lt;br /&gt;
 sort /tmp/$ARLST &amp;gt; /tmp/sorted$ARLST&lt;br /&gt;
 # Comparing the files, and getting the unique users of the example.com domain&lt;br /&gt;
 # This will get the new users created on example.com, but not present on the archive server&lt;br /&gt;
 comm -23 /tmp/sorted$MAINLST /tmp/sorted$ARLST &amp;gt; /tmp/newusers&lt;br /&gt;
 echo &amp;quot;Checking if there are new users&amp;quot;&lt;br /&gt;
 if [ -s /tmp/newusers ]; then&lt;br /&gt;
   # Loop to read users one by one&lt;br /&gt;
   for newuser in `cat /tmp/newusers`; do&lt;br /&gt;
        # Creating a file that will be the input for zmprov.&lt;br /&gt;
        # This will create the new user accounts on the archive server.&lt;br /&gt;
        # The user&#039;s passwords have been set to &#039;very_secure_PW_31812&#039;&lt;br /&gt;
        echo &amp;quot;ca $newuser@archive.triburg.co.in very_secure_PW_31812&amp;quot; &amp;gt;&amp;gt; /tmp/zmprovarchiv&lt;br /&gt;
    done&lt;br /&gt;
    # Creates the file for postfix mapping. This file contains users in the form of &#039;from&#039; and &#039;to&#039;&lt;br /&gt;
    awk &#039;{print $1&amp;quot;@triburg.co.in&amp;quot;,&amp;quot;\t&amp;quot;,$1&amp;quot;@archive.triburg.co.in&amp;quot;}&#039; /tmp/newusers  &amp;gt;&amp;gt; /opt/zimbra/postfix/conf/archivelist&lt;br /&gt;
    # rsync the zmprov file to the archive server&lt;br /&gt;
    rsync -Pa /tmp/zmprovarchiv $ARCHIP:/tmp&lt;br /&gt;
    # Runs the zmprov command to add users on the archive server&lt;br /&gt;
    ssh $ARCHIP &#039;su -l zimbra -c zmprov &amp;lt; /tmp/zmprovarchiv&#039;&lt;br /&gt;
    # Postmapping on  the servers&lt;br /&gt;
    su -c &amp;quot;postmap /opt/zimbra/postfix/conf/archivelist&amp;quot; -l zimbra&lt;br /&gt;
    su -c &amp;quot;postfix reload&amp;quot; -l zimbra&lt;br /&gt;
 else&lt;br /&gt;
   exit&lt;br /&gt;
 fi&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Made By&lt;br /&gt;
Abhinav Sharma&lt;/div&gt;</summary>
		<author><name>Jugendra</name></author>
	</entry>
</feed>