@vegetaaaaaaa@lemmy.world avatar

vegetaaaaaaa

@vegetaaaaaaa@lemmy.world

This profile is from a federated server and may be incomplete. For a complete list of posts, browse on the original instance.

vegetaaaaaaa , (edited ) to Selfhosted in Recommendation for outgoing-only SMTP server
@vegetaaaaaaa@lemmy.world avatar

You can definitely replace senders with correct mail addresses for relaying through SMTP servers that expect them (this is what I do):

# /etc/msmtprc
account default
...
host smtp.gmail.com
auto_from on
auth on
user myaddress
password hunter2

# Replace local recipients with addresses in the aliases file
aliases /etc/aliases
# /etc/aliases
mailer-daemon: postmaster
postmaster: root
nobody: root
hostmaster: root
usenet: root
news: root
webmaster: root
www: root
ftp: root
abuse: root
noc: root
security: root
root: default
www-data: root
default: myaddress@gmail.com

(the only thing I changed from the defaults in the aliases file is adding the last line)

This makes it so all/most system accounts susceptible to send mail are aliased to root, and root in turn is aliased to my email address (which is the one configured in host/user/password in msmtprc)

Edit: I think it's actually the auto_from option which interests you. Check the msmtp manpage

vegetaaaaaaa , to Selfhosted in Migrate from nextcloud photo backups to immich?
@vegetaaaaaaa@lemmy.world avatar

Don't mind him. He's always there ranting about who knows what whenever software he dislikes is mentioned. Lookup his comment history for more of the same.

Easiest method to summon him is to mention Nextcloud and Proxmox in the same sentence.

vegetaaaaaaa , to Selfhosted in Running DNS server in Docker
@vegetaaaaaaa@lemmy.world avatar

Usually you would have a second DNS resolver configured in /etc/resolv.conf (or whatever name resolution config system you are using, resolvconf, systemd-networkd, etc). The system will fall back to this resolver if the first resolver fails to respond (and/or replies NXDOMAIN, I'm not sure. The exact order and fallback conditions may vary depending on which system you use). This can be another dnsmasq instance, a public DNS resolver, your ISP's resolver, etc. This allows at least basic DNS resolution to work before your dnsmasq instance comes back up.

I would also add automatic monitoring for dnsmasq (either check that the service/container is running, or check the TCP connection to port 53, or check that DNS resolution is working for a known domain, etc)

vegetaaaaaaa , to Selfhosted in Recommendation for outgoing-only SMTP server
@vegetaaaaaaa@lemmy.world avatar

msmtp never failed me

vegetaaaaaaa , to Selfhosted in Running DNS server in Docker
@vegetaaaaaaa@lemmy.world avatar

Not an answer but still relevant: I actively avoid enabling unattended-upgrades for third-party repositories like Docker (or anything that is not an official Debian repository) because they don't have the same stability guarantees, and rely on other upgrade notification methods instead.

how bad of an idea is this to run a DNS in docker and use it for the host and other containers?

Personally I would simply install dnsmasq directly on the host because it is one apt install and a configuration file away. Keep it simple.

vegetaaaaaaa , to Selfhosted in what will be my next server operating system (Fedora Server, Fedora CoreOS, NixOS), your experience and opinion
@vegetaaaaaaa@lemmy.world avatar

See you back on Debian in a few months

vegetaaaaaaa , to Selfhosted in Notification when new app versions are released
@vegetaaaaaaa@lemmy.world avatar

RSS feeds

vegetaaaaaaa , (edited ) to Selfhosted in Introducing selfh.st/apps, a Directory of Self-Hosted Software
@vegetaaaaaaa@lemmy.world avatar

How does this compare to https://awesome-selfhosted.net/ ?

vegetaaaaaaa , to Selfhosted in Moving away from Nextcloud AIO, where do I start setting up a Nextcloud instance WITHOUT Docker?
@vegetaaaaaaa@lemmy.world avatar
vegetaaaaaaa , to Selfhosted in How should I do backups?
@vegetaaaaaaa@lemmy.world avatar
vegetaaaaaaa , to Selfhosted in what can I host on a webserver?
@vegetaaaaaaa@lemmy.world avatar

If this is a "shared hosting" type of server (LAMP stack), you can usually run PHP applications (assuming they are pre-packaged and don't need composer install or similar during the install process). Check https://awesome-selfhosted.net/platforms/php.html

vegetaaaaaaa , to Selfhosted in Self-hosted video channel
@vegetaaaaaaa@lemmy.world avatar

I think Peertube would be overkill for a single channel, but it's the closest to YouTube in terms of features (multiple formats/transcoding, comments, etc). Otherwise I would just rip the channel with yt-dlp and setup a "mirror" on something simple like a static site or blog. Find something that works, then automate (a simple shell script + cron job would do the trick).

vegetaaaaaaa , to Selfhosted in Replacing CD Collection
@vegetaaaaaaa@lemmy.world avatar

On my desktop I do this with quodlibet alongside the KDE connect applet + KDE connect android app, which lets the phone control media players on the desktop. You probably don't want to run a full desktop environment just for this, but it's a good option if you already have a desktop PC with decent speakers.

Mentioning it just in case, because it works for me. If you're looking for a purely headless server there are other good suggestions in this thread.

vegetaaaaaaa , to Selfhosted in Docker or podman?
@vegetaaaaaaa@lemmy.world avatar

You could create the alias alias docker="podman"

There's even an official Debian package that takes care of this for you: https://packages.debian.org/bookworm/podman-docker

vegetaaaaaaa , to Selfhosted in How to auto-reboot if CPU load too high?
@vegetaaaaaaa@lemmy.world avatar

I can manually monitor but it doesn’t happen just then

Setup proper monitoring with history. That way yo don't have to babysit the server, you can just look at the charts after a crash. I usually go with netdata

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • test
  • worldmews
  • mews
  • All magazines