external spam server, incoming to Zimbra (blocked)

Posted on 2014-09-24
Last Modified: 2014-10-03
I need to install an assp server in front of a zimbra server.
The spam server is being run in transparent mode on the same lan as Zimbra which is the MTA in the DNS records.

When I try sending an email from an external network, I am getting;
'relay attempt blocked' and '530 Relaying not allowed' on assp and on the zimbra server,

Sep 24 10:15:06 uc postfix/smtpd[18211]: connect from unknown[]
Sep 24 10:15:06 uc postfix/smtpd[18211]: lost connection after MAIL from unknown[]
Sep 24 10:15:06 uc postfix/smtpd[18211]: disconnect from unknown[]

My local and any other relay networks are configured in zimbra yet it won't allow from the above local server. I've searched quite a lot and have found nothing which gives me a solution so time to post here.

Zimbra 8.0.6
Question by:projects
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 5
LVL 18

Expert Comment

by:Sanga Collins
ID: 40342284
In zimbra add to the list of IPs on your MTA trusted networks

Author Comment

ID: 40342319
I do have the list of trusted networks but only in Configure/Servers/"myserver"/MTA/MTA trusted networks

However, I don't have anything set in Configure/Global Settings/MTA/MTA trusted networks.

Do you mean there?

I tried this also and same results.

Author Comment

ID: 40342323
I have noticed that sometimes, changing settings in the GUI does not seem to remain set when looking on command line.

In fact, even after setting this, I went to another page, then came back and the settings are no longer there. I am not sure what command sets the global trusted networks from the command line.

$ postconf mynetworks
mynetworks = xx.xx.xx.xx/32

I tried adding the server IP in GUI but it doesn't stay. I then tried in CLI

zmprov ms myserver zimbraMtaMyNetworks ' xx.xx.xx.xx/32'

but that didn't work either. Not sure how to set this globally from CLI.
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 40342372
$ zmprov mcf zimbraMtaMyNetworks ''

$ postconf mynetworks
mynetworks =

(Tried with an without reloading postfix)

$ postfix reload
/postfix-script: refreshing the Postfix mail system

This seems to be the way to set my networks globally but this also made no difference, the spam server was stick blocked in the same way.

In GUI, my networks still don't show up  in global settings, my trusted nets.
LVL 18

Expert Comment

by:Sanga Collins
ID: 40342420
the network should take care of

Is the 'relay attempt blocked' message appearing in the zimbra logs or only in the assp server?

Author Comment

ID: 40342425
The relay attempt is showing on assp.
On zimbra, all I see is the connect/disconnect message.
LVL 18

Expert Comment

by:Sanga Collins
ID: 40342738
Ok then Zimbra is probably not where you issue is. The connect disconnect message is correct for when a server attempts a connection but fails to do anything after that.

I have experience with Zimbra than assp, but I am going to reach out to a colleague to find more info so we can get your email flowing again.
LVL 18

Expert Comment

by:Sanga Collins
ID: 40342752
In the assp config do you have the following

Relaying section:
Accept All Mail* (acceptAllMail): enter your ip addresses here


Email interface section:
Authorized Addresses* (EmailAdmins): enter your domains here for example:| etc ...

Author Comment

ID: 40342769
acceptAllMail has all of my local and any external IP's which should be allowed.|10.|192.168.|172.16.|xx.xx.x.|x.x.x.x|x.x.x.

The second section looks as follows so I am not sure what to enter here since assp is sending TO zimbra.

Authorized Addresses* (EmailAdmins)

Mail from any of these addresses can add/remove to/from redlist, spamlovers, noprocessing, blacklist. May request an EmailBlockReport for a list of users. Accepts specific addresses (, user parts (user) or entire domains (

Author Comment

ID: 40342875
The spam server is trying to send so it must be zimbra stopping it no?
LVL 18

Assisted Solution

by:Sanga Collins
Sanga Collins earned 500 total points
ID: 40348595
Ok, lets break it down a little more. I think the first thing we need to be sure on is which server is responsible for preventing the mail flow.

When you say in the original post: " sending an email from an external network" Are you

a) sending outbound mail as a zimbra user from a computer or device that is on an external network (such as laptop or mobile)?
b) Receiving mail from and external network going to a zimbra user through the spam filter?

Accepted Solution

projects earned 0 total points
ID: 40348657
The problem was that assp didn't have an updated list of allowed domains so it was blocking incoming email to the mail server since it didn't know about the allowed domains.

The allowed domains list is a list of domains which are allowed to relay, either because they exist on the local network/mail server or are simply allowed to relay for other reasons.

What I meant by "sending an email from an external network" was that email was coming from an external source, such as any other network, not something we own or have control over such as yahoo, gmail, any other domain.

Author Closing Comment

ID: 40359024
Even though I found my own answer, your input helped so thanks.

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Exchange 2010, Implementing On-Prem Archiving 3 37
cannot remove HUB role from EX2007 server 6 53
EXCH2013 Public Folder creation 1 50
Outlook 2016 6 59
Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…
To show how to generate a certificate request in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Servers >> Certificates…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question