<a id="configuration"></a>

# Configuration

*expurgate-spamd* loads the non-reloadable configuration from `/etc/expurgate-spamd/expurgate-spamd.conf`.

Below are some of the most important settings that can be configured.

<a id="general-directives"></a>

## General directives

<a id="confval-LicenseFile"></a>

### LicenseFile

The filename of the license key (provided by us). In the default configuration this is set to `/etc/expurgate-spamd/client.key`.

<a id="spamd-directives"></a>

## Spamd directives

<a id="confval-ListenAddress"></a>

### ListenAddress

The IP address and port to listen on. In the default configuration this is set to `127.0.0.1:783`.

> **Warning**
> 
> If you have installed SpamAssassin on the same server the default port of these two services will conflict with each other.

<a id="confval-DataTimeout"></a>

### DataTimeout

Indicates the number of seconds it will wait for its client before timing out. In the default configuration this is set to `300`.

<a id="confval-MaxConnections"></a>

### MaxConnections

The maximum number of concurrent clients. In the default configuration this is set to `1000`.

<a id="spamengine-directives"></a>

## SpamEngine directives

<a id="confval-Server"></a>

### Server

The hostname and port of an Exdb server. In the default configuration the default is:

```default
Server exa.expurgate.net:55555 prio 0
Server exb.expurgate.net:55555 prio 0
Server exa.expurgate.de:55555 prio 1
Server exb.expurgate.de:55555 prio 1
```

<a id="confval-ScanTimeout"></a>

### ScanTimeout

Fail scan requests exceeding the specified limit. In the default configuration the default is `0` (unlimited).

<a id="confval-DangerousExtensions"></a>

### DangerousExtensions

The list of dangerous file extensions. In the default configuration the default is:

```default
ade, adp, app, asp, bas, bat, bhx, cab, ceo, chm, cmd,
com, cpl, crt, csr, der, dotm, exe, fxp, hlp, hta, inf,
ins, isp, its, js, jse, lnk, mad, maf, mag, mam, mar,
mas, mat, mde, mim, msc, msi, msp, mst, ole, pcd, pif,
potm, ppsm, pptm, reg, scr, sct, shb, shs, url, vb, vbe,
vbmacros, vbs, vsw, wmd, wmz, ws, wsc, wsf, wsh, xla,
xlam, xltm, xxe
```
