Getting spam mails for your local domain users in zimbra?

In a zimbra server, local user’s mail were sent as junk or spam mails for the same domain users.
Here are the solutions found in various threads in zimbra forums.

I did all these and the issue solved. 🙂

Domain name =

add the line in /opt/zimbra/conf/
‘’                              => -10.0,

refer this link

add the following content in /opt/zimbra/conf/

read_hash(\%whitelist_sender, ‘/opt/zimbra/whitelist’);
read_hash(\%blacklist_sender, ‘/opt/zimbra/blacklist’);
read_hash(\%spam_lovers, ‘/opt/zimbra/spamlovers’);

add in  /opt/zimbra/whitelist

add in  /opt/zimbra/conf/

whitelist_from *
score FH_DATE_PAST_20XX 0.0

add in  /opt/zimbra/conf/spamassassin/
trusted_networks 192.168.3.

restart the services
zmmtactl restart && zmamavisdctl restart (as zimbra user)
/etc/init.d/zimbra restart (as root user)

Thanks for the zimbra forum contributors.

14 thoughts on “Getting spam mails for your local domain users in zimbra?

  1. Pingback: Spam getting | Ewomencleanse

  2. Pingback: วิธีแก้ Zimbra Local Domain ติด Spam list | Just My Life

  3. Its worked for me. But only two things are missing here:
    1. create file /opt/zimbra/blacklist
    2.create file /opt/zimbra/spamlovers

  4. Te agradezco mucho por haber publicado esta solución, estaba irritado por este problema y no hallaba la respuesta, suponía que era porque el servidor tenía un certificado autofirmado y no sabía como hacer la excepción consigo mismo.

    Deseo éxito en tu carrera.

  5. i already following this tutorial, but i have problem,
    “Starting amavisd…Error in config file “/opt/zimbra/conf/amavisd.conf”: Unrecognized character \x91 in column 31 at /opt/zimbra/conf/amavisd.conf line 343.
    what should i do Mr. SHRINIVASAN ?

    FYI, i used zimbra version 8.5.1_GA_3056.FOSS

  6. Receiving spam email from myself :

    Hi, I am receiving mails to myself where from and to address are same. But i haven’t sent any mails acctually. Here is the log

    Aug 6 21:23:22 postfix/submission/smtpd[8335]: NOQUEUE: reject: RCPT from unknown[]: 554 5.7.1 :
    Client host rejected: Access denied; proto=ESMTP helo=

    This is happening particularly from some specific systems in LAN. Unable to resolve. Can you please help me out in resolving this issue.

    Thanks & Regards,

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s