Posts

Showing posts from March, 2021

How to Change hostname on zimbra

Step: 1 To stop zimbra all services. #su zimbra #zmcontrol stop Step: 2 To execute the below commands with new hostname #/opt/zimbra/libexec/zmsetservername -n newhostname (mail.server.lan) Step: 3 Then start the zimbra service. #zmcontrol start Ref:  https://dilliganesh.wordpress.com/2018/11/14/how-to-change-hostname-on-zimbra/

DRBD Installation & Configuration in UBUNTU

We will start our DRBD installation from where the Heartbeat finished.  We can install it at individual level. For now, a quick review of what we have: Two (2) nodes of UBUNTU Both has different static IP address (192.168.1.151 192.168.1.152) Different Hostnames (node1.hatest.com, node2.hatest.com) Installed Heartbeat with alias IP (192.168.1.150) Both nodes have Secondary Hard Disks with space of 15 GB.  (Specially required for DRBD. We can also use single unused partition to install & configure DRBD) Let’s start. First install drbd package on both nodes. root@node1:/home/sharif # apt install drbd8-utils  After installation, we can check the DRBD status. We will notice as below: root@node1:/home/sharif# /etc/init.d/drbd status ● drbd.service - LSB: Control drbd resources.   Loaded: loaded (/etc/init.d/drbd; bad; vendor preset: enabled)     Active: inactive (dead)       Docs: man:systemd-sysv-generator(8) Restart the DRBD servi...

Heartbeat Installation & Configuration in UBUNTU

Setup Hosts & HOSTNAME file for both nodes as below: (Node1) root@node1:/home/sharif# cat /etc/hostname  node1.hatest.com root@node1:/home/sharif# cat /etc/hosts 192.168.1.151 node1.hatest.com node1 192.168.1.152 node2.hatest.com node2 (Node2) root@node2:/home/sharif# cat /etc/hostname  node1.hatest.com root@node2:/home/sharif# cat /etc/hosts 192.168.1.152 node2.hatest.com node2 192.168.1.151 node1.hatest.com node1 Install heartbeat on both nodes: root@node1:/home/sharif# apt install heartbeat Edit below mentioned files as below: root@node1:/etc/ha.d# vim ha.cf [Create and edit ha.cf ] keepalive 2 warntime 5 deadtime 15 initdead 90 udpport 694 auto_failback on ucast ens33 192.168.1.152 logfile /var/log/ha-log node node1.hatest.com node2.hatest.com root@node1:/etc/ha.d# vim authkeys auth 2 2 crc root@node1:/etc/ha.d# chmod 600 authkeys [Same for both nodes] root@node1:/etc/ha.d# vim haresources node1.hatest.com IPaddr::192.168.1.150/24/ens33:0 Now, we will...

Enable older version of TLS in Zimbra

su zimbra zmprov mcf +zimbraReverseProxySSLProtocols TLSv1 zmprov mcf +zimbraReverseProxySSLProtocols TLSv1.2 zmproxyctl restart

How to Redirect HTTP to HTTPs Zimbra 8.8.*

To do this, you can run the following: zmprov ms `zmhostname` zimbraReverseProxyMailMode redirect This will redirect your URLs to the zimbra hostname based HTTPs. Now, restart the proxy services: su - zimbra zmproxyctl restart Hope this helps. Ref: https://mellowhost.com/blog/how-to-redirect-http-to-https-zimbra-8-8.html

How to deliver messages with duplicate ids || Mail duplicate || Reject

One of our client was facing problem that one of their internal user sends/forward mail to another internal user but receiver does not receive the mail. zimbra.log shows mail delivered to receivers mailbox. mailbox.log shows receiver's mailbox rejected the mail by detecting it as a duplicate email. We could do following things: check current cache size of zimbra: $ zmprov gcf zimbraMessageIdDedupeCacheSize zimbraMessageIdDedupeCacheSize: 3000  Option-1 Increase the cache size zmprov mcf zimbraMessageIdDedupeCacheSize 5000 zmmailboxdctl restart Option-2 disable the Deduplication cache size zmprov mcf zimbraMessageIdDedupeCacheSize 0 zmmailboxdctl restart Ref: https://wiki.zimbra.com/wiki/How_to_deliver_messages_with_duplicate_ids

Unifi Configuration Tutorial

Image
Basic Connectivity:   Router (Broadband/mikrotik |dhcp enabled) >>> Unifi + LAPTOP Unifi (Powered ON) [POE port] >>>> LAPTOP [LAN port] Step1: Open Unifi controller in the browser. Step2: Open a site in the name of that client and keep the tab open. Step3: Open unifi discovery tool. Step4: Any newly connected (which is still unadopted) unifi device will appear in this tool. Note: In discovery tool,we will get three options to use. Primarily we will use manage and input url ( https://unifi.domain.com:8080/inform ) and apply. Step5: We will notice the communication between discovery tool and unifi controller in the controller.   . Step6: We will notice the communication between discovery tool and unifi controller in the controller.  Step7: We will notice that the unifi device is appreared in the controller (In our created site) and waiting for our adoption. Step8: We will adopt the device in the controller. Then the device will disappear fro...

Cambium cnPilot E400/E410/E500 Configuration Tutorial

Image
Basic Connectivity:   Router (Broadband/mikrotik |dhcp enabled) >>> E400/E410/E500 + LAPTOP Cambium (Powered ON) [POE port] >>>> LAPTOP [LAN port] Step 1: Open Cambium controller in the browser. Step 2: After entering in to the site click on the Onboard Device option from Home Tab of Left Panel. Step 3: In the Onboard Option, we will get Claim Device option to adopt a Cambium AP. Step 4: Now we will move to the Cambium AP configuration Part. Below are credentials of default login access of cnpilot E400/E410/E500/E410/E500. IP:192.168.0.1 Command Line Access: Username: admin Telnet: Disabled by default Password: admin SSH: Enabled by default (on standard port: 22) ***We can also use dhcp IP to login to the cnpilot E400/E410/E500. We will get login page. Step 5: We can see several TAB on left panel. On the DashBoard Tab, we will get some overall information. Some are useful for the configuration; some are useful for troubleshoo...

How To Disable Disclaimer When Reply and Forward Email

# Create amavis custom vi /opt/zimbra/conf/amavisd-reply-fw.conf Fill with the following line package Amavis::Custom; use strict; sub new {   my($class,$conn,$msginfo) = @_;   my($self) = bless {}, $class;   my($subj) = $msginfo->get_header_field_body('subject');   my($refs) = $msginfo->get_header_field_body('references');   my($inre) = $msginfo->get_header_field_body('in-reply-to');   if ($msginfo->originating &&       (defined $refs || defined $inre || $subj =~ /^\s*re:/i)) {     Amavis::load_policy_bank('OUR-REPLY');   }   $self; } 1;  # insure a defined return # Save and edit amavisd.conf.in cp /opt/zimbra/conf/amavisd.conf.in /opt/zimbra/conf/amavisd.conf.in-backup vi /opt/zimbra/conf/amavisd.conf.in Add the following line before $policy_bank{‘ORIGINATING_POST’}. $policy_bank{'OUR-REPLY'} = {   allow_disclaimers => 0, }; include_config_files('/opt/zimbra/conf/amavisd-reply-fw.conf'); #...

Pacemaker in Ubuntu 16.04

Prerequisite Two nodes of Ubuntu 16.04 with below initial configuration.  /etc/hostname /etc/hosts IP Node1 node1.hatest.com 192.168.1.191 node1.hatest.com node1 192.168.1.191 Node2 Node2.hatest.com 192.168.1.192 node2.hatest.com node2 192.168.1.192 Alias 192.168.1.190 Preparations Before proceed to the main installation phase please check below issues, that may help us during the whole process.  You may change the APT sources from bd to us  apt-get update  apt-get upgrade  Enable root login Installation:  For an instant keep on a ping on the alias IP (192.168.1.190) from another host of the LAN. After the installation, we will check whether we are getting response from it or not…!!!!!!!!!!    We can sync time on both nodes by below steps. root@node1:/home/sharif# dpkg-reconfigure tzdata  [Follow next easy steps to get below output on both nodes] Current default time zone: 'Asia/Dhaka' Local time is now:      Tue Jun...