Zimbra delete e-mails from deferred queue Rumi, July 27, 2024 Problem How to delete e-mails from deferred queue sent by a particular account? Solution 1) This command will show the queue id of messages sent by “sender@domain.com”. Check it is deleting correct queue id. Run as root: # /opt/zimbra/common/sbin/postqueue -p | egrep -v ‘^ *\(|-Queue ID-‘ | awk ‘BEGIN {… Continue Reading
Limit Sending/Receipt Email Per day, Per Week or Per Month Rumi, September 12, 2023 For activating module accounting, open webui via browser http://>zimbra-host>:7780/webui/index.php choose accounting | configure. Select add, and fill with the following example Name : Rate limit perday Link to policy : Default Track : Sender:@domain . You can choose with your choice Period : Daily Message Count Limit : 5000 Message Cumulative Size Limit :… Continue Reading
Install PolicyD on Zimbra 8.5 or 8.8 Rumi, September 12, 2023September 12, 2023 Policyd have module quotas. This module can use for limit sending/receipt email. As example just allow sending/receipt email 200 emails/hours/users. If your email server attacked by spam or compromised password some users and used by spammer, the maximum email can be sent as many as 200 emails per hour. This policy will safe your… Continue Reading
Install and Configure Fail2Ban for Zimbra on CentOS 7 Rumi, September 12, 2023 Below is how to install and configure Fail2Ban for Zimbra. In this guidance, I use CentOS. Please adjust python-pip version if using another OS 1. Install pip yum install python3-pip 2. Install dependencies required by Fail2Ban pip3 install pyinotify pip3 install dnspython 3. Download and extract Fail2Ban cd /tmp/ wget… Continue Reading
Zextras Modern Theme for Zimbra web interface Rumi, September 12, 2023 First, you must register to get a download link: zextras-theme-zimbra-interface. Then, you will receive instructions for installing the new Zextras theme For Ubuntu users Download the package from your Zimbra server using the following command: wget https://link-download-from-zextras/zextras-theme-ubuntu.tgz Note: Change link-download-from-zextras with the link received in the email Extract the package you… Continue Reading
Configure Zimbra to use SendGrid as Smarthost Rumi, February 18, 2023September 12, 2023 Switch to user Zimbra su zimbra Add credentials to relay_password file: nano /opt/zimbra/conf/relay_password Add: smtp.sendgrid.net yourSendGridUsername:yourSendGridPassword Apply configuration to Zimbra postmap /opt/zimbra/conf/relay_password postmap -q smtp.sendgrid.net /opt/zimbra/conf/relay_password zmprov ms `zmhostname` zimbraMtaSmtpSaslPasswordMaps lmdb:/opt/zimbra/conf/relay_password zmprov ms `zmhostname` zimbraMtaSmtpSaslAuthEnable yes zmprov ms `zmhostname` zimbraMtaSmtpCnameOverridesServername no zmprov ms `zmhostname` zimbraMtaSmtpTlsSecurityLevel may zmprov ms `zmhostname` zimbraMtaSmtpSaslSecurityOptions… Continue Reading
Zimbra Let’s Encrypt auto-renew SSL Rumi, January 26, 2023 Required for this script to work is certbot package installed on email server and sudo rights to add script in crontab. You can add script in crontab at a weekly run like this: 0 0 * * 0 root /path_to_script. #!/bin/bash #Set domain for renew (in format openthreat.ro) DOMAIN=”” certbot… Continue Reading
Zimbra Let’s Encrypt SSL Script Rumi, December 28, 2022 #!/bin/bash -x # SSL certificate installation in Zimbra # with SSL certificate provided by Let’s Encrypt (letsencrypt.org) # Check if running as root if [ “$(id -u)” != “0” ]; then echo “This script must be run as root” 1>&2 exit 1 fi read -p ‘letsencrypt_email [mail@server]: ‘ letsencrypt_email read… Continue Reading
Remove DNSCACHE from zimbra services. Rumi, September 3, 2022 If you will get a prompt stating something like “Port conflict detected: 53 (zimbra-dnscache)” with a prompt to hit ENTER to continue, you can just hit enter and let the installation/upgrade run out. Once everything is running, you will see that the Zimbra DnsCahe service is in a stopped state…. Continue Reading
Install a Sectigo Domain Validation SSL certificate in Zimbra Rumi, December 16, 2021 We usually get the below four files from Sectigo in the certificate bundle. The file name may vary depending on the certificate type yourdomain.com.crt – main certificate AAACertificateServices.crt – Root Certificate USERTrustRSAAAACA.crt – Intermediate Certificate – 1 SectigoRSADomainValidationSecureServerCA.crt – Intermediate Certificate – 2 Step 1: We shall create two files as… Continue Reading