# Migrate to rspamd

**URL:** <https://discourse.mailinabox.email/t/migrate-to-rspamd/11400>\
**Category:** Improvements\
**Created:** [January 18, 2024, 10:01am UTC](https://discourse.mailinabox.email/t/migrate-to-rspamd/11400 "2024-01-18T10:01:59Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmonty14](https://discourse.mailinabox.email/letter_avatar_proxy/v4/letter/c/77aa72/32.png) [@cmonty14](https://discourse.mailinabox.email/u/cmonty14)\
**Post date:** [January 18, 2024, 10:01am UTC](https://discourse.mailinabox.email/t/migrate-to-rspamd/11400/1 "2024-01-18T10:01:59Z")

</div>

Hello,  
I would propose to migrate to [rspamd](https://rspamd.com/).  
This was [discussed](https://github.com/mail-in-a-box/mailinabox/issues/563) in the past w/o any progress.

Regards  
Thomas

---

<div class="post-metadata">

**Author:** ![JoshData](https://discourse.mailinabox.email/user_avatar/discourse.mailinabox.email/joshdata/32/2153_2.png) [@JoshData](https://discourse.mailinabox.email/u/JoshData)\
**Post date:** [January 19, 2024, 7:13pm UTC](https://discourse.mailinabox.email/t/migrate-to-rspamd/11400/2 "2024-01-19T19:13:56Z")

</div>

As I said there in 2015, I am open to it. Since then there have been some other comments in support.

Are you volunteering time to make the changes and test it?

---

<div class="post-metadata">

**Author:** ![cmonty14](https://discourse.mailinabox.email/letter_avatar_proxy/v4/letter/c/77aa72/32.png) [@cmonty14](https://discourse.mailinabox.email/u/cmonty14)\
**Post date:** [January 19, 2024, 7:19pm UTC](https://discourse.mailinabox.email/t/migrate-to-rspamd/11400/3 "2024-01-19T19:19:30Z")

</div>

> [@JoshData](#):
>
> Are you volunteering time to make the changes and test it?

I will install and test it on my MiaB deployment and can report here.  
However, installation guides recommend to install [unbound](https://nlnetlabs.nl/projects/unbound/about/) DNS resolver, but MiaB deploys BIND9.  
What functions are provided by BIND9 in MiaB?  
Can it be replaced by unbound?

---

<div class="post-metadata">

**Author:** ![KiekerJan](https://discourse.mailinabox.email/user_avatar/discourse.mailinabox.email/kiekerjan/32/2339_2.png) [@KiekerJan](https://discourse.mailinabox.email/u/KiekerJan)\
**Post date:** [January 20, 2024, 2:13pm UTC](https://discourse.mailinabox.email/t/migrate-to-rspamd/11400/4 "2024-01-20T14:13:50Z")

</div>

It’s easy enough to replace bind9 with unbound. See [Replace bind9 with unbound by kiekerjan · Pull Request #2193 · mail-in-a-box/mailinabox · GitHub](https://github.com/mail-in-a-box/mailinabox/pull/2193) This works fine.

---

<div class="post-metadata">

**Author:** ![cmonty14](https://discourse.mailinabox.email/letter_avatar_proxy/v4/letter/c/77aa72/32.png) [@cmonty14](https://discourse.mailinabox.email/u/cmonty14)\
**Post date:** [January 20, 2024, 3:12pm UTC](https://discourse.mailinabox.email/t/migrate-to-rspamd/11400/5 "2024-01-20T15:12:01Z")

</div>

That’s great!  
I’m not fully aware of the procedure to apply your pull request to my deployment.  
Could you please advise how to proceed.

Additionally I would prefer [openresolv](https://roy.marples.name/projects/openresolv) over other similar solutions.

---

<div class="post-metadata">

**Author:** ![KiekerJan](https://discourse.mailinabox.email/user_avatar/discourse.mailinabox.email/kiekerjan/32/2339_2.png) [@KiekerJan](https://discourse.mailinabox.email/u/KiekerJan)\
**Post date:** [January 20, 2024, 4:49pm UTC](https://discourse.mailinabox.email/t/migrate-to-rspamd/11400/6 "2024-01-20T16:49:04Z")

</div>

> [@cmonty14](#):
>
> That’s great!  
> I’m not fully aware of the procedure to apply your pull request to my deployment.  
> Could you please advise how to proceed.

I suppose you could try to merge the unbound branch into your local mailinabox repository. Then you can run `sudo setup/dns.sh` to install unbound. Unfortunately, I have no step by step instructions for you.  
But, you might not need it. Bind is already a local DNS resolver, and if that is working, it should not prevent you from using rspamd

> [@](#):
>
> Additionally I would prefer [openresolv](https://roy.marples.name/projects/openresolv) over other similar solutions.

Not sure what you mean with this. One of the first words in that link is `/etc/resolv.conf` which is the file Mail-in-a-Box is adapting to use the Bind local DNS resolver.

---

<div class="post-metadata">

**Author:** ![cmonty14](https://discourse.mailinabox.email/letter_avatar_proxy/v4/letter/c/77aa72/32.png) [@cmonty14](https://discourse.mailinabox.email/u/cmonty14)\
**Post date:** [January 20, 2024, 9:42pm UTC](https://discourse.mailinabox.email/t/migrate-to-rspamd/11400/7 "2024-01-20T21:42:23Z")

</div>

Actually I deployed _Unbound_ based on [Arch Linux wiki](https://wiki.archlinux.org/title/Unbound), and applied configuration based on [this](https://www.kuketz-blog.de/pi-hole-einrichtung-und-konfiguration-mit-unbound-adblocker-teil2/). This configuration is very similar to the one you provided in your [pull request](https://github.com/mail-in-a-box/mailinabox/pull/2193).

In addition I stopped BIND9 and nsd services; I don’t need [NSD](https://www.nlnetlabs.nl/projects/nsd/about/) because I’m using external DNS.  
Using [openresolv](https://wiki.archlinux.org/title/Unbound#Using_openresolv) in combination with _Unbound_ has some advantages:

1. Simplicity
2. Wireguard readiness

Why Wireguard? - Because I want setup [Tailscale](https://tailscale.com/) on every server for secure remote access.

---

<div class="post-metadata">

**Author:** ![cmonty14](https://discourse.mailinabox.email/letter_avatar_proxy/v4/letter/c/77aa72/32.png) [@cmonty14](https://discourse.mailinabox.email/u/cmonty14)\
**Post date:** [January 21, 2024, 12:12am UTC](https://discourse.mailinabox.email/t/migrate-to-rspamd/11400/8 "2024-01-21T00:12:44Z")

</div>

> [@KiekerJan](#):
>
> This works fine.

Could you please have a look to my [new issue](https://discourse.mailinabox.email/t/cannot-send-emails/11419) related to DNS?

---

<div class="post-metadata">

**Author:** ![system](https://discourse.mailinabox.email/uploads/default/original/2X/4/4d0933d13c456b7e57f296aa6cc344525b6f0c70.png) [@system](https://discourse.mailinabox.email/u/system)\
**Post date:** [March 19, 2024, 10:02am UTC](https://discourse.mailinabox.email/t/migrate-to-rspamd/11400/9 "2024-03-19T10:02:41Z")

</div>

This topic was automatically closed after 61 days. New replies are no longer allowed.
