CINXE.COM

linux – comm-tech.org

<!DOCTYPE html> <html lang="en-US" class="no-js"> <head><script type="text/javascript" src="https://web-static.archive.org/_static/js/bundle-playback.js?v=7YQSqjSh" charset="utf-8"></script> <script type="text/javascript" src="https://web-static.archive.org/_static/js/wombat.js?v=txqj7nKC" charset="utf-8"></script> <script>window.RufflePlayer=window.RufflePlayer||{};window.RufflePlayer.config={"autoplay":"on","unmuteOverlay":"hidden"};</script> <script type="text/javascript" src="https://web-static.archive.org/_static/js/ruffle/ruffle.js"></script> <script type="text/javascript"> __wm.init("https://web.archive.org/web"); __wm.wombat("https://comm-tech.org/ABOUT/linux/","20200514202132","https://web.archive.org/","web","https://web-static.archive.org/_static/", "1589487692"); </script> <link rel="stylesheet" type="text/css" href="https://web-static.archive.org/_static/css/banner-styles.css?v=p7PEIJWi" /> <link rel="stylesheet" type="text/css" href="https://web-static.archive.org/_static/css/iconochive.css?v=3PDvdIFv" /> <!-- End Wayback Rewrite JS Include --> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width"> <link rel="profile" href="http://gmpg.org/xfn/11"> <link rel="pingback" href="https://comm-tech.org/xmlrpc.php"> <title>linux &#8211; comm-tech.org</title> <link rel="dns-prefetch" href="//web.archive.org/web/20200514202132/https://fonts.googleapis.com/"/> <link rel="dns-prefetch" href="//web.archive.org/web/20200514202132/https://s.w.org/"/> <link rel="alternate" type="application/rss+xml" title="comm-tech.org » Feed" href="https://web.archive.org/web/20200514202132/https://comm-tech.org/feed/"/> <link rel="alternate" type="application/rss+xml" title="comm-tech.org » Comments Feed" href="https://web.archive.org/web/20200514202132/https://comm-tech.org/comments/feed/"/> <link rel="alternate" type="application/rss+xml" title="comm-tech.org » linux Tag Feed" href="https://web.archive.org/web/20200514202132/https://comm-tech.org/ABOUT/linux/feed/"/> <script type="text/javascript"> window._wpemojiSettings = {"baseUrl":"https:\/\/web.archive.org\/web\/20200514202132\/https:\/\/s.w.org\/images\/core\/emoji\/11\/72x72\/","ext":".png","svgUrl":"https:\/\/web.archive.org\/web\/20200514202132\/https:\/\/s.w.org\/images\/core\/emoji\/11\/svg\/","svgExt":".svg","source":{"concatemoji":"https:\/\/web.archive.org\/web\/20200514202132\/https:\/\/comm-tech.org\/wp-includes\/js\/wp-emoji-release.min.js?ver=4.9.14"}}; !function(a,b,c){function d(a,b){var c=String.fromCharCode;l.clearRect(0,0,k.width,k.height),l.fillText(c.apply(this,a),0,0);var d=k.toDataURL();l.clearRect(0,0,k.width,k.height),l.fillText(c.apply(this,b),0,0);var e=k.toDataURL();return d===e}function e(a){var b;if(!l||!l.fillText)return!1;switch(l.textBaseline="top",l.font="600 32px Arial",a){case"flag":return!(b=d([55356,56826,55356,56819],[55356,56826,8203,55356,56819]))&&(b=d([55356,57332,56128,56423,56128,56418,56128,56421,56128,56430,56128,56423,56128,56447],[55356,57332,8203,56128,56423,8203,56128,56418,8203,56128,56421,8203,56128,56430,8203,56128,56423,8203,56128,56447]),!b);case"emoji":return b=d([55358,56760,9792,65039],[55358,56760,8203,9792,65039]),!b}return!1}function f(a){var c=b.createElement("script");c.src=a,c.defer=c.type="text/javascript",b.getElementsByTagName("head")[0].appendChild(c)}var g,h,i,j,k=b.createElement("canvas"),l=k.getContext&&k.getContext("2d");for(j=Array("flag","emoji"),c.supports={everything:!0,everythingExceptFlag:!0},i=0;i<j.length;i++)c.supports[j[i]]=e(j[i]),c.supports.everything=c.supports.everything&&c.supports[j[i]],"flag"!==j[i]&&(c.supports.everythingExceptFlag=c.supports.everythingExceptFlag&&c.supports[j[i]]);c.supports.everythingExceptFlag=c.supports.everythingExceptFlag&&!c.supports.flag,c.DOMReady=!1,c.readyCallback=function(){c.DOMReady=!0},c.supports.everything||(h=function(){c.readyCallback()},b.addEventListener?(b.addEventListener("DOMContentLoaded",h,!1),a.addEventListener("load",h,!1)):(a.attachEvent("onload",h),b.attachEvent("onreadystatechange",function(){"complete"===b.readyState&&c.readyCallback()})),g=c.source||{},g.concatemoji?f(g.concatemoji):g.wpemoji&&g.twemoji&&(f(g.twemoji),f(g.wpemoji)))}(window,document,window._wpemojiSettings); </script> <style type="text/css"> img.wp-smiley, img.emoji { display: inline !important; border: none !important; box-shadow: none !important; height: 1em !important; width: 1em !important; margin: 0 .07em !important; vertical-align: -0.1em !important; background: none !important; padding: 0 !important; } </style> <link rel="stylesheet" id="maisha-fonts-css" href="//web.archive.org/web/20200514202132cs_/https://fonts.googleapis.com/css?family=Raleway%3A400italic%2C100italic%2C200italic%2C300italic%2C500italic%2C600italic%2C700italic%2C800italic%2C900italic%2C400%2C100%2C200%2C300%2C500%2C600%2C700%2C800%2C900&amp;subset=latin%2Clatin-ext" type="text/css" media="all"/> <link rel="stylesheet" id="genericons-css" href="https://web.archive.org/web/20200514202132cs_/https://comm-tech.org/wp-content/themes/maisha-lite/genericons/genericons.css?ver=3.2" type="text/css" media="all"/> <link rel="stylesheet" id="maisha-style-css" href="https://web.archive.org/web/20200514202132cs_/https://comm-tech.org/wp-content/themes/maisha-lite/style.css?ver=4.9.14" type="text/css" media="all"/> <link rel="https://api.w.org/" href="https://comm-tech.org/wp-json/"/> <link rel="EditURI" type="application/rsd+xml" title="RSD" href="https://comm-tech.org/xmlrpc.php?rsd"/> <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="https://comm-tech.org/wp-includes/wlwmanifest.xml"/> <meta name="generator" content="WordPress 4.9.14"/> <style type="text/css"> </style> <style type="text/css"> .site-title, .site-description { color: #143142; } </style> <style type="text/css" id="wp-custom-css"> /* You can add your own CSS here. crumb { font-weight: bold; font-size: 1.8rem; line-height: 1; margin-top: 1em; margin-bottom: 1.8em; color: #134408; } Click the help icon above to learn more. */ </style> <link href="https://web.archive.org/web/20200514202132cs_/https://fonts.googleapis.com/css?family=Ubuntu:300,400,400i,700" rel="stylesheet"> <!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://web.archive.org/web/20200514202132js_/https://www.googletagmanager.com/gtag/js?id=UA-1704923-2"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-1704923-2'); </script> </head> <body class="archive tag tag-linux tag-12"> <div class="headerblock standard"> <div class="content site-content"> <a class="skip-link screen-reader-text" href="#content">Skip to content</a> <header id="masthead" class="site-header" role="banner"> <div class="header-inner"> <div class="site-logo"> <a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/" title="comm-tech.org" rel="home"><img src="https://web.archive.org/web/20200514202132im_/https://comm-tech.org/wp-content/uploads/2018/02/Comm-Tech_Final_TransparetBG_logo.png" alt="comm-tech.org"></a> </div><!-- .site-logo --> <div id="secondary"> <nav id="site-navigation" class="navigation-main" role="navigation"> <button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false"><span>Primary Menu</span></button> <div class="menu-site-navigation-container"><ul id="primary-menu" class="nav-menu"><li id="menu-item-777" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children menu-item-777"><a>ABOUT US</a> <ul class="sub-menu"> <li id="menu-item-75" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-75"><a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/about-us/">About Us</a></li> <li id="menu-item-76" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-76"><a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/about-us/history/">History</a></li> <li id="menu-item-78" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-78"><a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/about-us/meet-the-team/">Meet the team</a></li> <li id="menu-item-81" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-81"><a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/about-us/testimonials/">Testimonials</a></li> <li id="menu-item-833" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-833"><a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/about-us/privacy-policies/">Privacy &#038; information security</a></li> </ul> </li> <li id="menu-item-80" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-80"><a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/about-us/rates/">Rates</a></li> <li id="menu-item-838" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children menu-item-838"><a>OUR SERVICES</a> <ul class="sub-menu"> <li id="menu-item-96" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-96"><a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/our-services/it-support/">Charity IT support</a></li> <li id="menu-item-101" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-101"><a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/our-services/it-consultancy/">Technology consultancy</a></li> <li id="menu-item-99" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-99"><a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/our-services/it-health-checks/">System health checks</a></li> <li id="menu-item-97" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-97"><a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/our-services/sharepointoffice-365-google-apps-migrations/">Migrations and relocations</a></li> <li id="menu-item-98" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-98"><a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/our-services/cloud-server-hosting-services/">Hosting services</a></li> <li id="menu-item-816" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-816"><a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/our-services/portable-device-encryption/">Portable device encryption</a></li> <li id="menu-item-465" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-465"><a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/our-services/computer-recycling/">Computer recycling, data destruction</a></li> </ul> </li> <li id="menu-item-1119" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children menu-item-1119"><a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/about-us/vacancies/">Vacancies</a> <ul class="sub-menu"> <li id="menu-item-825" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-825"><a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/about-us/vacancies/we-are-hiring/">We are hiring!</a></li> </ul> </li> <li id="menu-item-87" class="menu-item menu-item-type-post_type menu-item-object-page current_page_parent menu-item-87"><a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/help/">HELP!</a></li> <li id="menu-item-83" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-83"><a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/contact-us/">Contact us</a></li> </ul></div> </nav><!-- #site-navigation --> </div> </div> </header><!-- .site-header --> </div><!-- .site-content --> </div><!-- .headerblock --> <div id="content" class="hfeed site"> <div class="content site-content"> <main class="main site-main" role="main"> <div class="single-themes-page clear news"> <header class="page-header"> <h1 class="page-title">Tag: linux</h1> </header><!-- .page-header --> <div class="two_third"> <div id="primary" class="content-area"> <article id="post-654" class="post-654 post type-post status-publish format-standard hentry category-uncategorized tag-how-to tag-linux tag-reversi tag-ssh tag-tech-advice"> <header class="entry-header"> <h2 class="entry-title"><a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/ssh-reverse-tunnels/" rel="bookmark">Setting up ssh reverse tunnels with reversi</a></h2> </header><!-- .entry-header --> <footer class="entry-footer"> <span class="posted-on"><span class="screen-reader-text">Posted on </span><a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/ssh-reverse-tunnels/" rel="bookmark"><time class="entry-date published" datetime="2017-12-22T00:41:25+00:00">December 22, 2017</time><time class="updated" datetime="2018-03-30T15:35:55+00:00">March 30, 2018</time></a></span><span class="byline"><span class="author vcard"><span class="screen-reader-text">Author </span><a class="url fn n" href="https://web.archive.org/web/20200514202132/https://comm-tech.org/author/alan/">Alan B.</a></span></span><span class="tags-links"><span class="screen-reader-text">Tags </span><a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/ABOUT/how-to/" rel="tag">how-to</a>, <a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/ABOUT/linux/" rel="tag">linux</a>, <a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/ABOUT/reversi/" rel="tag">reversi</a>, <a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/ABOUT/ssh/" rel="tag">ssh</a>, <a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/ABOUT/tech-advice/" rel="tag">tech advice</a></span><span class="comments-link"><a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/ssh-reverse-tunnels/#respond">Leave a comment</a></span> </footer><!-- .entry-footer --> <div class="entry-content"> <p># reversi-server and reversiclient<br/> # Author: kazimof at zzero dot org</p> <p># This program is free software: you can redistribute it and/or modify<br/> # it under the terms of the GNU General Public License as published by<br/> # the Free Software Foundation, either version 3 of the License, or<br/> # (at your option) any later version.<br/> #<br/> # This program is distributed in the hope that it will be useful,<br/> # but WITHOUT ANY WARRANTY; without even the implied warranty of<br/> # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the<br/> # GNU General Public License for more details.<br/> #<br/> # http://www.gnu.org/licenses/.</p> <p>repo now moved to git.<br/> https://github.com/kazimof/reversi/</p> <p>WHAT DOES REVERSI DO?<br/> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br/> Uses reverse ssh tunnels to expose device ports on a reversi-client&#8217;s network to a reversi-server anywhere on the internet.</p> <p>A reverse ssh tunnel (ssh -R) can be established quite easily, the problem comes with connection stability, where the ssh connection can and does hang from either the server or client end. Reversi tests the validity of the connection from the client every X seconds and re-establishes it if the connection is not fit for purpose.</p> <p>EXAMPLE USE 1:<br/> &#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br/> You need to manage a LAN but you have no access to their office broadband router to configure port forwarding.</p> <p>EXAMPLE USE 2:<br/> &#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br/> You have OpenWRT devices installed within a public mesh network and you need to be able to manage them.</p> <p>EXAMPLE USE 3:<br/> &#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br/> A company router has died or their broadband has been cut or they have moved premises, so they are on a temporary 3/4G connection waiting for a new broadband router with a static IP. Obviously the server not getting mail since port 25 is no longer forwarded by router, and webmail is unavailable to user for the same reason. Using an openwrt inside the network I forward ports 25 and 443 of the mail server to internet allowing the company mail server to receive mail and service web mail requests.</p> <p>HOW DOES IT WORK?<br/> &#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br/> reversi-clients are equipped with a password-free ssh key to a user on the reversi-server. Using this key the reversi-client is allowed to do 2 things:<br/> 1) run a script that forwards any local port on it&#8217;s network the reversi-server<br/> 2) run a script on the reversi-server passing arguements that inform the reversi-server about which node they are, which port it is using and what kind of response to expect from that port</p> <p>On the client side the scripts are both run in gnu-screen, one does the reverse connection and the other acts as a connections monitor, killing and re-establishing the reverse tunnel according to the server response from the script referenced in 2) above.</p> <p>On the server side the script referenced in 2) above tests to see whether the port is responding with the expected response, if not it assumes the connection has hung, identifies the appropriate PID and kills it. Script then returns a number specifying a time which the client monitor script should wait before retyring the connection.</p> <p>DESIGN PARAMETERS<br/> &#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br/> Needs to run on a variety of client OS, I am managing a mix of hundreds of openwrt devices, linux servers and OSX installs, I needed this solution for them all and I am too lazy to maintain multiple forks.<br/> The 2 programs available to all platforms are:</p> <p>screen<br/> ssh</p> <p>DESIGN<br/> &#8212;&#8212;<br/> Reversi commprises of 2 components to be installed on the reversi server.</p> <p>SERVER: hosts a script that clients are authorised to invoke to monitor and manage their reverse tunnel<br/> RECOMMENDED INSTALL FOLDER: /home/reversi/reversi<br/> CLIENT BUILDER: builds the scripts to be run on the client device<br/> RECOMMENDED INSTALL FOLDER: /root/reversi/client-builder</p> <p>See INSTRUCTIONS.TXT for installation info.</p> </div><!-- .entry-content --> </article><!-- #post-## --> <article id="post-543" class="post-543 post type-post status-publish format-standard hentry category-uncategorized tag-how-to tag-linux tag-tech-advice"> <header class="entry-header"> <h2 class="entry-title"><a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/monitoring-your-linux-servers/" rel="bookmark">Scripts for monitoring Linux servers</a></h2> </header><!-- .entry-header --> <footer class="entry-footer"> <span class="posted-on"><span class="screen-reader-text">Posted on </span><a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/monitoring-your-linux-servers/" rel="bookmark"><time class="entry-date published" datetime="2017-09-03T17:39:02+00:00">September 3, 2017</time><time class="updated" datetime="2018-05-16T09:55:42+00:00">May 16, 2018</time></a></span><span class="byline"><span class="author vcard"><span class="screen-reader-text">Author </span><a class="url fn n" href="https://web.archive.org/web/20200514202132/https://comm-tech.org/author/alan/">Alan B.</a></span></span><span class="tags-links"><span class="screen-reader-text">Tags </span><a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/ABOUT/how-to/" rel="tag">how-to</a>, <a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/ABOUT/linux/" rel="tag">linux</a>, <a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/ABOUT/tech-advice/" rel="tag">tech advice</a></span><span class="comments-link"><a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/monitoring-your-linux-servers/#respond">Leave a comment</a></span> </footer><!-- .entry-footer --> <div class="entry-content"> <p>Tired of regularly logging into our servers to find out if anything is wrong, I wanted to know before something like a spam attack or a disk-eater gets out of hand.</p> <p>Wrote some scripts to automate the process and email me some stats. Yes there are tools to do this for you, but then you have to maintain those tools, and sometimes installing them and configuring them on so many servers can be a pain. This system needs only ssh and mutt, lightweight and available in almost all Linux distributions I know.</p> <p>This, it&#8217;s simply bash installed on one server, and everything is &#8220;pushed&#8221; fresh to the servers every time it is run, so updates are automatic and easily deployed.</p> <h2>Design</h2> <p>The main script checkserver.sh copies (using scp)  the checkservices, checkdf, checkmailq and checkmaillog scripts and config files to the target host, runs them there and emails the output to you.</p> <p>On your host servers there is nothing to install except openssh-server. Configure your password-less ssh-keys for all the servers in ~/.ssh/config on your monitoring server with the public keys in /root/.ssh/authorized_keys on the hosts. For help with that see our article: <a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/master-ssh-keys/">master-ssh-key</a></p> <h2>Scripts</h2> <p>&nbsp;</p> <p>To send notification emails you need a mutt wrapper, almost all distributions have mutt in their repos.</p> <h4>muttcc.sh</h4> <blockquote><p>func_muttemail () {</p> <p>#### establish current dir<br/> APPDIR=$( cd &#8220;$( dirname &#8220;$0&#8243; )&#8221; &amp;&amp; pwd )<br/> gotdate=`date +%Y-%m-%d-%H-%M`<br/> DEBUGLOG=&#8221;$APPDIR/functions-email.log&#8221;<br/> echo &#8220;ENTERING mutt.sh&#8221; | tee -a $DEBUGLOG</p> <p>#### ASSIGN VARS<br/> mailentity=&#8221;$1&#8243;<br/> mailsubject=&#8221;$2&#8243;<br/> maildatafile=&#8221;$3&#8243;<br/> mailentitycc=&#8221;$4&#8243;<br/> echo &#8220;$mailentity $mailsubject $maildatafile&#8221; | tee -a $DEBUGFILE<br/> #send email<br/> echo &#8220;cc specified: $4&#8243; | tee -a $DEBUGLOG<br/> if [ x&#8221;${mailentitycc}&#8221; = x ]<br/> then<br/> #the cc is not set so do not include mecc<br/> mutt -F $APPDIR/muttrc -s &#8220;$mailsubject&#8221; &#8220;$mailentity&#8221; &lt; $maildatafile<br/> echo &#8220;no cc specified: $mailentitycc&#8221; | tee -a $DEBUGLOG<br/> else<br/> mutt -F $APPDIR/muttrc -s &#8220;$mailsubject&#8221; -c &#8220;$mailentitycc&#8221; &#8220;$mailentity&#8221; &lt; $maildatafile<br/> echo &#8220;cc specified: $mailentitycc&#8221; | tee -a $DEBUGLOG<br/> fi</p> <p>EX=$?<br/> echo &#8220;$EX&#8221;<br/> echo &#8220;##### EXITING mutt.sh #######&#8221; | tee -a $DEBUGLOG<br/> return $EX<br/> }</p></blockquote> <p>You&#8217;ll need to install mutt and have access to an smtp server. Mine is local and needs no authentication. Normally this fill will be the user&#8217;s &#8220;.muttrc&#8221; file, but in the wrapper we have specified it&#8217;s location.</p> <h4>muttrc</h4> <blockquote><p>set from = &#8220;me@myserver.net&#8221;<br/> set realname = &#8220;CHECKSERVER&#8221;<br/> set use_envelope_from = yes<br/> set smtp_url=smtp://mylocalmailserverhostname.net/<br/> set ssl_starttls = no</p></blockquote> <h4>checkservers.sh</h4> <blockquote><p>#!/bin/bash<br/> APPDIR=$( cd &#8220;$( dirname &#8220;$0&#8243; )&#8221; &amp;&amp; pwd )<br/> . /$APPDIR/muttcc.sh<br/> SERVERLIST=$APPDIR/server.list<br/> MAILQTESTS=$APPDIR/checkmailq.txt<br/> MAILLOGTESTS=$APPDIR/checkmaillog.txt<br/> MAILQSH=$APPDIR/checkmailq.sh<br/> MAILLOGSH=$APPDIR/checkmaillog.sh<br/> DISKDF=$APPDIR/checkdiskdf.sh<br/> CHECKLOG=/tmp/servercheck.log</p> <p>while IFS=&#8221;:&#8221; read servername ifmailq ifmaillog ifdiskdf serviceslist<br/> do<br/> echo &#8220;=========== SERVERCHECK STARTS: $servername ==============&#8221;<br/> echo &#8220;=========== SERVERCHECK STARTS: $servername ==============&#8221; &gt; $CHECKLOG<br/> echo &#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- disks &#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8221; &gt;&gt; $CHECKLOG<br/> if [ &#8220;$ifdiskdf&#8221; == &#8220;diskdf&#8221; ]<br/> then<br/> scp $APPDIR/checkdiskdf.sh root@$servername:/usr/local/sbin/<br/> ssh -n root@$servername /usr/local/sbin/checkdiskdf.sh &gt;&gt; $CHECKLOG<br/> else<br/> echo &#8220;$servername diskdf not flagged for check&#8221; &gt;&gt; $CHECKLOG</p> <p>fi<br/> echo &#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- services &#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8221; &gt;&gt; $CHECKLOG<br/> echo &#8220;SERVICEFILE: $serviceslist&#8221;<br/> case $serviceslist in<br/> no)<br/> echo &#8220;$servername services not flagged for check&#8221; &gt;&gt; $CHECKLOG<br/> ;;<br/> *)<br/> scp $APPDIR/checkservices-$serviceslist.txt root@$servername:/usr/local/sbin/checkservices.txt<br/> scp $APPDIR/checkservices.sh root@$servername:/usr/local/sbin/<br/> ssh -n root@$servername /usr/local/sbin/checkservices.sh &gt;&gt; $CHECKLOG<br/> esac</p> <p>echo &#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- mailq &#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8221; &gt;&gt; $CHECKLOG<br/> if [ &#8220;$ifmailq&#8221; == &#8220;mailq&#8221; ]<br/> then<br/> scp $APPDIR/checkmailq.sh root@$servername:/usr/local/sbin/<br/> scp $APPDIR/checkmailq.txt root@$servername:/usr/local/sbin/<br/> ssh -n root@$servername /usr/local/sbin/checkmailq.sh &gt;&gt; $CHECKLOG<br/> else<br/> echo &#8220;$servername mailq not flagged for check&#8221; &gt;&gt; $CHECKLOG<br/> fi</p> <p>echo &#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; maillog &#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8221; &gt;&gt; $CHECKLOG<br/> if [ &#8220;$ifmaillog&#8221; == &#8220;maillog&#8221; ]<br/> then<br/> scp $APPDIR/checkmaillog.sh root@$servername:/usr/local/sbin/<br/> scp $APPDIR/checkmaillog.txt root@$servername:/usr/local/sbin/<br/> ssh -n root@$servername /usr/local/sbin/checkmaillog.sh &gt;&gt; $CHECKLOG<br/> else<br/> echo &#8220;$servername maillog not flagged for check&#8221; &gt;&gt; $CHECKLOG<br/> fi<br/> echo &#8220;=========== SERVERCHECK ENDS: $servername ==============&#8221; &gt;&gt; $CHECKLOG<br/> email_subject=&#8221;checkserver results: $servername&#8221;<br/> echo &#8220;$email_subject&#8221;<br/> tmp2=$(func_muttemail &#8220;myemail@address.com&#8221; &#8220;$email_subject&#8221; &#8220;$CHECKLOG&#8221; &#8220;ccemail@address.com&#8221;)<br/> echo &#8220;=========== SERVERCHECK ENDS: $servername ==============&#8221;</p> <p>done &lt; &#8220;$SERVERLIST&#8221;</p></blockquote> <h4>checkdiskdf.sh</h4> <blockquote><p>#!/bin/bash<br/> /bin/df -h<br/> exit</p></blockquote> <h4>checkmaillog.sh</h4> <blockquote><p>#!/bin/bash<br/> APPDIR=$( cd &#8220;$( dirname &#8220;$0&#8243; )&#8221; &amp;&amp; pwd )<br/> #greps maillotgs and mailqueue fiels for various issues<br/> MAILLOGTESTS=$APPDIR/checkmaillog.txt<br/> MAILRESULT=$APPDIR/checkmailresult.log<br/> MAILRESULTREPORT=$APPDIR/checkmailresult.log<br/> MAILRESULTTEMP=$APPDIR/checkmailresulttemp.log<br/> rm $MAILRESULTTEMP<br/> while IFS=&#8221;:&#8221; read testname before after<br/> do<br/> datum=`date &#8220;+%b %d&#8221;`<br/> grep -A$after -B$before &#8220;$testname&#8221; /var/log/maillog | grep &#8220;$datum&#8221; &gt;&gt; $MAILRESULTTEMP</p> <p>done &lt; $MAILLOGTESTS<br/> resultlength=$(cat &#8220;$MAILRESULTTEMP&#8221; | wc -l)<br/> echo &#8220;$resultlength&#8221;<br/> if [ &#8220;$resultlength&#8221; -gt &#8220;1&#8221; ]<br/> then<br/> echo &#8220;issues found&#8221;<br/> echo &#8220;mail log errors found. lines=$resultlength.&#8221; &gt; $MAILRESULTREPORT<br/> cat &#8220;$MAILRESULTTEMP&#8221; &gt;&gt; $MAILRESULTREPORT<br/> cat &#8220;$MAILRESULTREPORT&#8221;<br/> else<br/> echo &#8220;nothing to report&#8221;<br/> fi</p></blockquote> <h4>checkmaillog.txt</h4> <blockquote><p>refused to talk to me:0:0<br/> Connection timed out:0:0<br/> Name service error for name:0:0<br/> sender non-delivery notification:0:0<br/> to=&lt;noreply@:0:0<br/> 421 Too many concurrent SMTP connections:0:0<br/> testing something:0:0</p></blockquote> <h4>checkmailq.sh</h4> <blockquote><p>#!/bin/bash<br/> APPDIR=$( cd &#8220;$( dirname &#8220;$0&#8243; )&#8221; &amp;&amp; pwd )<br/> #greps maillotgs and mailqueue fiels for various issues</p> <p>MAILQTESTS=$APPDIR/checkmailq.txt<br/> MAILRESULT=$APPDIR/checkmailresult.log<br/> MAILRESULTREPORT=$APPDIR/checkmailresult.log<br/> MAILRESULTTEMP=$APPDIR/checkmailresulttemp.log<br/> rm $MAILRESULTTEMP</p> <p>while IFS=&#8221;:&#8221; read testname before after<br/> do<br/> /usr/bin/mailq | grep -A$after -B$before &#8220;$testname&#8221; &gt;&gt; $MAILRESULTTEMP<br/> done &lt; $MAILQTESTS<br/> resultlength=$(cat &#8220;$MAILRESULTTEMP&#8221; | wc -l)<br/> echo &#8220;$resultlength&#8221;<br/> if [ &#8220;$resultlength&#8221; -gt &#8220;1&#8221; ]<br/> then<br/> echo &#8220;issues found&#8221;<br/> echo &#8220;there is queued mail. lines=$resultlength.&#8221; &gt; $MAILRESULTREPORT<br/> cat &#8220;$MAILRESULTTEMP&#8221; &gt;&gt; $MAILRESULTREPORT<br/> cat &#8220;$MAILRESULTREPORT&#8221;<br/> else<br/> echo &#8220;nothing to report&#8221;<br/> fi</p></blockquote> <h4>checkmailq.sh</h4> <blockquote><p>#!/bin/bash<br/> APPDIR=$( cd &#8220;$( dirname &#8220;$0&#8243; )&#8221; &amp;&amp; pwd )<br/> #greps maillotgs and mailqueue fiels for various issues</p> <p>MAILQTESTS=$APPDIR/checkmailq.txt<br/> MAILRESULT=$APPDIR/checkmailresult.log<br/> MAILRESULTREPORT=$APPDIR/checkmailresult.log<br/> MAILRESULTTEMP=$APPDIR/checkmailresulttemp.log<br/> rm $MAILRESULTTEMP</p> <p>while IFS=&#8221;:&#8221; read testname before after<br/> do<br/> /usr/bin/mailq | grep -A$after -B$before &#8220;$testname&#8221; &gt;&gt; $MAILRESULTTEMP<br/> done &lt; $MAILQTESTS<br/> resultlength=$(cat &#8220;$MAILRESULTTEMP&#8221; | wc -l)<br/> echo &#8220;$resultlength&#8221;<br/> if [ &#8220;$resultlength&#8221; -gt &#8220;1&#8221; ]<br/> then<br/> echo &#8220;issues found&#8221;<br/> echo &#8220;there is queued mail. lines=$resultlength.&#8221; &gt; $MAILRESULTREPORT<br/> cat &#8220;$MAILRESULTTEMP&#8221; &gt;&gt; $MAILRESULTREPORT<br/> cat &#8220;$MAILRESULTREPORT&#8221;<br/> else<br/> echo &#8220;nothing to report&#8221;<br/> fi</p></blockquote> <h4>checkmailq.txt</h4> <blockquote><p>Connection timed out:1:1<br/> Connection refused:1:1</p></blockquote> <h4>checkservices.sh</h4> <blockquote><p>#!/bin/bash</p> <p>#!/bin/bash</p> <p>APPDIR=$( cd &#8220;$( dirname &#8220;$0&#8243; )&#8221; &amp;&amp; pwd )</p> <p>#greps maillotgs and mailqueue fiels for various issues</p> <p>SERVICETESTS=$APPDIR/checkservices.txt</p> <p>RESULTREPORT=$APPDIR/checkservicesresultreport.log</p> <p>RESULTTEMP=$APPDIR/checkservicesresulttemp.log</p> <p>rm $RESULTREPORT</p> <p>rm $RESULTTEMP</p> <p>while IFS=&#8221;:&#8221; read portnumber service</p> <p>do result=$( lsof -i:$portnumber | head -n2 &gt; $RESULTTEMP)</p> <p>resultlength=$(cat &#8220;$RESULTTEMP&#8221; | wc -l )</p> <p>if [ &#8220;$resultlength&#8221; -gt &#8220;1&#8221; ] then</p> <p>#service is running there</p> <p>echo &#8220;OK: $service on $portnumber&#8221; &gt;&gt; $RESULTREPORT else</p> <p>echo &#8220;++++++ NOK: $service on $portnumber +++++++++&#8221; &gt;&gt; $RESULTREPORT</p> <p>fi</p> <p>done &lt; $SERVICETESTS</p> <p>cat &#8220;$RESULTREPORT&#8221;</p></blockquote> <h4>checkservices-ALL.txt</h4> <blockquote><p>22:ssh<br/> 443:https<br/> 993:imaps<br/> 3306:mysql<br/> 389:ldap</p></blockquote> <h4>servers.list</h4> <p>This is your list of servers to process.</p> <blockquote><p>megatron:nomailq:nomaillog:diskdf:ALL<br/> magdelena:mailq:maillog:diskdf:ALL</p></blockquote> <p>In my crontab. I don&#8217;t want email noise from cron so I use /dev/null 2&gt; &amp;1 to null that.</p> <blockquote><p>30 08 * * * /usr/local/sbin/backup_app/checkservers.sh &gt; /dev/null 2&gt;&amp;1</p></blockquote> <h3>Debugging</h3> <p>Debug email issues with functions-email.log</p> <p>For output issues log into your remote servers and run the check*.sh files to see what comes out.</p> <h3>Room for improvement</h3> <p>tmp files are used per server in the main loop, so take care not to run this script again until complete or you&#8217;ll get nonsense.</p> </div><!-- .entry-content --> </article><!-- #post-## --> <article id="post-527" class="post-527 post type-post status-publish format-standard hentry category-uncategorized tag-assistive-technology tag-linux tag-tech-advice tag-windows"> <header class="entry-header"> <h2 class="entry-title"><a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/527-2/" rel="bookmark">Accessibility and Assistive Technology</a></h2> </header><!-- .entry-header --> <footer class="entry-footer"> <span class="posted-on"><span class="screen-reader-text">Posted on </span><a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/527-2/" rel="bookmark"><time class="entry-date published" datetime="2017-08-22T07:29:23+00:00">August 22, 2017</time><time class="updated" datetime="2018-03-30T16:46:50+00:00">March 30, 2018</time></a></span><span class="byline"><span class="author vcard"><span class="screen-reader-text">Author </span><a class="url fn n" href="https://web.archive.org/web/20200514202132/https://comm-tech.org/author/alan/">Alan B.</a></span></span><span class="tags-links"><span class="screen-reader-text">Tags </span><a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/ABOUT/assistive-technology/" rel="tag">assistive technology</a>, <a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/ABOUT/linux/" rel="tag">linux</a>, <a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/ABOUT/tech-advice/" rel="tag">tech advice</a>, <a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/ABOUT/windows/" rel="tag">windows</a></span><span class="comments-link"><a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/527-2/#respond">Leave a comment</a></span> </footer><!-- .entry-footer --> <div class="entry-content"> <h1>Computer Accesibility</h1> <h2>What is computer accesibility?</h2> <p>This term refers to the accessibility of a computer system to all people, regardless of disability or severity of impairment. It is largely a software concern; when software, hardware, or a combination of both, is used to enable use of a computer by a person with a disability or impairment, this is known as <a href="https://web.archive.org/web/20200514202132/http://en.wikipedia.org/wiki/Assistive_Technology" target="_blank" rel="noopener">Assistive Technology</a>.</p> <p>For individuals with mild to medium vision impairment, it is helpful to use large <a href="https://web.archive.org/web/20200514202132/http://en.wikipedia.org/wiki/Font" target="_blank" rel="noopener">fonts</a>, high <a href="https://web.archive.org/web/20200514202132/http://en.wikipedia.org/wiki/Dots_per_inch" target="_blank" rel="noopener">DPI</a> displays, high-contrast themes and icons supplemented with auditory feedback and screen magnifying software.</p> <p>In the case of severe vision impairment such as blindness, <a href="https://web.archive.org/web/20200514202132/http://en.wikipedia.org/wiki/Screen_reader" target="_blank" rel="noopener">screen reader</a> software that provides feedback via <a href="https://web.archive.org/web/20200514202132/http://en.wikipedia.org/wiki/Text_to_speech" target="_blank" rel="noopener">text-to-speech</a> or a refreshable <a href="https://web.archive.org/web/20200514202132/http://en.wikipedia.org/wiki/Braille_display" target="_blank" rel="noopener">braille display</a> is a necessary accommodation for interaction with a computer.</p> <h3>Assistive Technology Software</h3> <p><a href="https://web.archive.org/web/20200514202132/http://en.wikipedia.org/wiki/Vinux" target="_blank" rel="noopener"><b>Vinux</b></a> is a Linux distribution which has been specially designed for blind and partially sighted users.<br/> It is a remastered version of the Ubuntu distribution and provides users with two screen-readers, two full-screen magnifiers, global font-size and colour changing facilities. The system also supports USB braille displays.<br/> It can be run from a Live CD without making any changes to your hard drive</p> <h4>Requirements for Vinux main Edition:</h4> <ul> <li>1 GHz x86 processor.</li> <li>1 Gb of system memory (RAM).</li> <li>15 GB of hard-drive space (although this can be split onto 2 drives, a 5Gb / and a 10Gb /home partition fairly easily).</li> <li>Graphics card and monitor capable of 1024 by 768 resolution.</li> <li>Either a Cd/Dvd-drive or a Usb socket (or both).</li> <li>Internet access is helpful though not vital.</li> </ul> <h4>Requirements for Vinux (CLI) Installation:</h4> <ul> <li>300 MHz x86 processor.</li> <li>128 MiB of system memory (RAM).</li> <li>1 GB of disk space.</li> <li>Graphics card and monitor capable of 640&#215;480.</li> <li>CD-ROM drive.</li> </ul> <h3>Some other free alternatives:</h3> <p><a href="https://web.archive.org/web/20200514202132/http://en.wikipedia.org/wiki/Orca_%28assistive_technology%29" target="_blank" rel="noopener"><b>Orca</b></a> is a free, open source, flexible, and extensible screen reader for Linux that provides access to graphical desktop environments via user-customizable combinations of speech, braille, and magnification.</p> <p>There are no specific system requirements, as it is expected to work even with very little RAM.</p> <p><a href="https://web.archive.org/web/20200514202132/http://en.wikipedia.org/wiki/NonVisual_Desktop_Access" target="_blank" rel="noopener"><b>NVDA(NonVisual Desktop Access)</b></a> is a free, open source, portable screen reader for Microsoft Windows.</p> <p>NVDA uses <a href="https://web.archive.org/web/20200514202132/http://en.wikipedia.org/wiki/ESpeak" target="_blank" rel="noopener">eSpeak</a> as its integrated <a target="_blank" rel="noopener">speech synthesizer</a>, and also supports <a href="https://web.archive.org/web/20200514202132/http://en.wikipedia.org/wiki/Microsoft_Speech_API" target="_blank" rel="noopener">SAPI</a> synthesizers. Output to braille displays is supported too.<br/> It runs on both 32-bit and 64-bit editions of Microsoft Windows XP or later.</p> <p>It has no additional hardware requirements beyond those of the operating system and requires less than 50 mb of disk space.</p> <h3>Proprietary software alternatives:</h3> <p>Proprietary software is computer software licensed under exclusive legal right of the copyright holder. The licensee is given the right to use the software under certain conditions, while restricted from other uses, such as modification, further distribution, or reverse engineering.</p> <p><a href="https://web.archive.org/web/20200514202132/http://en.wikipedia.org/wiki/JAWS_%28screen_reader%29" target="_blank" rel="noopener"><b>JAWS (Job Access With Speech)</b></a> is a computer screen reader program for Microsoft Windows that allows blind and visually impaired users to read the screen either with a text-to-speech output or a <a href="https://web.archive.org/web/20200514202132/http://en.wikipedia.org/wiki/Refreshable_Braille_display" target="_blank" rel="noopener">refreshable braille display</a>.</p> <p>There are two versions of the program,standard and professional. A third version for MS-DOS is free.</p> <p><a href="https://web.archive.org/web/20200514202132/http://en.wikipedia.org/wiki/Window-eyes" target="_blank" rel="noopener"><b>Window-eyes</b></a> is a screen reader for Microsoft Windows, compatible with the following versions: Windows 2000, Windows XP, Windows Vista and Windows 7.</p> </div><!-- .entry-content --> </article><!-- #post-## --> <article id="post-326" class="post-326 post type-post status-publish format-standard hentry category-uncategorized tag-how-to tag-linux tag-security tag-tech-advice"> <header class="entry-header"> <h2 class="entry-title"><a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/master-ssh-keys/" rel="bookmark">master ssh keys</a></h2> </header><!-- .entry-header --> <footer class="entry-footer"> <span class="posted-on"><span class="screen-reader-text">Posted on </span><a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/master-ssh-keys/" rel="bookmark"><time class="entry-date published" datetime="2017-08-08T09:49:40+00:00">August 8, 2017</time><time class="updated" datetime="2019-02-11T14:04:05+00:00">February 11, 2019</time></a></span><span class="byline"><span class="author vcard"><span class="screen-reader-text">Author </span><a class="url fn n" href="https://web.archive.org/web/20200514202132/https://comm-tech.org/author/alan/">Alan B.</a></span></span><span class="tags-links"><span class="screen-reader-text">Tags </span><a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/ABOUT/how-to/" rel="tag">how-to</a>, <a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/ABOUT/linux/" rel="tag">linux</a>, <a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/ABOUT/security/" rel="tag">security</a>, <a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/ABOUT/tech-advice/" rel="tag">tech advice</a></span><span class="comments-link"><a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/master-ssh-keys/#respond">Leave a comment</a></span> </footer><!-- .entry-footer --> <div class="entry-content"> <h1>Use ssh to run scripts on remote servers without entering a password.</h1> <h4>Create your ssh key</h4> <hr/> <p><code>ssh-keygen -b 4096 -t rsa -f ~/.ssh/keyname.rsa</code></p> <hr/> <p>will produce a keypair. The .rsa file will be the private and the .rsa.pub is the one that goes into authorized_keys on the remote server. If you don&#8217;t enter a password the key can be used with no user interaction. Do this when you need script operations on a remote server.</p> <h4>Load a key</h4> <hr/> <p><code> ssh-add keyname</code></p> <hr/> <h4>Upload your ssh key to a server</h4> <hr/> <p><code> ssh-copy-id -i keyname.rsa.pub username@remotehost</code></p> <hr/> <h4>Carry your key with your ssh session</h4> <p>if you need to carry your key somewhere, for instance if you will be chaining through to a host WITHIN the network of your remotehost and there is no direct ssh port forwarded to that host.</p> <hr/> <p><code>ssh -v username@remote -A</code></p> <hr/> <p>using -v (verbose) can help diagnose connectivity issues</p> <h4>Display the ssh keys you have loaded</h4> <hr/> <p><code>ssh-add -l</code></p> <hr/> <p>if you forgot to carry a key or you need to add a local key you will get the error:</p> <hr/> <p><code>ssh-add -l<br/> Could not open a connection to your authentication agent.</code></p> <hr/> <p>in this case use</p> <hr/> <p><code> ssh-agent bash<br/> ssh-add keyname</code></p> <hr/> <h4>Using alternative ports</h4> <p>Sometimes your remote host is running ssh on another port since 22 on that IP is already used. To reduce brute force attacks on the standard ssh port you can also use alternative ports by setting up the listening port in sshd_config on the server.</p> <p>Use the -p flag to specify:</p> <hr/> <p><code> ssh -p 41843 user@remotehost </code></p> <hr/> <p>You can use an -i flag to specify a key to use (always needed in bash scripting for using ssh password-less)</p> <hr/> <p><code> ssh -p 41843 -i ~/.ssh/keyfile.rsa user@remotehost </code></p> <hr/> <p>If you manage many servers you may want to use ~/.ssh/config to alias the connections.</p> <hr/> <p><code> vim ~/.ssh/config<br/> Host remotehost<br/> IdentityFile ~/.ssh/keyname.rsa<br/> Port 41843<br/> ServerAliveInterval 240</code></p> <hr/> <p>In the case above you can simply use ssh user@remotehost to get in using keyfile.rsa on port 41843</p> </div><!-- .entry-content --> </article><!-- #post-## --> <article id="post-263" class="post-263 post type-post status-publish format-standard hentry category-uncategorized tag-how-to tag-linux tag-office-programs tag-tech-advice"> <header class="entry-header"> <h2 class="entry-title"><a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/forwarding-emails-in-zarafa-webapp/" rel="bookmark">How to forward email in Zarafa WebApp</a></h2> </header><!-- .entry-header --> <footer class="entry-footer"> <span class="posted-on"><span class="screen-reader-text">Posted on </span><a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/forwarding-emails-in-zarafa-webapp/" rel="bookmark"><time class="entry-date published" datetime="2017-08-07T12:30:46+00:00">August 7, 2017</time><time class="updated" datetime="2018-03-30T16:47:39+00:00">March 30, 2018</time></a></span><span class="byline"><span class="author vcard"><span class="screen-reader-text">Author </span><a class="url fn n" href="https://web.archive.org/web/20200514202132/https://comm-tech.org/author/maria/">Maria S.</a></span></span><span class="tags-links"><span class="screen-reader-text">Tags </span><a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/ABOUT/how-to/" rel="tag">how-to</a>, <a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/ABOUT/linux/" rel="tag">linux</a>, <a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/ABOUT/office-programs/" rel="tag">office programs</a>, <a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/ABOUT/tech-advice/" rel="tag">tech advice</a></span><span class="comments-link"><a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/forwarding-emails-in-zarafa-webapp/#respond">Leave a comment</a></span> </footer><!-- .entry-footer --> <div class="entry-content"> <p>1. Click <strong>Setting</strong> top-right.</p> <p>2.  Click <strong>Mail Filters </strong>to the left.</p> <p><a href="https://web.archive.org/web/20200514202132/http://comm-tech.org/screenshots/1.png" target="_blank" rel="noopener"><img class="alignnone wp-image-264" src="https://web.archive.org/web/20200514202132im_/https://comm-tech.org/wp-content/uploads/2017/08/Screen-Shot-2017-08-07-at-13.20.35-300x161.png" alt="" width="313" height="168"/></a></p> <p>3. Create a rule.  When the message is sent to &#8230; you (choose your name) and click the <strong>To:</strong> button in the Address Book</p> <p>4.  Do the following&#8230;  Forward the message to&#8230; either choose from Address Book and click <strong>To:</strong> or enter external address in <strong>To:</strong> field</p> <p>5.  Tick <strong>Stop processing more rules</strong></p> <p>6.  Click <strong>Apply</strong></p> </div><!-- .entry-content --> </article><!-- #post-## --> </div> </div> <div class="one_third lastcolumn"> <div id="sidebar" class="sidebar"> <div class="widget-area" role="complementary"> <aside id="search-2" class="widget widget_search clear"><h2 class="widget-title">Search</h2><form role="search" method="get" class="search-form" action="https://web.archive.org/web/20200514202132/https://comm-tech.org/"> <label> <span class="screen-reader-text">Search for:</span> <input type="search" class="search-field" placeholder="Search …" value="" name="s"/> </label> <input type="submit" class="search-submit screen-reader-text" value="Search"/> </form></aside> <aside id="recent-posts-2" class="widget widget_recent_entries clear"> <h2 class="widget-title">HOW-TOs and guides</h2> <ul> <li> <a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/accessing-our-remote-support/">Accessing our remote support</a> </li> <li> <a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/setting-up-iscsi-with-tgtadm-server-and-using-open-iscsi-client/">Setting up iSCSI with tgtadm (server) and using open-iscsi (client)</a> </li> <li> <a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/set-up-openwrt-as-routed-wifi-client/">Set up OpenWRT as routed wifi client</a> </li> <li> <a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/laptop-and-portable-device-encryption-guide-gdpr/">Laptop and portable device encryption guide (GDPR)</a> </li> <li> <a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/gdpr-handbook/">GDPR Handbook &#8211; A guide to compliance for non-profits</a> </li> <li> <a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/ssh-reverse-tunnels/">Setting up ssh reverse tunnels with reversi</a> </li> <li> <a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/is-cloud-hosting-for-me-2/">Under the hood of Microsoft Office365</a> </li> <li> <a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/is-cloud-hosting-for-me/">The pros and cons of cloud hosting</a> </li> <li> <a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/monitoring-your-linux-servers/">Scripts for monitoring Linux servers</a> </li> <li> <a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/secure-passwords/">How to choose secure passwords</a> </li> </ul> </aside> </div><!-- .widget-area --> </div><!-- .sidebar --> </div> </div> </main><!-- .content-area --> </div><!-- .site-content --> </div><!-- .site --> <footer id="colophon" class="site-footer" role="contentinfo"> <div class="footer"> <div class="site-info"> <div class="hfeed site"> <div class="content site-content"> <div class="clear widget-area optional-widget-area footer-widget-area" role="complementary"> <div class="more-than-three-widgets"> <aside id="media_image-3" class="widget widget_media_image"><img width="300" height="95" src="https://web.archive.org/web/20200514202132im_/https://comm-tech.org/wp-content/uploads/2018/03/Comm-Tech_Final_BlueBG-300x95.png" class="image wp-image-761 attachment-medium size-medium" alt="Comm-Tech logo" style="max-width: 100%; height: auto;" srcset="https://web.archive.org/web/20200514202132im_/https://comm-tech.org/wp-content/uploads/2018/03/Comm-Tech_Final_BlueBG-300x95.png 300w, https://web.archive.org/web/20200514202132im_/https://comm-tech.org/wp-content/uploads/2018/03/Comm-Tech_Final_BlueBG-768x244.png 768w, https://web.archive.org/web/20200514202132im_/https://comm-tech.org/wp-content/uploads/2018/03/Comm-Tech_Final_BlueBG.png 842w" sizes="(max-width: 300px) 100vw, 300px"/></aside><aside id="text-3" class="widget widget_text"><h3 class="widget-title">Company details</h3> <div class="textwidget"><p>Registered UK charity 1096954<br/> UK company number 4419371</p> </div> </aside><aside id="text-4" class="widget widget_text"><h3 class="widget-title">Contact</h3> <div class="textwidget"><p>Click to call:<br/> <a href="https://web.archive.org/web/20200514202132/tel:+442086715555">020 8671 5555</a><br/> Click to email:<br/> <a href="https://web.archive.org/web/20200514202132/mailto:info@comm-tech.org">hello@comm-tech.org</a></p> </div> </aside><aside id="text-5" class="widget widget_text"><h3 class="widget-title">Address</h3> <div class="textwidget"><p>205 Amesbury Avenue<br/> LONDON<br/> SW2 3BJ</p> </div> </aside><aside id="tag_cloud-2" class="widget widget_tag_cloud"><h3 class="widget-title">Tags</h3><div class="tagcloud"><a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/ABOUT/assistive-technology/" class="tag-cloud-link tag-link-18 tag-link-position-1" style="font-size: 8pt;" aria-label="assistive technology (1 item)">assistive technology</a> <a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/ABOUT/backup/" class="tag-cloud-link tag-link-17 tag-link-position-2" style="font-size: 8pt;" aria-label="backup (1 item)">backup</a> <a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/ABOUT/cloud-hosted/" class="tag-cloud-link tag-link-9 tag-link-position-3" style="font-size: 11.230769230769pt;" aria-label="cloud hosted (2 items)">cloud hosted</a> <a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/ABOUT/comm-tech/" class="tag-cloud-link tag-link-21 tag-link-position-4" style="font-size: 8pt;" aria-label="comm-tech (1 item)">comm-tech</a> <a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/ABOUT/how-to/" class="tag-cloud-link tag-link-15 tag-link-position-5" style="font-size: 18.769230769231pt;" aria-label="how-to (7 items)">how-to</a> <a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/ABOUT/linux/" class="tag-cloud-link tag-link-12 tag-link-position-6" style="font-size: 16.615384615385pt;" aria-label="linux (5 items)">linux</a> <a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/ABOUT/mac-os/" class="tag-cloud-link tag-link-20 tag-link-position-7" style="font-size: 8pt;" aria-label="Mac OS (1 item)">Mac OS</a> <a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/ABOUT/microsoft/" class="tag-cloud-link tag-link-8 tag-link-position-8" style="font-size: 8pt;" aria-label="Microsoft (1 item)">Microsoft</a> <a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/ABOUT/office-programs/" class="tag-cloud-link tag-link-10 tag-link-position-9" style="font-size: 11.230769230769pt;" aria-label="office programs (2 items)">office programs</a> <a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/ABOUT/reversi/" class="tag-cloud-link tag-link-14 tag-link-position-10" style="font-size: 8pt;" aria-label="reversi (1 item)">reversi</a> <a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/ABOUT/security/" class="tag-cloud-link tag-link-16 tag-link-position-11" style="font-size: 13.384615384615pt;" aria-label="security (3 items)">security</a> <a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/ABOUT/ssh/" class="tag-cloud-link tag-link-13 tag-link-position-12" style="font-size: 8pt;" aria-label="ssh (1 item)">ssh</a> <a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/ABOUT/tech-advice/" class="tag-cloud-link tag-link-11 tag-link-position-13" style="font-size: 22pt;" aria-label="tech advice (11 items)">tech advice</a> <a href="https://web.archive.org/web/20200514202132/https://comm-tech.org/ABOUT/windows/" class="tag-cloud-link tag-link-19 tag-link-position-14" style="font-size: 13.384615384615pt;" aria-label="windows (3 items)">windows</a></div> </aside> </div> </div> </div><!-- .footerwidgets --> </div><!-- .site-info --> </div><!-- .page --> </div><!-- .footer --> </footer><!-- .site-footer --> <script type="text/javascript" src="https://web.archive.org/web/20200514202132js_/https://comm-tech.org/wp-content/themes/maisha-lite/js/skip-link-focus-fix.js?ver=20141010"></script> <script type="text/javascript" src="https://web.archive.org/web/20200514202132js_/https://comm-tech.org/wp-content/themes/maisha-lite/js/navigation.js?ver=20120206"></script> <script type="text/javascript" src="https://web.archive.org/web/20200514202132js_/https://comm-tech.org/wp-includes/js/wp-embed.min.js?ver=4.9.14"></script> </body> </html><!-- FILE ARCHIVED ON 20:21:32 May 14, 2020 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 04:52:23 Feb 26, 2025. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). --> <!-- playback timings (ms): captures_list: 0.567 exclusion.robots: 0.075 exclusion.robots.policy: 0.04 esindex: 0.01 cdx.remote: 47.929 LoadShardBlock: 173.565 (3) PetaboxLoader3.datanode: 97.509 (4) PetaboxLoader3.resolve: 158.805 (2) load_resource: 134.755 -->

Pages: 1 2 3 4 5 6 7 8 9 10