this post was submitted on 14 Apr 2024
32 points (92.1% liked)

Selfhosted

60542 readers
1197 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the link in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post. )

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS
 

I'm looking for a simple sendmail replacement to receive local mail, such as from cron and service failures and forward it to on to a real SMTP server.

I have used msmtpd successfully but thought I'd ask if folks have other solutions they like.

you are viewing a single comment's thread
view the rest of the comments
[–] atzanteol@sh.itjust.works 6 points 2 years ago (3 children)

ssmtp is what I've used before.

[–] markstos@urbanists.social 6 points 2 years ago (2 children)

@atzanteol @markstos@lemmy.world

ssmtp is unmaintained.

msmtp is the recommended successor. The Arch wiki recommends also considering OpenSMTPD, which I haven't looked at yet.

https://wiki.archlinux.org/title/SSMTP

[–] EinfachUnersetzlich@lemm.ee 1 points 2 years ago

I just started using OpenSMTPD as a backup relay and it seems to work for that. Very lightweight and easy to set up.

[–] mbirth@lemmy.mbirth.uk 2 points 2 years ago* (last edited 2 years ago)

ssmtp is also my go-to for this. Or dma (DragonFly Mail Agent) - if available - which provides a queue in case the delivery to the smarthost fails. But as it's not running as a daemon (saving resources), so you have to setup a regular cronjob to process the queued messages.

[–] synestine@sh.itjust.works 1 points 2 years ago

I use ssmtp as well for a simple sendmail replacement. It takes over the sendmail command, doesn't open any ports. You configure it for the domain you want and tell it what server to send everything to and it works.