Zimbra : Update SpamAssassin using proxy – broken

Please don’t follow these steps, as you’ll get authentication problems when authentication over SMTP. Have a look at this post.

How to configure Zimbra to download SpamAssassin antispam updates using a proxy.

Make configuration change

Start by editing this file.


Then add the following 2 lines. Change them to the hostname or ip address and port of your proxy server.

export https_proxy="http://proxy.example.org:3128"
export http_proxy="http://proxy.example.org:3128"

And save the file.

Test SpamAssassin update

Run the following command as zimbra user. If it doesn’t display an error, you’re good.

. /opt/zimbra/.bashrc; /opt/zimbra/libexec/zmsaupdate

Automatic daily updates

Each night, your zimbra installation will attempt to update the spamassassin definitions at midnight + 45 minutes. The update is triggered by the following crontab entry.

# Spam rule updates
45 0 * * * . /opt/zimbra/.bashrc; /opt/zimbra/libexec/zmsaupdate

There is no need to create this entry. It should already exists as part of the default zimbra installation.

You want to update ClamAV using a proxy?

2 thoughts on “Zimbra : Update SpamAssassin using proxy – broken

  1. Pingback: Zimbra : Update ClamAV using proxy - Thomas Elsen Security Blog

  2. Pingback: Zimbra : Update SpamAssassin using proxy - corrected - Thomas Elsen Security Blog

Leave a Reply

Your email address will not be published. Required fields are marked *