SlideShare a Scribd company logo
4
Most read
5
Most read
6
Most read
Zimbra Troubleshooting – Port 10024: Connection refused
i | P a g e
Table of Contents
Overview.......................................................................................................................................................1
Login – EMail Server..................................................................................................................................1
E-Mail Server – Log Directory ...................................................................................................................1
E-Mail Server – Filter Error........................................................................................................................1
E-Mail Server – Zimbra Queue Statistics...................................................................................................3
E-Mail Server – Postfix Queue ..................................................................................................................3
Error Message – Log Snippet ................................................................................................................3
Error Message – Cause..........................................................................................................................4
Zmamavisdctl Service – Resolution #1......................................................................................................4
ClamAV Package – Resolution #2.............................................................................................................4
ClamAV Package – Upgrade......................................................................................................................5
Stale amavisd.pid – Resolution #3 ...........................................................................................................5
Stale amavisd.pid – Remove PID..............................................................................................................6
Stale amavisd.pid – Updated PID.............................................................................................................6
Stale amavisd.pid – Validate zmqstat ......................................................................................................7
Zimbra Troubleshooting – Port 10024: Connection refused
1 | P a g e
Overview
Sometimes there may be a case, wherein all the emails sent to a domain will be deferred from Zimbra
mail service.
In this guide we will check a possible “amavisd” could be failed / stopped. In order to resume deferment
of emails sent from this domain service has to be restarted.
Also in some scenario clamav (clam Anti-virus) tool is not updated with latest version, hence signatures
will not be downloaded and clamav service seize to function.
Another scenario amavisd.pid becomes stale during automatic restart and service doesn’t restart and PID
file is not updated due to this.
We will walk through the process of identifying and resolve such issue.
Login – EMail Server
Login to email server and switch to Zimbra account.
sudo su - zimbra
E-Mail Server – Log Directory
After logging on to the server, switch to Zimbra Log Folder.
By default, Zimbra log folder is configured to “/var/log” this is mail administrator configurable parameter
during installation.
cd /var/log/
E-Mail Server – Filter Error
After switching to Zimbra Log Folder, filter for text “127.0.0.1:10024”, run the command;
cat zimbra.log | grep m 1 "10024"
or
cat zimbra.log | grep -m 1 "127.0.0.1[127.0.0.1]:10024"
Zimbra Troubleshooting – Port 10024: Connection refused
2 | P a g e
Zimbra Troubleshooting – Port 10024: Connection refused
3 | P a g e
You can also check the port status by telnet command; to know the status of port run the command;
telnet 127.0.0.1 10024
E-Mail Server – Zimbra Queue Statistics
To know the current status Zimbra mail service queue statistics, run the command;
sudo ~/libexec/zmqstat
E-Mail Server – Postfix Queue
To know the current postfix queue status, run the command;
/opt/zimbra/postfix/sbin/postqueue -p
Error Message – Log Snippet
postfix/smtp[14955]: connect to 127.0.0.1[127.0.0.1] 10024: Connection refused
Zimbra Troubleshooting – Port 10024: Connection refused
4 | P a g e
Error Message – Cause
amavisd service has abruptly stopped, check current “amavisd” service status.
After you have logged, switch to Zimbra application user, switch to Zimbra user and run command;
zmamavisdctl status
Alternatively, you could also run zmcontrol status, to know the status of all Zimbra related services.
Zmamavisdctl Service – Resolution #1
Since “zmamavisdctl” is not running, we need to restart the service “amavisd” to restart service, run the
command;
sudo su - zimbra
postfix stop
zmamavisdctl stop
zmamavisdctl start
postfix start
ClamAV Package – Resolution #2
In some scenario, clamav (antivirus) package has to be upgraded to newer version and calmav service will
not start till you upgrade package manually, to identify the current version and possible version upgrade
requirement, run the command;
cd /opt/zimbra/log
ll *.log
cat freshclam.log
Zimbra Troubleshooting – Port 10024: Connection refused
5 | P a g e
ClamAV Package – Upgrade
Since we already know that the clamav version deployed on the server, we will List latest version of
package availability and upgrade it; to upgrade the package run the command;
yum list clamav && yum upgrade clamav -q
After package upgrade restart the Zimbra services run command; zmcontrol restart
Stale amavisd.pid – Resolution #3
If resolution #1 and #2 doesn’t resolve the issue; amavisd.pid could be in a stale state and doesn’t restart
automatically as needed, hence we will remove the amavisd.pid file and restart service(s), before you
remove the process ID (pid file) check status of Process ID file.
cd /var/zimbra/log/
ll *.pid
Zimbra Troubleshooting – Port 10024: Connection refused
6 | P a g e
Stale amavisd.pid – Remove PID
Now that we have found that amavisd.pid has not been updated, whereas other services pid files have
updated, so we consider that as stale state of a process and we will remove the file, to remove the file run
the command;
rm amavisd.pid
After deleting the file restart the Zimbra services run command; zmcontrol restart
Stale amavisd.pid – Updated PID
After deleting the file restart the Zimbra services run command; zmcontrol restart. Once the service is
restarted, amavisd.pid file gets updated, you can again list the PID’s and check.
Zimbra Troubleshooting – Port 10024: Connection refused
7 | P a g e
Stale amavisd.pid – Validate zmqstat
Once the services have been restarted, within few minutes you can check Zimbra mail queue deferred
emails are being delivered, run the command;
sudo ~/libexec/zmqstat

More Related Content

PPTX
Bulud texnologiyaları
PDF
Rocky Mountain 2008 International catalogue
PPTX
Wi-Fi Direct
PPTX
NSX-T and Service Interfaces presentation
PPTX
Fifth genration technology
PDF
Cours acl
PDF
Formation BLOCKCHAIN
PDF
Mini projet Zabbix
Bulud texnologiyaları
Rocky Mountain 2008 International catalogue
Wi-Fi Direct
NSX-T and Service Interfaces presentation
Fifth genration technology
Cours acl
Formation BLOCKCHAIN
Mini projet Zabbix

What's hot (15)

PDF
IoT with 5G-Network
PPTX
Ise 1 2-bdm-v4
PPT
Bluejacking by Niharika Mundra
PPT
HIN Validation and Verification
PDF
Guide " LMS : comment choisir sa plateforme" - Edition 2018
PPT
Web invisible
PPT
Firewall
 
PDF
Installation Zimbra.pdf
PDF
Td gsm iit
DOCX
5G Technology part 1
PDF
Alphorm.com Formation KVM
PPTX
Multithreading
PDF
Aruba mobility access switch useful commands v2
IoT with 5G-Network
Ise 1 2-bdm-v4
Bluejacking by Niharika Mundra
HIN Validation and Verification
Guide " LMS : comment choisir sa plateforme" - Edition 2018
Web invisible
Firewall
 
Installation Zimbra.pdf
Td gsm iit
5G Technology part 1
Alphorm.com Formation KVM
Multithreading
Aruba mobility access switch useful commands v2
Ad

Similar to Zimbra Troubleshooting - Mails not being Delivered or Deferred or Connection Refused (20)

PDF
Hi path 3000 & 5000 v8 manager c administrator documentation issue 6
PDF
Mail server on Ubuntu Server 12.04 (Postfix, Courier, SSL, SpamAssassin, Clam...
PDF
How To Audit Server Login and Shutdown or Reboot Activity
PDF
How To Configure FirewallD on RHEL 7 or CentOS 7
PDF
How To Configure SNMP Logging on RHEL 7
PDF
Install and Configure RSyslog – CentOS 7 / RHEL 7
PDF
How To Install and Configure SNMP on RHEL 7 or CentOS 7
PDF
IBM Connections 4.5 bidirectional synchronization
PDF
SEPM Outsourcing
PDF
Day5_Apache_JMeter_Test_Execution_RemoteMode_Master_Slave
PPTX
Automation use cases_slides_jayendra_saxena
PDF
EWD 3 Training Course Part 29: Running QEWD as a Service
PDF
MCM User Guide
PDF
Monit - NHRuby May 2009
PDF
Events in tems products
PDF
CCNA Lab 5-Configuring Inter-VLAN Routing
PPTX
Essential Ingredients of Realtime Stream Processing @ Scale
PDF
CCNA Lab 2-Configuring a Switch Part II
PDF
IBM Notes Traveler Best Practices
PDF
Open mic on ibm notes traveler best practices
Hi path 3000 & 5000 v8 manager c administrator documentation issue 6
Mail server on Ubuntu Server 12.04 (Postfix, Courier, SSL, SpamAssassin, Clam...
How To Audit Server Login and Shutdown or Reboot Activity
How To Configure FirewallD on RHEL 7 or CentOS 7
How To Configure SNMP Logging on RHEL 7
Install and Configure RSyslog – CentOS 7 / RHEL 7
How To Install and Configure SNMP on RHEL 7 or CentOS 7
IBM Connections 4.5 bidirectional synchronization
SEPM Outsourcing
Day5_Apache_JMeter_Test_Execution_RemoteMode_Master_Slave
Automation use cases_slides_jayendra_saxena
EWD 3 Training Course Part 29: Running QEWD as a Service
MCM User Guide
Monit - NHRuby May 2009
Events in tems products
CCNA Lab 5-Configuring Inter-VLAN Routing
Essential Ingredients of Realtime Stream Processing @ Scale
CCNA Lab 2-Configuring a Switch Part II
IBM Notes Traveler Best Practices
Open mic on ibm notes traveler best practices
Ad

More from VCP Muthukrishna (20)

PDF
How to Fix Duplicate Packages in YUM on CentOS 7
PDF
How To Install and Configure GNome on CentOS 7
PDF
How To Connect to Active Directory User Validation
PDF
How To Connect To Active Directory PowerShell
PDF
How To List Files on Remote Server - PowerShell
PDF
How To List Files and Display In HTML Format
PDF
How To Check and Delete a File via PowerShell
PDF
How To Setup SSH Keys on CentOS 7
PDF
How To Install and Configure Open SSH Server on Ubuntu
PDF
Windows PowerShell Basics - How To List PSDrive Info
PDF
How To List Nginx Modules Installed / Complied on CentOS 7
PDF
Windows PowerShell Basics – How To Create powershell for loop
PDF
How To Construct IF and Else Conditional Statements
PDF
How To Create PowerShell Function Mandatory Parameter and Optional Parameter
PDF
How To Create Power Shell Function Mandatory Parameter Value
PDF
How To Create PowerShell Function
PDF
How To Disable IE Enhanced Security Windows PowerShell
PDF
How To Check IE Enhanced Security Is Enabled Windows PowerShell
PDF
How To Configure Nginx Load Balancer on CentOS 7
PDF
Nginx bind() to 0.0.0.0:9080 failed
How to Fix Duplicate Packages in YUM on CentOS 7
How To Install and Configure GNome on CentOS 7
How To Connect to Active Directory User Validation
How To Connect To Active Directory PowerShell
How To List Files on Remote Server - PowerShell
How To List Files and Display In HTML Format
How To Check and Delete a File via PowerShell
How To Setup SSH Keys on CentOS 7
How To Install and Configure Open SSH Server on Ubuntu
Windows PowerShell Basics - How To List PSDrive Info
How To List Nginx Modules Installed / Complied on CentOS 7
Windows PowerShell Basics – How To Create powershell for loop
How To Construct IF and Else Conditional Statements
How To Create PowerShell Function Mandatory Parameter and Optional Parameter
How To Create Power Shell Function Mandatory Parameter Value
How To Create PowerShell Function
How To Disable IE Enhanced Security Windows PowerShell
How To Check IE Enhanced Security Is Enabled Windows PowerShell
How To Configure Nginx Load Balancer on CentOS 7
Nginx bind() to 0.0.0.0:9080 failed

Recently uploaded (20)

PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Mushroom cultivation and it's methods.pdf
PPTX
Tartificialntelligence_presentation.pptx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
OMC Textile Division Presentation 2021.pptx
PDF
Empathic Computing: Creating Shared Understanding
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PPT
Teaching material agriculture food technology
PPTX
1. Introduction to Computer Programming.pptx
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
Spectroscopy.pptx food analysis technology
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Unlocking AI with Model Context Protocol (MCP)
Building Integrated photovoltaic BIPV_UPV.pdf
Mushroom cultivation and it's methods.pdf
Tartificialntelligence_presentation.pptx
Diabetes mellitus diagnosis method based random forest with bat algorithm
OMC Textile Division Presentation 2021.pptx
Empathic Computing: Creating Shared Understanding
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Accuracy of neural networks in brain wave diagnosis of schizophrenia
Teaching material agriculture food technology
1. Introduction to Computer Programming.pptx
Assigned Numbers - 2025 - Bluetooth® Document
Univ-Connecticut-ChatGPT-Presentaion.pdf
Programs and apps: productivity, graphics, security and other tools
Spectral efficient network and resource selection model in 5G networks
Spectroscopy.pptx food analysis technology
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
NewMind AI Weekly Chronicles - August'25-Week II
Per capita expenditure prediction using model stacking based on satellite ima...
Unlocking AI with Model Context Protocol (MCP)

Zimbra Troubleshooting - Mails not being Delivered or Deferred or Connection Refused

  • 1. Zimbra Troubleshooting – Port 10024: Connection refused i | P a g e Table of Contents Overview.......................................................................................................................................................1 Login – EMail Server..................................................................................................................................1 E-Mail Server – Log Directory ...................................................................................................................1 E-Mail Server – Filter Error........................................................................................................................1 E-Mail Server – Zimbra Queue Statistics...................................................................................................3 E-Mail Server – Postfix Queue ..................................................................................................................3 Error Message – Log Snippet ................................................................................................................3 Error Message – Cause..........................................................................................................................4 Zmamavisdctl Service – Resolution #1......................................................................................................4 ClamAV Package – Resolution #2.............................................................................................................4 ClamAV Package – Upgrade......................................................................................................................5 Stale amavisd.pid – Resolution #3 ...........................................................................................................5 Stale amavisd.pid – Remove PID..............................................................................................................6 Stale amavisd.pid – Updated PID.............................................................................................................6 Stale amavisd.pid – Validate zmqstat ......................................................................................................7
  • 2. Zimbra Troubleshooting – Port 10024: Connection refused 1 | P a g e Overview Sometimes there may be a case, wherein all the emails sent to a domain will be deferred from Zimbra mail service. In this guide we will check a possible “amavisd” could be failed / stopped. In order to resume deferment of emails sent from this domain service has to be restarted. Also in some scenario clamav (clam Anti-virus) tool is not updated with latest version, hence signatures will not be downloaded and clamav service seize to function. Another scenario amavisd.pid becomes stale during automatic restart and service doesn’t restart and PID file is not updated due to this. We will walk through the process of identifying and resolve such issue. Login – EMail Server Login to email server and switch to Zimbra account. sudo su - zimbra E-Mail Server – Log Directory After logging on to the server, switch to Zimbra Log Folder. By default, Zimbra log folder is configured to “/var/log” this is mail administrator configurable parameter during installation. cd /var/log/ E-Mail Server – Filter Error After switching to Zimbra Log Folder, filter for text “127.0.0.1:10024”, run the command; cat zimbra.log | grep m 1 "10024" or cat zimbra.log | grep -m 1 "127.0.0.1[127.0.0.1]:10024"
  • 3. Zimbra Troubleshooting – Port 10024: Connection refused 2 | P a g e
  • 4. Zimbra Troubleshooting – Port 10024: Connection refused 3 | P a g e You can also check the port status by telnet command; to know the status of port run the command; telnet 127.0.0.1 10024 E-Mail Server – Zimbra Queue Statistics To know the current status Zimbra mail service queue statistics, run the command; sudo ~/libexec/zmqstat E-Mail Server – Postfix Queue To know the current postfix queue status, run the command; /opt/zimbra/postfix/sbin/postqueue -p Error Message – Log Snippet postfix/smtp[14955]: connect to 127.0.0.1[127.0.0.1] 10024: Connection refused
  • 5. Zimbra Troubleshooting – Port 10024: Connection refused 4 | P a g e Error Message – Cause amavisd service has abruptly stopped, check current “amavisd” service status. After you have logged, switch to Zimbra application user, switch to Zimbra user and run command; zmamavisdctl status Alternatively, you could also run zmcontrol status, to know the status of all Zimbra related services. Zmamavisdctl Service – Resolution #1 Since “zmamavisdctl” is not running, we need to restart the service “amavisd” to restart service, run the command; sudo su - zimbra postfix stop zmamavisdctl stop zmamavisdctl start postfix start ClamAV Package – Resolution #2 In some scenario, clamav (antivirus) package has to be upgraded to newer version and calmav service will not start till you upgrade package manually, to identify the current version and possible version upgrade requirement, run the command; cd /opt/zimbra/log ll *.log cat freshclam.log
  • 6. Zimbra Troubleshooting – Port 10024: Connection refused 5 | P a g e ClamAV Package – Upgrade Since we already know that the clamav version deployed on the server, we will List latest version of package availability and upgrade it; to upgrade the package run the command; yum list clamav && yum upgrade clamav -q After package upgrade restart the Zimbra services run command; zmcontrol restart Stale amavisd.pid – Resolution #3 If resolution #1 and #2 doesn’t resolve the issue; amavisd.pid could be in a stale state and doesn’t restart automatically as needed, hence we will remove the amavisd.pid file and restart service(s), before you remove the process ID (pid file) check status of Process ID file. cd /var/zimbra/log/ ll *.pid
  • 7. Zimbra Troubleshooting – Port 10024: Connection refused 6 | P a g e Stale amavisd.pid – Remove PID Now that we have found that amavisd.pid has not been updated, whereas other services pid files have updated, so we consider that as stale state of a process and we will remove the file, to remove the file run the command; rm amavisd.pid After deleting the file restart the Zimbra services run command; zmcontrol restart Stale amavisd.pid – Updated PID After deleting the file restart the Zimbra services run command; zmcontrol restart. Once the service is restarted, amavisd.pid file gets updated, you can again list the PID’s and check.
  • 8. Zimbra Troubleshooting – Port 10024: Connection refused 7 | P a g e Stale amavisd.pid – Validate zmqstat Once the services have been restarted, within few minutes you can check Zimbra mail queue deferred emails are being delivered, run the command; sudo ~/libexec/zmqstat