> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abusix.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Plesk

To add Guardian Mail:

In the Plesk console, go to “Tools & Settings” and “Mail Server Settings” under the “Mail” heading.

Scroll to the bottom of the page and enable the option “Turn on [spam](https://abusix.com/glossary/spam/) protection based on [DNS](https://abusix.com/glossary/domain-name-system/) blackhole lists,” then set “[DNS](https://abusix.com/glossary/domain-name-system/) zones for [DNSBL](https://abusix.com/glossary/domain-name-system-blocklist/) service” to:

\<APIKEY>.[combined.mail.abusix.zone](http://combined.mail.abusix.zone)

Replace \<APIKEY> with “**Your API key”** from your account in [app.abusix.com](http://app.abusix.com).

Then click ‘OK.’

<img src="https://mintcdn.com/abusixinc/4jA2TTR_2zBN8u7D/images/https3A2F2Fs3.amazonaws.com2Fhelpjuice-static2Fhelpjuice_production252Fuploads252Fupload252Fimage252F7025252Fdirect252F1615840473562-1615840473562.png?fit=max&auto=format&n=4jA2TTR_2zBN8u7D&q=85&s=47a6270922d5fc0405f040256209fa4d" alt="Https3a2f2fs3 Amazonaws Com2fhelpjuice Static2fhelpjuice Production252fuploads252fupload252fimage252f7025252fdirect252f1615840473562 1615840473562 Pn" width="2000" height="1291" data-path="images/https3A2F2Fs3.amazonaws.com2Fhelpjuice-static2Fhelpjuice_production252Fuploads252Fupload252Fimage252F7025252Fdirect252F1615840473562-1615840473562.png" />

SpamAssassin can also be installed on Plesk, allowing Guardian Mail to provide additional filtering.

This can be installed by going to “Tools & Settings,” “Plesk,” “Updates,” “Add/Remove Components”, expanding “Mail Hosting” by clicking the + next to it, selecting “Install” under “SpamAssassin” and click “Continue.”

<img src="https://mintcdn.com/abusixinc/4jA2TTR_2zBN8u7D/images/https3A2F2Fs3.amazonaws.com2Fhelpjuice-static2Fhelpjuice_production252Fuploads252Fupload252Fimage252F7025252Fdirect252F1615841972166-1615841972166.png?fit=max&auto=format&n=4jA2TTR_2zBN8u7D&q=85&s=d1219f671b968d34609bb9c5496c0d8c" alt="Https3a2f2fs3 Amazonaws Com2fhelpjuice Static2fhelpjuice Production252fuploads252fupload252fimage252f7025252fdirect252f1615841972166 1615841972166 Pn" width="2000" height="5648" data-path="images/https3A2F2Fs3.amazonaws.com2Fhelpjuice-static2Fhelpjuice_production252Fuploads252Fupload252Fimage252F7025252Fdirect252F1615841972166-1615841972166.png" />

Once SpamAssassin is installed, you can use the following instructions to configure it to use Guardian Mail. You will need to use [SSH](https://abusix.com/glossary/secure-shell-protocol/) and edit the necessary files by hand, as Plesk does not provide a way to do this via the console.

**Instructions**

Edit [*local.cf*](http://local.cf)\_ \_(usually found in /etc/mail/spamassassin) as follows.

```
ifplugin Mail::SpamAssassin::Plugin::DNSEval
    header    __RCVD_IN_AMI       eval:check_rbl('ami', '<APIKEY>.combined.mail.abusix.zone.')
    describe  __RCVD_IN_AMI       Received via a relay in Guardian Mail
    tflags    __RCVD_IN_AMI       net

    header    RCVD_IN_AMI_BLACK   eval:check_rbl_sub('ami', '^127\.0\.0\.(?:[23]|200)$')
    describe  RCVD_IN_AMI_BLACK   Received via a relay in Guardian Mail Black
    score     RCVD_IN_AMI_BLACK   3.0
    tflags    RCVD_IN_AMI_BLACK   net

    header    RCVD_IN_AMI_EXPLOIT eval:check_rbl_sub('ami', '127.0.0.4')
    describe  RCVD_IN_AMI_EXPLOIT Received via a relay in Guardian Mail Exploit
    score     RCVD_IN_AMI_EXPLOIT 3.0
    tflags    RCVD_IN_AMI_EXPLOIT net

    header    RCVD_IN_AMI_DYN     eval:check_rbl('ami-lastexternal', '<APIKEY>.combined.mail.abusix.zone.', '^127\.0\.0\.1[12]$')
    describe  RCVD_IN_AMI_DYN     Received via a relay in Guardian Mail Dynamic
    score     RCVD_IN_AMI_DYN     3.0
    tflags    RCVD_IN_AMI_DYN     net

    header    RCVD_IN_AMI_WHITE   eval:check_rbl('ami-firsttrusted', '<APIKEY>.combined.mail.abusix.zone.', '127.0.2.1')
    describe  RCVD_IN_AMI_WHITE   Received via a relay in Guardian Mail White
    score     RCVD_IN_AMI_WHITE   -0.1
    tflags    RCVD_IN_AMI_WHITE   nice net
endif

ifplugin Mail::SpamAssassin::Plugin::URIDNSBL
    urirhsbl  URIBL_AMI_DBLACK    <APIKEY>.dblack.mail.abusix.zone. A
    body      URIBL_AMI_DBLACK    eval:check_uridnsbl('URIBL_AMI_DBLACK')
    describe  URIBL_AMI_DBLACK    Contains a spam URL listed in the Guardian Mail domain blocklist
    score     URIBL_AMI_DBLACK    3.0
    tflags    URIBL_AMI_DBLACK    net

    urirhssub URIBL_AMI_WHITE     <APIKEY>.white.mail.abusix.zone. A 127.0.2.1
    body      URIBL_AMI_WHITE     eval:check_uridnsbl('URIBL_AMI_WHITE')
    describe  URIBL_AMI_WHITE     Contains a domain listed in the Guardian Mail domain whitelist
    score     URIBL_AMI_WHITE     -0.1
    tflags    URIBL_AMI_WHITE     nice net
endif
```

Replace \<APIKEY> in all places with “**Your API key”** from your account in [app.abusix.com](http://app.abusix.com).

Then restart SpamAssassin.

Once you have made these changes, run “systemctl restart spamassassin” to restart it.
