Posts

Showing posts with the label Zimbra Mail Server

Zimbra FOSS Two-Factor Authentication

Image
Two Factor Authentication for Zimbra Open Source edition. 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. More details zimbra FOSS Two-Factor Authentication.

Zimbra share Tips & Tricks pdf

Zimbra guilde to see how to use? Blog zimbra share Top 15 Tips & Tricks - Happy new year. 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 Switch from Conversation View to Message View Share Your Zimbra Calendar Outside Your Organization Share in Zimbra Link download zimbra Tips & Tricks pdf https://bit.ly/2Mj76xx Source: https://bit.ly/2FyE5NG

Zimbra Client host rejected Access denied

In this tutorial, How to solved problem "Zimbra Client host rejected Access denied". 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.168.1.0/24 [::1]/128 [fe80::]/64" The change " smtpd_client_restrictions " and " smtpd_relay_restrictions " with content below [zimbra@mail ~]$ /opt/zimbra/postfix/conf/master.cf.in The edit master.cf.in file with content below %%uncomme

Zimbra ERROR zclient IO ERROR

When you get this error, you can not execute any Zimbra zmprov commands? in this tutorial, How do i fix error as below [] INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused [] INFO: Retrying request ERROR: zclient.IO_ERROR (invoke Connection refused, server: localhost) (cause: java.net.ConnectException Connection refused) The causes this error? Zimbra zmprov is not configure to get results from ldap. you need set " zimbra_zmprov_default_to_ldap " to TRUE To checking setting using by zmlocalconfig command $ zmlocalconfig | grep zmprov If set to false then reconfigure it to true flag as below $ zmlocalconfig -e zimbra_zmprov_default_to_ldap=true Recheck the settings: $ zmlocalconfig |grep zmprov

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=<[email protected]> to=<[email protected]>     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 error Zimbra Error 450 4.7.1 sender rej

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 memo

In this tutorial, I written Zimbra open source Iptables memo. The setting content is diffrent depending on your environment. Iptables for zimbra SMTP iptables -I INPUT -p tcp --dport 25 -j ACCEPT HTTP iptables -I INPUT -p tcp --dport 80 -j ACCEPT POP3 iptables -I INPUT -p tcp --dport 110 -j ACCEPT IMAP iptables -I INPUT -p tcp --dport 143 -j ACCEPT LDAP iptables -I INPUT -p tcp --dport 389 -j ACCEPT HTTPS iptables -I INPUT -p tcp --dport 443 -j ACCEPT SMTPS iptables -I INPUT -p tcp --dport 465 -j ACCEPT IMAPS iptables -I INPUT -p tcp --dport 993 -j ACCEPT POP3S iptables -I INPUT -p tcp --dport 995 -j ACCEPT VMSVC iptables -I INPUT -p tcp --dport 7025 -j ACCEPT Port for ZCS Web Administration iptables -I INPUT -p tcp --dport 7071 -j ACCEPT To save and restart Iptables /etc/init.d/iptables save /etc/init.d/iptables restart

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="[email protected]" # 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 [email protected] . The command line as below running su - zimbra . Now, let's start! Lock and Unlock zimbra account Step 1: Checking status account [email protected] 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 [email protected] $ zmprov ma [email protected] zimbraAccountStatus locked The display as picture below: To check account status after locked Step 3: To Unlock zimbra account [email protected] $ zmprov ma [email protected] zimbraAccountStatus active The display as picture belo

Postfix only allow whitelisted Recipient Domain

Image
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. Step 1: Add line into main.cf file as below smtpd_recipient_restrictions = check_recipient_access hash:/etc/postfix/recipient_domains, reject Note: Warring /etc/postfix/recipient_domains, reject , Allow receive email in recipient_domain, and REJECT All domain not in whitelisted domain. Step 2: To create recipient domain is the whitelist file mycompany.com OK mail.huuphan.com OK Note: only two domain mycompany.com and mail.huuphan.com receive mail Step 3: To generate hash file: $ sudo postmap /etc/postfix/recipient_domains Step 4: To restart postfix service $ sudo /etc/init.d/postfix restart Now to try sending an email to a another domain not in whitelist. You will find error something like that as below: NOQUEUE: reject: RCPT from …: 554 5.7.1 <[email protected]&g

List top sender address emails in zimbra

How to List top sender address emails in zimbra from command line. From MTA zimbra I will run command to list 6 sender address email Zimbra . The command as below: $ cat /var/log/zimbra.log | awk -F 'from=<' '{print $2}' | awk -F'>' '{print $1}' | sed '/^$/d' | sort | uniq -c | sort -nk1 -r | sed -n '1,6p' Note: sed '/^$/d' : To delete only blank lines sed -n '1,6p' : To print 1 line to 6 line. awk -F 'from=<' '{print $2}' | awk -F'>' '{print $1}' : To print the email of sender address Conclusion Thought the article, To help you list top sender address emails in zimbra. if you any question then command below

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 [email protected] [email protected]" 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: [email protected]): " read DL echo -n "Input account add to distribute name, pls (Ex: [email protected]): " 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 [email protected]" 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=<[email protected]> to=<[email protected]> 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: [email protected],123456789,Huu1,Phan Van,Phan Van Huu1 (IT),mail.huuphan.local [email protected],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: # [email protected],123456789,Huu1,Phan Van,Phan Van Huu1 (IT),mail.huuphan.local # [email protected],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: [email protected] 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

How to uninstall zimbra

Image
In this tutorial, How to uninstall zimbra on centos or ubuntu. To uninstall zimbra Collaboration Suite as below: To use zmcontrol stop  To uninstall zimbra To remove zimbra folder  To reboot server  To check zimbra services Step 1 : To stop zimbra use zmcontrol stop Step 2 : To run script uninstall zimbra on server Step 3 : To remove zimbra folder Step 4 : To reboot server

How to install zimbra 8.8 on centos 6 step by step

Image
In this tutorial, How to install zimbra 8.8 on centos 6 step by step. To install zimbra mail server on single-server. Link to below you maybe likes: How to install and configure zimbra multi server zimbra some services are not running [Solve problem] How to Restrict Sending to Distribution list in zimbra mail Zimbra 8.6 restrict to user sending mail to certain domain To prepare for zimbra 8.8 To configrue ip address static. To configrue /etc/resolv.conf file. To configrue /etc/sysconfig/network file. To configure /etc/hosts file. To install the dependency. # yum -y update # yum -y install perl perl-core wget screen w3m elinks openssh-clients openssh-server unzip nmap sed nc sysstat libaio rsync telnet aspell ntp openssh-clients Disable service sendmail, postfix or SELINUX. # sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/sysconfig/selinux # setenforce 0 # service iptables stop # service ip6tables stop # chkconfig iptables off # chkcon