• 2 posts
  • 5 comments
Joined 3 years ago
Cake day: June 14th, 2023
  • I’ve been hosting my email for about 15 years now. And now it’s used by 7 people as their daily. And yes, there have been some issues. And yes, it’s complicated. But it’s also freeing and fun. If you really want to do it, go ahead and learn the ropes. I’ve never understood the people that say “OMG, you never want to selfhost that!”. I have a VPS, and you really don’t need a beefy VPS at all for a couple of accounts and some aliases.

    VPS is a must (or co-location, but that’s more expensive). Check out VPS providers to see which are tolerant with email and how “clean” their IP reputation is. I have the Postfix+Dovecot stack, but I’m already eyeing Stalwart, because the LTS distro on my server is reaching it’s end-of-life, and if I have to go through the setup again (the switch from dovecot 2.3 to 2.4 is bumpy), I’d rather try something new. Btw, I don’t have an IT background, just been tinkering for a long time.

    So buckle up and start planing.

Hi! I’ve been thinking of setting up a Headscale control plane on my VPS and adding my NAS as a node so that I can install the tailscale client on my phone and laptop and access my services from outside of my network. I have navidrome, Immich and a few more things.

Right now I have AdGuard Home as my DNS server with DNS rewrites for my domain. *.mydomain.com points to my NAS and there I have NPMplus running that routes everything to the correct service/port.

Do I still need that with headscale? I’ve read the docs but I still don’t understand the “MagicDNS” stuff. Does that bypass my DNS server when the client is connected to the tailnet? Should I still leave it on for local traffic? And if I’m connected to the tailnet from outside, how do I propagate all the addresses?

If anyone has a pointer or experience with a similar setup I’d really appreciate some help.

  • I think I got it working. I’ve got this in /etc/default/spamd:

    OPTIONS="-x -q -u spamd --max-children 5 -H /etc/mail/spamassassin/"
    

    and this in /etc/default/spamass-milter:

    OPTIONS="-e example.com -u spamass-milter -i 127.0.0.1"
    

    And it definitely reads user prefs from the database because I can change the ‘required_hits’ to 6.7 for a given user and I see this in the logs:

    spamd[523771]: spamd: clean message (-0.2/6.7) for user@example.com:133 in 1.2 seconds, 24427 bytes.
    

    I don’t know how many different combinations of config flags I’ve tried, but these seem to do the job.

Hi,

I’m trying and failing to get spamassassin to load user prefs from a mysql database. I’m using spamass-milter and I can’t find any way in the docs to send anything. spamass fails to parse the recipient as the user and just uses it’s running user in it’s call to spamd. The database is properly configured and I can connect and set settings from roundcube. The sql config is added to local.cf.

I know that you can use spamd as a pipe, and then you can pass more variables, but I can’t figure out the correct config for this setup.

This is what I have in /etc/default/spamd: OPTIONS="-Q -x --max-children 5 -D sql,bayes -H /etc/mail/spamassassin/" I’ve also tried multiple combinations with the flags -q, without -x…

And this is what I have in /etc/default/spamass-milter OPTIONS="-u spamass-milter -x -i 127.0.0.1" Where again I’ve tried without -u, with -e domain.com to explicitly set the domain.

If anyone has any advice or can point me to a recent tutorial for Ubuntu 24.04, I would be really grateful!