this post was submitted on 31 Oct 2023
9 points (100.0% liked)
Self Hosted - Self-hosting your services.
11399 readers
3 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
- No harassment
- crossposts from c/Open Source & c/docker & related may be allowed, depending on context
- Video Promoting is allowed if is within the topic.
- No spamming.
- Stay friendly.
- Follow the lemmy.ml instance rules.
- Tag your post. (Read under)
Important
Beginning of January 1st 2024 this rule WILL be enforced. Posts that are not tagged will be warned and if not fixed within 24h then removed!
- Lemmy doesn't have tags yet, so mark it with [Question], [Help], [Project], [Other], [Promoting] or other you may think is appropriate.
Cross-posting
- !everything_git@lemmy.ml is allowed!
- !docker@lemmy.ml is allowed!
- !portainer@lemmy.ml is allowed!
- !fediverse@lemmy.ml is allowed if topic has to do with selfhosting.
- !selfhosted@lemmy.ml is allowed!
If you see a rule-breaker please DM the mods!
founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
You don't need an SMTP server if you just want to send mail out outbound. Just use mailx.
This is the way, @mumblefish. I use
mail
frommailutils
:where
$filename
is a file containing the body content of the email.I wanted to try this first, I can see lemmy parsed a less-than into "<", which I replaced. But I'm getting no e-mails to the $recipient address. I set $emailFrom to a completely fake one, and another time as my personal, same as $recipient, address, but I'm not receiving any e-mails.
It's definitely going to go to spam since there's no SPF record. You'll need to manually whitelist that address on the receiving end.
Cannot find it in my spam-folder either, and with the mailutils
mail
I set also set the-r $emailFrom
to something that is whitelisted in my spamfilter. But maybe my mail-service provider has some other block. Could that be? Or that it looks very fishy with an e-mail with only from, to, and subject headers non-empty?You've initially said you wanted to receive it locally only. Now you're pulling external email providers into the mix. You need to set up spf and dmarc for that at the minimum. I can help you with it, but it's nowhere near as simple as just emailing a local user.
Sorry, I must not have explained myself very well. I guess it is the part on receiving on localhost. What I meant to say was that I would like the smtp, or whatever, to only be available on localhost, so that no one else on the network can use the service to send e-mails.
Postfix can be configured to only listen on localhost. Most things can be, actually.
Ah, postfix looks like what I'm looking for, thanks. Have to see if I can figure out how to configure it.
ArchWiki, as always, is amazing.
You definitely don't need dmarc for that. Don't even need dkim, really.
You are technically correct.
I tried a:
but I'm not receiving anything... hmm