Skip to main content

Posts

Showing posts from 2018

script for amc expiry email notification .

This Script will send the reminder email 90 Days before the AMC Expires . The Number of Days you can change by changing the NU Value . the email@domain.com should be replaced with your email id. The send-mail Path can be replaced by the send-mail path of the server. There is need to create a Data file which will contain the Information for AMC of the Equipment. The input.txt format is shown below . #!/bin/bash PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin #script for amc expiry email notification. NU=" 90 " FROM="admin@domain.com" #value1=$(echo $line| awk -F\ '{print $1}' input.txt) #value2=$(echo $line| awk -F\ '{print $2}' input.txt) #value3=$(echo $line| awk -F\ '{print $3}' input.txt) DATEN=$(date +%s) IFS="|" while read -r value1 value2 value3 do echo "value1 is " $value1 echo  "value 2 is " $value2 echo  "value 3 is " $value3 dat2=$(date -d "$value

How to Create a Delegated Admin Account in Zimbra 8.x

How to Create a Delegated Admin Account in Zimbra 8.x. Create a File as shown below with the contents .  Replace the domain.com and helpdesk Email id with your domain and helpdesk (Delegated Admin ) Name. #vi admindelegate #!/bin/bash # $1 domain.com # $2 helpdesk zmprov ma $2 zimbraIsDelegatedAdminAccount TRUE zmprov ma $2 zimbraAdminConsoleUIComponents cartBlancheUI zimbraAdminConsoleUIComponents domainListView zimbraAdminConsoleUIComponents accountListView zimbraAdminConsoleUIComponents DLListView zmprov ma $2 zimbraDomainAdminMaxMailQuota 0 zmprov grantRight domain $1 usr $2 +createAccount zmprov grantRight domain $1 usr $2 +createAlias zmprov grantRight domain $1 usr $2 +createCalendarResource zmprov grantRight domain $1 usr $2 +createDistributionList zmprov grantRight domain $1 usr $2 +deleteAlias zmprov grantRight domain $1 usr $2 +listDomain zmprov grantRight domain $1 usr $2 +domainAdminRights zmprov grantRight domain $1 usr $2 +configureQuota zmprov g

SCRIPT TO SHOW INVALID LOGIN ATTEMPTS IN RED COLOR AND VALID LOGIN IN GREEN COLOR FOR ZIMBRA 8.x

Create a File by using #vi /usr/bin/watchaudit with the following contents  tail -f /opt/zimbra/log/audit.log | awk '   /INFO/ {print "\033[32m" $0 "\033[39m"}   /WARN/ {print "\033[31m" $0 "\033[39m"} ' Close and Save the File. Run the Watchaudit File in SSH Console . #chmod +x /usr/bin/watchaudit #/usr/bin/watchaudit