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.

Add an alias with all users in postfix


How to create an alias, for example,, where the email sent to reaches all the users available in the posrfix server?


Do the following.

find /home/* -maxdepth 0 | cut -d’/’ -f3 > /etc/mail/team

2. add the following line in the file  /etc/aliases
allusers: :include:/etc/mail/team

3. run the following command

4. run this command too
/etc/init.d/postfix reload

You have to do this, whenever a new user is added to the server.

Copying Email folder from Old Account to New account in zimbra

zimbra is a nice email server available as open source software.

here is a tip to copy mails from one user account to another user account.

run the following commands in the server.

su – zimbra

zmmailbox -z -m getRestURL “//?fmt=tgz” > /tmp/v.tar.gz

zmmailbox -z -m postRestURL “//?fmt=tgz&resolve=reset” /tmp/v.tar.gz

these commands copy all the emails from the olduser account to newuser account.