Posts

Showing posts with the label Zimbra Mail Server

Zimbra Mail Server Setup on Ubuntu: A Comprehensive Guide

Image
Introduction Setting up a Zimbra mail server on Ubuntu is a powerful solution for businesses and organizations requiring a robust, all-in-one email server. Zimbra offers a reliable platform for email, calendar, and collaboration tools, which are essential for seamless team communication. This guide will walk you through the entire process of setting up a Zimbra mail server on an Ubuntu system, with step-by-step instructions, examples, and expert tips to get your server running efficiently. What is Zimbra Mail Server? Zimbra is an open-source mail server and web client solution designed for both personal and business email hosting. It provides a wide range of features, including: - Email Management : Allows users to send and receive emails within an organization. - Calendar and Contacts : Integrated calendar and contact management for streamlined scheduling.  - Collaboration Tools : Offers tools such as shared folders, tasks, and documents for enhanced collaboration.  - Web-...

How to Set Up Zimbra FOSS Two-Factor Authentication

Image
Introduction Security is a top priority in any system, and email is no exception. Zimbra FOSS offers a robust open-source email solution, and setting up two-factor authentication (2FA) is a crucial step to enhance security. This article will guide you through the process of setting up 2FA on Zimbra Zimbra FOSS in a detailed and easy-to-understand manner, ensuring your email accounts are better protected against potential threats. How to Set Up Two-Factor Authentication on Zimbra FOSS Look like Buy Now The work will consist of the following parts: A patch to the login screen to support entering the 2FA code. PrivacyIDEA and PrivacyIDEA LDAP Proxy docker containers to run and maintain the 2FA toekens on your Zimbra* Zimlet for integrating in the web-ui of Zimbra (SOAP based) with extension on the server (java soap api) Install documentation All released under GNU GPLv2. Conclusion Implementing two-factor authentication on Zimbra FOSS not only helps protect your emai...

Sharing Tips and Tricks with Zimbra

Introduction Mastering tips and tricks while working with Zimbra can help you maximize the platform's email features. This article compiles useful tips and tricks in a PDF format, making it easy for you to access and apply them in your daily work. Let's explore and enhance your productivity with Zimbra through the practical suggestions shared in this article. Zimbra guilde to see how to use? Blog zimbra share Top 15 Tips & Tricks - Happy new year. Sharing Tips and Tricks with Zimbra Download the guide now to see how to (with easy-to-follow steps and video demos): Search in Zimbra Import Into and Export From Zimbra Change Your Zimbra Preferences Change Your Zimbra Theme Set Zimbra Email and SMS (text) Reminders Enable Mandatory Spellcheck Sort Email Enable Two-Factor Authentication (2FA) Create an Appointment with the Mini Calendar Create an Email Alias, Distribution List or Contact Group Launch an Email in a Separate Window Turn on Zimbra’s Activity Stream ...

Zimbra Client host rejected Access denied fixed

Introduction While using Zimbra , you might encounter the "Client host rejected: Access denied" error, which can disrupt your workflow. This is a common issue that can be resolved easily if you understand the causes and the solutions. This article provides a detailed guide on how to fix this error on Zimbra, helping you quickly resume your work smoothly. Zimbra client host rejected Access denied error log Dec 19 01:21:28 mail postfix/amavisd/smtpd[5106]: NOQUEUE: reject: CONNECT from unknown[192.168.1.113]: 554 5.7.1 <unknown[192.168.1.113]>: Client host rejected: Access denied; proto=SMTP Dec 19 01:21:28 mail postfix/amavisd/smtpd[5106]: lost connection after CONNECT from unknown[192.168.1.113] Dec 19 01:21:28 mail postfix/amavisd/smtpd[5106]: disconnect from unknown[192.168.1.113] Allow the network " 192.168.1.0/24 " of client host for zimbraMtaMyNetworks attribute [zimbra@mail ~]$ zmprov ms `zmhostname` zimbraMtaMyNetworks "127.0.0.0/8 192.1...

Zimbra ERROR zclient IO ERROR: A Comprehensive Guide

Introduction Discover solutions for the common Zimbra ERROR zclient IO ERROR in this detailed guide. From basic troubleshooting to advanced fixes, ensure your email server runs smoothly. Zimbra is a popular open-source email server solution used by many organizations worldwide. However, like any software, it can encounter issues that disrupt its functionality. One such common issue is the " Zimbra ERROR zclient IO ERROR."  This error can cause significant disruptions in email services, impacting communication and productivity. In this comprehensive guide, we'll explore the causes of this error and provide solutions ranging from basic troubleshooting to advanced fixes. Understanding the Zimbra ERROR zclient IO ERROR What is the Zimbra ERROR zclient IO ERROR? The "Zimbra ERROR zclient IO ERROR" is a connectivity issue between the Zimbra client and the server. This error typically indicates problems with network connections, server configurations, or client settin...

Zimbra blacklist email based via subject

In this tutorial, I will configure blacklist email based via subject. The recently, I receive an email with the subject "new girls beautiful photo" which contains spam and fake link. how to Zimbra blacklist email with the subject this. Create file chandu.cf in SpamAssassin   folder as root vi /opt/zimbra/data/spamassassin/rules/chandu.cf The content as below header     SPAM_BANNED     Subject =~ / new girls beautiful photo /i describe   SPAM_BANNED     Subject contains me new photo score      SPAM_BANNED     40.0 Save and give owner user and group zimbra chown zimbra:zimbra /opt/zimbra/data/spamassassin/rules/chandu.cf Restarting zmamavisdctl  service su - zimbra -c "zmamavisdctl restart" Have a good nice!

Zimbra Error 450 4.7.1 sender reject

Image
In this tutorial, How to solve problem "zimbra Error 450 4.7.1 sender reject" on Zimbra MTA. Zimbra Error 450 4.7.1 sender reject as below Feb  10 16:16:33 sd-15xxx postfix/smtpd[1832]: NOQUEUE: reject: RCPT from     unknown[x.x.x.x]: 450 4.7.1 Client host rejected: cannot find your hostname,     [x.x.x.x]; from=<someone@sender.com> to=<someone_email@mydomain.com>     proto=ESMTP helo=<smtp_sender.com> You can check step by step to solve problem as error above Step 1: Check smtpd_sender_restrictions on zimbra MTA. [zimbra@your_mta ~]$ postconf | grep "smtpd_sender_restrictions" Checking reject_unknown_sender_domain,reject_unknown_client_hostname,reject_invalid_helo_hostname is correct  your environment Step 2: Check server port 10031 on zimbra cbpolicy.   tailf /opt/zimbra/log/cbpolicy.log To check the database have lock? sometime due to cbpolicy. You can solve problem anything else? share your ...

How to check accounts that are not active in zimbra

In this tutorial, How to check accounts that are not active in zimbra. You can check the vaule zimbraLastLogonTimestamp by account in Zimbra . Zimbra latest version here Script from Zimbra blog #!/bin/bash echo "Username Total Quota Usage Server Last Login Time" zmaccts | grep closed | grep @ | awk '{ print $1 }' | while read ACCOUNT do   QUOTA_TOTAL=`zmprov ga ${ACCOUNT} | grep "zimbraMailQuota" | cut -d ":" -f2`   QUOTA_USAGE=`zmmailbox -z -m ${ACCOUNT} gms`   HOSTED_ON=`zmprov ga ${ACCOUNT} | grep zimbraMailHost | awk -F: '{ print $2 }'`   LAST_ON=`zmprov ga ${ACCOUNT} | grep zimbraLastLogonTimestamp: | awk -F: '{ print $2 }' `   echo "${ACCOUNT} ${QUOTA_TOTAL} ${QUOTA_USAGE} ${HOSTED_ON} ${LAST_ON} " done Or check the command below zmprov ga account | grep zimbraLastLogonTimeStamp You can check other methods? The comment below. Thank you!

Zimbra open source iptables Configuration

Introduction Learn how to configure iptables for your Zimbra open source server. This guide provides detailed instructions to ensure your Zimbra services are secure and optimized. Securing your Zimbra open source mail server is a crucial step in maintaining a reliable and secure email system. One of the most effective ways to secure your Zimbra server is by configuring iptables, a powerful firewall tool in Linux. Properly configured iptables rules ensure that only necessary services are accessible, reducing the attack surface and enhancing overall security. In this comprehensive guide, we will walk you through the essential iptables configurations needed to protect your Zimbra server. We will cover specific rules for SMTP, HTTP, POP3, IMAP, LDAP, HTTPS, and more. This tutorial is tailored for Zimbra open source users, ensuring that your server remains secure while providing the necessary services to your users. Why is Iptables Important for Zimbra? Before diving into the configuration...

zimbra notify password expired by bash script

Image
In this tutorial, How to remind USER notify passowrd expired on zimbra . Bash script have policy 120 days password expired. zimbra notify password expired by bash script To create zimbra_notify_change _pass.sh file to notify password expired for all zimbra accounts. [root@mail ~]# cat zimbra_notify_change_pass.sh The content zimbra notify password expired as below #!/bin/bash # Bash scriptzimbra password expiry email notification. # To be performed as daily cronjob run as zimbra USER. ######################### Set environment ######################### #Todays date, in seconds: DATE=$(date +%s) # Set some vars: # First notification in days, then last warning: FIRST="7" LAST="3" # pass expiry in days POLICY="120" # Sent from: FROM="admin@mail.huuphan.com" # Get all _USERs - it should run once only. _USERS=$(/opt/zimbra/bin/zmprov -l gaa | egrep -v "spam|ham|virus-quarantine|galsync"); # zimbra password variable ...

Zimbra Enable PTR/Reverse DNS lookup Incomming Email

A reverse DNS lookup or reverse DNS resolution (rDNS) is the querying of the Domain Name System (DNS) to determine the domain name associated with an IP address – the reverse of the usual "forward" DNS lookup of an IP address from a domain name. Zimbra tips, How to Enable PTR/Reverse DNS lookup Incomming Email. More information from Wikipedia . Step 1: Enable zimbraMtaRestriction as command below su - zimbra zmprov mcf +zimbraMtaRestriction "reject_unknown_client_hostname" Step 2: zimbra postfix reload postfix reload Conclusion Thought the article, you can use "Zimbra Enable PTR/Reverse DNS lookup Incomming Email" as above . I hope will this your helpful.

Lock and Unlock zimbra account from command line

Image
How to Lock and Unlock zimbra account from command line. some account sending email spam, you are administrator to need lock account from command line. To login your Mailbox system. To perform some command below to lock and unlock zimbra account. For example, I will lock and unlock account huupv02@mail.huuphan.com . The command line as below running su - zimbra . Now, let's start! Lock and Unlock zimbra account Step 1: Checking status account huupv02@mail.huuphan.com as below: $ zmprov ga huupv02mail.huuphan.com | grep zimbraAccountStatus The display as below: Another command to check status account with zmaccts as below: Step 2: To Lock zimbra account huupv02@mail.huuphan.com $ zmprov ma huupv02@mail.huuphan.com zimbraAccountStatus locked The display as picture below: To check account status after locked Step 3: To Unlock zimbra account huupv02@mail.huuphan.com $ zmprov ma huupv02@mail.huuphan.com zimbraAccountStatus active The display as picture belo...

How to Configure Postfix only allow whitelisted Recipient Domain

Image
Introduction Learn how to configure Postfix to only allow emails to be sent to whitelisted recipient domains. This step-by-step guide includes user data for testing and minimizes the risk of sending emails to unwanted recipients. In today's digital world, securing your email server is crucial. One effective method to enhance email security is by configuring Postfix to only allow whitelisted recipient domains. This guide will walk you through the process, providing clear examples and detailed steps to help you set up and test this configuration in your environment. In this tutorial, How to Configure " Postfix only allow whitelisted Recipient Domain ". We test environment with user data. To minimize the risk of sending to unwanted email recipients. Configuring Postfix to Allow Only Whitelisted Recipient Domains Step 1: Modify the main.cf File To begin, you need to modify the Postfix main configuration file ( main.cf ) to specify the recipient restrictions. Open the m...

How to List top sender address emails in zimbra from the Command Line

Introduction Learn how to list the top sender email addresses in Zimbra using simple command-line tools. This comprehensive guide provides step-by-step instructions, explanations of the commands used, and helpful tips to optimize your Zimbra email server management. Zimbra is a widely-used email platform, offering robust features for managing emails within organizations of all sizes. Understanding who the top email senders are within your Zimbra system can be crucial for various reasons, such as monitoring email traffic, identifying potential spam sources, and optimizing your email server's performance. In this guide, we will walk you through the process of listing the top sender email addresses in Zimbra using command-line tools. By the end of this article, you'll have a clear understanding of the commands needed to identify the top senders and how to interpret the results to improve your email management practices. Step-by-Step Guide to Listing Top Sender Email Addresses Ste...

How to zimbra add account to distribution list

Image
In this tutorial, How do I use zimbra add account to distribution list by bash script. I’m written bash script for add account to distribution list. You may reading link as below: zimbra some service are not running How to install and configure zimbra multi server How to Restrict Sending to Distribution list in zimbra mail Zimbra add account to distribution list The syntax, create distribution lists command line from root account su - zimbra -c "zmprov adlm distribution_name@example.com huupv@example.com" My bash script for zimbra add account to distribution list as below: #!/bin/bash #Author: HuuPV #Add member to DL echo -n "Input distribute name, pls (Ex: dl01@mail.huuphan.local): " read DL echo -n "Input account add to distribute name, pls (Ex: huupv@mail.huuphan.local): " read AC Check_Member_DL=$(su - zimbra -c "zmprov gdl $DL | grep '\b$AC'") if [ $? == 0 ] then        echo "$AC membe...

How to zimbra auto create distribution lists

Image
In this tutorial, How to zimbra auto create distribution list by bash script. I’m written bash script for create distribution list. Step 1: To check distribution lists name exists or not! Step 2: To create distribution lists from file. Step 3: Running zimbra auto create distribution lists bash script from root account. You may reading link as below: zimbra some service are not running How to install and configure zimbra multi server How to Restrict Sending to Distribution list in zimbra mail zimbra auto create distribution lists The syntax create distribution lists command line from root account su - zimbra -c "zmprov cdl distribution_name@example.com" To create distribution lists from file. For example, I’m created list_distribute.txt in /tmp folder as below: Zimbra auto create distribution lists full script. Bash script for distribution lists name as below: [root@mail opt]# cat zimbra_Distribute.sh The content zimbra_Distribute.sh as below: #!/bin/bash # Auth...

zimbra 451 4.3.5 Server configuration problem [solved problem]

You getting this error " zimbra 451 4.3.5 Server configuration problem" in zimbra.log. How to this is solved problem. You may reading link as below: zimbra some service are not running How to install and configure zimbra multi server How to Restrict Sending to Distribution list in zimbra mail zimbra 451 4.3.5 Server configuration problem The log error as below: Jan 22 11:31:36 mta postfix/smtpd[9984]: NOQUEUE: reject: RCPT from unknown[198.54.114.232]: 451 4.3.5 Server configuration problem; from=<pvhuu90@gmail.com> to=<huupv@devopsskills.info> proto=ESMTP helo=<HuuPV> How I do it.... The first To increase RAM, CPU for your zimbra system. For example, if your zimbra system  size medium and larger. To increase >= 16GB RAM and >= 8 CPU for zimbra MTA system. The second To configure cbpolicyd.conf.in file with parameter min_servers, min_spare_servers, max_spare_servers, max_servers, max_requests the appropriate for your zimbra system configu...

zimbra create multiple accounts csv file

I will writing the script for create multiple accounts from csv file. To create Accounts.csv file To use bash script create multiple accounts in zimbra To execute zimbra_account.sh bash script I'm created Accounts.csv file # cat Accounts.csv  The content Accounts.csv file as below: huupv1@mail.huuphan.local,123456789,Huu1,Phan Van,Phan Van Huu1 (IT),mail.huuphan.local huupv2@mail.huuphan.local,123456789,Huu2,Phan Van,Phan Van Huu2 (IT),mail.huuphan.local zimbra create multiple accounts csv file full script zimbra create multiple accounts with zimbra_account.sh name #!/bin/bash # File Accounts.csv as below: # huupv1@mail.huuphan.local,123456789,Huu1,Phan Van,Phan Van Huu1 (IT),mail.huuphan.local # huupv2@mail.huuphan.local,123456789,Huu2,Phan Van,Phan Van Huu2 (IT),mail.huuphan.local DATE=$(date) OLDIFS=$IFS IFS=',' File_Name="/opt/Account/Accounts.csv" Out_log='/tmp/outfile.log'         echo "$DATE - To create account Email" | te...

zimbra create multiple accounts

Image
# In this tutorial, we will cover how to create multiple accounts in Zimbra using a file containing a list of commands for creating email accounts. To automate the account creation process, we will use a script.  For this purpose, we will create a commands.zmp file that contains the necessary commands for creating the accounts." How to do it....? Step 1: To create commands.zmp file with the content as top The content commands.zmp file you changed the appropriate attributes of your account Account: huupv1@mail.huuphan.local Password: 123456789 SN: huupv1 displayName: 'Huu1, Phan Van (IT)' zimbraMailHost: mail.huuphan.local you can ref to zmprov command create accounts Step 2: To use zimbra account su - zimbra Step 3: To use zmprov command to create multiple accounts zmprov -f commands.zmp The conclusion zimbra create multiple accounts atop very simple. However, I recommend use script to create multiple accounts for file .csv. I will writing the scri...