Changes

From SME Server
Jump to navigationJump to search
no edit summary
Line 8: Line 8:  
{{Warning box| : Some portions obsolete}}
 
{{Warning box| : Some portions obsolete}}
   −
{{Note box|This How-To has been amended to work with SME Server 10. See the Addendum below.}}
+
{{Note box|This How-To has been amended to work with SME Server 10.}}
    
http://www.mailarchiva.com/
 
http://www.mailarchiva.com/
   −
===Enable SME maillog archiving following this FAQ:===
+
===Enable SME maillog archiving===
    
  http://wiki.contribs.org/SME_Server:Documentation:FAQ#Keep_a_copy_of_all_emails
 
  http://wiki.contribs.org/SME_Server:Documentation:FAQ#Keep_a_copy_of_all_emails
   −
===Download MailArchiva===
+
===Installing on SME Server 10.1===
   −
http://downloads.sourceforge.net/openmailarchiva
+
MailArchiva On Premise v9.0.26
   −
===Installation without Tomcat===
  −
If you do not have [[Tomcat]] in your SME Server, follow these instructions.
  −
  −
tar -zxvf mailarchiva_opensource_edition_v1_7_9c_linux_32bit.tar.gz
  −
cd ./mailarchiva_dist
  −
./install.sh
  −
  −
====SME Server specific config changes====
  −
  −
config set mailarchiva service TCPPort 8090 access private status enabled
  −
ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S99mailarchiva
  −
  −
===Installation with Tomcat===
  −
If you already have [[Tomcat]] in your SME Server, follow these instructions.
  −
  −
service tomcat stop
  −
tar -zxvf mailarchiva_opensource_edition_v1_7_9c_linux_32bit.tar.gz
  −
cp -r mailarchiva_dist/mailarchiva/server/webapps/mailarchiva /opt/tomcat/webapps/mailarchiva
  −
cp -r mailarchiva_dist/mailarchiva/server/endorsed /opt/tomcat/endorsed
  −
chown -R tomcat.tomcat /opt/tomcat*
  −
service tomcat start
  −
  −
===Configure MailArchiva===
  −
  −
Read and follow: mailarchiva_opensource_edition_v1_7_administration_guide.pdf
  −
  −
http://yourserver:8090/mailarchiva
  −
or Tomcat port.
  −
  −
Step 1: Create a Volume and enter your Email Encryption Password
  −
Step 2: Add your Domains
  −
Step 3: Add a Journal Account Connection, username = maillog, test the connection
  −
  −
MailArchiva should now be ready and working.
  −
  −
===Addendum: Installing MailArchiva On Premise v9.0.26 on SME Server 10.1===
   
'''Downloading . . .'''
 
'''Downloading . . .'''
   Line 62: Line 26:  
'''Option A (preferred)'''
 
'''Option A (preferred)'''
 
  https://help.mailarchiva.com/enterprise-linux-install
 
  https://help.mailarchiva.com/enterprise-linux-install
 +
 
Copy and paste the command in Step 2
 
Copy and paste the command in Step 2
 
+
curl -sS https://bs.stimulussoft.com/api/v1/download/product/maonprem/linux/latest | grep -oP '"downloadUrl": *"\K[^"]*' | xargs curl | tar -xz -C /tmp && cd /tmp/mailarchiva-* && ./install && rm -r /tmp/mailarchiva-*
 +
 +
Note: As an alternative, the link to download the latest version may also be found on the download page. After downloading, run ./install to begin setup.
    
'''Option B'''
 
'''Option B'''
Line 69: Line 36:  
Download and extract the most recent tar.gz archive
 
Download and extract the most recent tar.gz archive
 
  https://bs.stimulussoft.com/downloads
 
  https://bs.stimulussoft.com/downloads
After extracting the archive, cd inito the mailarchiva-* directory and execute the install script . . .
+
After extracting the archive, cd into the mailarchiva-* directory and execute the install script:
 
  ./install
 
  ./install
During the installation process (either method), you'll be asked two questions . . .
+
 
 +
During the installation process (either method), you'll be asked two questions:
    
<code>Do you agree to the terms of the agreement (yes/no)?</code>  
 
<code>Do you agree to the terms of the agreement (yes/no)?</code>  
Line 82: Line 50:     
Refer to http://help.mailarchiva.com/enterprise-memory-settings for heap space recommendations
 
Refer to http://help.mailarchiva.com/enterprise-memory-settings for heap space recommendations
      
If installation is successful, you'll see the following:
 
If installation is successful, you'll see the following:
Line 108: Line 75:  
*allow Mailarchiva to survive a server reboot
 
*allow Mailarchiva to survive a server reboot
   −
 
+
The tweaks required to make Mailarchiva work on SME Server 10.1 are:
 
+
<syntaxhighlight lang="bash">
The tweaks required to make Mailarchiva work on SME Server 10.1 are:<syntaxhighlight lang="bash">
   
mkdir /etc/systemd/system/mailarchiva.service.d
 
mkdir /etc/systemd/system/mailarchiva.service.d
 
printf "[Install]\nWantedBy=sme-server.target" > /etc/systemd/system/mailarchiva.service.d/50koozali.conf
 
printf "[Install]\nWantedBy=sme-server.target" > /etc/systemd/system/mailarchiva.service.d/50koozali.conf
 
db configuration set mailarchiva service TCPPort 8090 access public status enabled
 
db configuration set mailarchiva service TCPPort 8090 access public status enabled
 
signal-event console-save
 
signal-event console-save
</syntaxhighlight>If you prefer not to have your implementation available to the public, change the 3rd line above to:<syntaxhighlight lang="bash">
+
</syntaxhighlight>
 +
 
 +
If you prefer not to have your implementation available to the public, change the 3rd line above to:
 +
 
 +
<syntaxhighlight lang="bash">
 
db configuration set mailarchiva service TCPPort 8090 access private status enabled
 
db configuration set mailarchiva service TCPPort 8090 access private status enabled
 
</syntaxhighlight>Then you can ssh to your server via a tunnel on port 8090 and then access Mailarchiva at http://localhost:8090
 
</syntaxhighlight>Then you can ssh to your server via a tunnel on port 8090 and then access Mailarchiva at http://localhost:8090

Navigation menu