Zimbra : Connection refused (port 10024).

Today , I cannot sent email from Zimbra service to other email. I find warning message in /var/log/zimbra.log .

Apr 25 11:15:09 aoddy postfix/smtp[13534]: connect to 127.0.0.1[127.0.0.1]: Connection refused (port 10024)
Apr 25 11:15:10 aoddy postfix/smtp[13534]: 4B15324914C: to=<admin@aoddy.com>, relay=none, delay=0.61, delays=0.35/0.26/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]: Connection refused)
Apr 25 11:15:11 aoddy postfix/smtp[13534]: 4B15324914C: to=<admin@aoddy.com>, relay=none, delay=0.61, delays=0.35/0.26/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]: Connection refused)
Apr 25 11:15:11 aoddy postfix/smtp[13534]: 4B15324914C: to=<admin@aoddy.com>, relay=none, delay=0.61, delays=0.35/0.26/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]: Connection refused)



I discovered this can happen if Amavis doesn’t understand one’s FQDN. I solved it by setting the $myhostname var in /opt/zimbra/conf/amavisd.conf and /opt/zimbra/conf/amavisd.conf.in, as well as myhostname in /opt/zimbra/postfix/conf/main.cf.

After fixed it, you should restart zimbra service by

[zimbra@aoddy log]$ zmcontrol stop
Host aoddy.com
Stopping stats…Done
Stopping mta…Done
Stopping spell…Done
Stopping snmp…Done
Stopping archiving…Done
Stopping antivirus…Done
Stopping antispam…Done
Stopping imapproxy…Done
Stopping mailbox…Done
Stopping logger…Done
Stopping ldap…Done
[zimbra@aoddy log]$ zmcontrol start
Host aoddy.com
Starting ldap…Done.
Starting logger…Done.
Starting mailbox…Done.
Starting imapproxy…Done.
Starting antispam…Done.
Starting antivirus…Done
Starting snmp…Done.
Starting spell…Done.
Starting mta…Done.
Starting stats…Done.

Perfect 😀