We've got a vServer running Zimbra and a web server, each of them having its own IP address. - vServer, running:
-- - Zimbra mail server
-- - web server

Receiving e-mails is fine, but since few weeks Zimbra puts the vServer's IP address to the mail-header instead of using the designated mail server IP:

Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=; helo=mx1.ipsum.com; envelope-from=lorem@ipsum.com; receiver=dolor.sit@amit.com

This causes a HELO/Reverse-DNS mismatch (Reverse DNS entry for points to mx1.ipsum.com, but points to vserver.ipsum.com). In result, many mail servers reject mails sent from our server mx1.ipsum.com, i.e. saying "550 MAIL APPEARED TO BE SPAM OR FORGED. WRONG HELO AND DNS" So I would like to tell Zimbra to use the correct mail server IP In the Zimbra admin panel, of course the correct IP is set.

I added these lines to /opt/zimbra/postfix/conf/main.cf:

inet_interfaces =,
smtp_bind_address =

Result: Sending as well as receiving stops completely, all messages get queued. Here's what was logged in zimbra.log while this happened:

Sep 18 14:32:24 mx1 postfix/smtpd[11496]: connect from localhost.localdomain[]
Sep 18 14:32:24 mx1 postfix/smtpd[11496]: NOQUEUE: filter: RCPT from localhost.localdomain[]: <office@ipsum.com>: Sender address triggers FILTER smtp-amavis:[]:10026; from=<office@ipsum.com> to=<vbn@gov.si> proto=ESMTP helo=<mx1.ipsum.com>
Sep 18 14:32:24 mx1 postfix/smtpd[11496]: 2549C197F8382: client=localhost.localdomain[]
Sep 18 14:32:24 mx1 postfix/cleanup[11497]: 2549C197F8382: message-id=<1049454665.7423.1411043544059.JavaMail.zimbra@ipsum.com>
Sep 18 14:32:24 mx1 postfix/qmgr[7424]: 2549C197F8382: from=<office@ipsum.com>, size=3899, nrcpt=1 (queue active)
Sep 18 14:32:24 mx1 postfix/smtpd[11496]: disconnect from localhost.localdomain[]
Sep 18 14:32:24 mx1 amavis[3400]: (!)DENIED ACCESS from IP, policy bank 'ORIGINATING'
Sep 18 14:32:43 mx1 postfix/submission/smtpd[11504]: connect from unknown[]
Sep 18 14:32:45 mx1 postfix/submission/smtpd[11504]: Anonymous TLS connection established from unknown[]: TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)
Sep 18 14:32:47 mx1 postfix/submission/smtpd[11504]: NOQUEUE: filter: RCPT from unknown[]: <admin@ipsum.com>: Sender address triggers FILTER smtp-amavis:[]:10026; from=<admin@ipsum.com> to=<dolor.sit@amit.com> proto=ESMTP helo=<[]>
Sep 18 14:32:47 mx1 postfix/submission/smtpd[11504]: 57672197F8396: client=unknown[], sasl_method=PLAIN, sasl_username=admin
Sep 18 14:32:48 mx1 postfix/cleanup[11497]: 57672197F8396: message-id=<541AD0EA.1040607@ipsum.com>
Sep 18 14:32:48 mx1 postfix/qmgr[7424]: 57672197F8396: from=<admin@ipsum.com>, size=570, nrcpt=1 (queue active)
Sep 18 14:32:48 mx1 postfix/smtp[10083]: 57672197F8396: to=<dolor.sit@amit.com>, relay=[]:10026, delay=1.7, delays=1.7/0/0/0, dsn=4.4.2, status=deferred (lost connection with[] while receiving the initial server greeting)
Sep 18 14:32:49 mx1 postfix/submission/smtpd[11504]: disconnect from unknown[]
Sep 18 14:32:48 mx1 amavis[3400]: (!)DENIED ACCESS from IP, policy bank 'ORIGINATING'

I also tried adding

inet_interfaces = all

or just

smtp_bind_address =

without an inet_interfaces line. Same result, all mails get queued.

SMTP Banner and general settings seem to be alright according to mxtoolbox.com:

Connecting to

220 mx1.ipsum.com ESMTP Postfix [874 ms]
EHLO MXTB-PWS3.mxtoolbox.com
250-SIZE 16777216
250 DSN [749 ms]
MAIL FROM: <supertool@mxtoolbox.com>
250 2.1.0 Ok [749 ms]
RCPT TO: <test@example.com>
554 5.7.1 <test@example.com>: Relay access denied [749 ms]

MXTB-PWS3v2 12184ms

Test mx record

:~$ host -t mx ipsum.com
ipsum.com mail is handled by 10 mx1.ipsum.com.

Test ptr:

:~$ host mx1.ipsum.com
mx1.ipsum.com has address

Test rDNS:

:~$ host domain name pointer mx1.ipsum.com.

Any suggestions how to get Zimbra back on track using the mail server IP instead of the vServer IP address?


Here the complete picture of your email flow

Zimbra webmail -> postfix -> amavis -> postfix -> internet

Now, your email got stuck in queue because amavisd reject it. Why?

Some background

Amavisd in zimbra use policy bank to control who can telnet to amavisd daemon. When zimbra initialize configuration after installed, zimbra synchronize config to amavisd and config. * It tells postfix to submit email (for scanning) to amavisd with IP and * It tells amavisd to only accept email from IP

So that's why amavisd rejected it. You change smtp_bind_address in postfix, but you don't change policy bank setting in amavisd.conf


Set @mynetworks directive in /opt/zimbra/conf/amavisd.conf by adding IP It will tell amavisd policy bank to accept email from

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.