News for hackers. Stuff that matters.
Re:Ask HN: Best hosted alternative to Google Workspace for e... by upofadown on Saturday February 05, 2022 @05:16PM (#30226813)
Anyone willing to spin up a mail server can do this. DKIM and SPF are only intended to establish the identity of the server. I don't know that there is any obligation on the part of someone running a mail server to police the "From:" address on an email in some specific way. Traditionally the "From:" address was considered informational. It generally represents the address that the sender considers "their" email address. A actual user identity is established by signing the email and is separate from the "From:" address.

Does mailbox.org even include the "From:" address in the DKIM signature?

Re:Ask HN: Best hosted alternative to Google Workspace for e... by 15characterslon on Sunday February 06, 2022 @02:26AM (#30230266)
As others said, DKIM always includes "from". And almost none of the emails I get are S/MIME or PGP signed.

Like you said: SPF and DMARC only authenticate the server. It's up to the server to authenticate the user.

Scenario: imagine your bank uses Mailbox.org to send emails. How would you verify that an email is legit? Any Mailbox user can send emails through Mailbox with your bank as "from" and all of these emails pass SPF and DKIM checks. Your mail server has no way to distinct a legit email from a fake one. This is why it's important that the server does this check (check that sender account and "from" match / are a valid combination).

Re:Ask HN: Best hosted alternative to Google Workspace for e... by upofadown on Sunday February 06, 2022 @08:13AM (#30232217)
Anyone that runs a mail server can generate emails with any "From:" address they want with a valid DKIM. The SPF works on the envelope address, not the "From:" address.

The actual complaint here is that mailbox.org is not policing the "From:" address and thus are providing such an ability to people that have not bothered to spin up a mail server on a domain they control.

Yeah, banks should sign their emails. I think that even Facebook does this if you give them a public key.

Re:Ask HN: Best hosted alternative to Google Workspace for e... by brewmarche on Sunday February 06, 2022 @08:20AM (#30232252)
I’m sorry I don’t get the part about DKIM. I thought the DKIM signature would only be valid if the signing SMTP server has access to the private key matching the Header-From’s domain’s designated DKIM public key.

E: by valid I meant valid and aligned (according to DMARC), sorry

Re:Ask HN: Best hosted alternative to Google Workspace for e... by upofadown on Sunday February 06, 2022 @08:37AM (#30232360)
A sender can throw anything they want in the "From:" field and then sign it. The receiver does not have to agree. What would happen is that the receiver would see that the holder of the domain was different than the domain in the "From:" address and on the basis of bad "domain alignment" could reject the email.

I now think that the DMARC stuff is a red herring and would actually help make the current mailbox.org behaviour not all that problematic (they specify "reject" in their DMARC policy). The actual point of dispute is the lack of enforcement of the "From:" address domain.

Re:Ask HN: Best hosted alternative to Google Workspace for e... by brewmarche on Sunday February 06, 2022 @08:54AM (#30232473)
Yes, lack of enforcement by mailbox.org on the Header-From when signing DKIM is the problem for DMARC IMO. It means I can’t trust a DMARC pass due to aligned DKIM.

Mailbox.org’s servers have access to 4 private keys as far as I know. These (I mean the matching public keys) are stated in mailbox.org’s DNS records. If you send from an @mailbox.org address you trust mailbox.org to do checking on the Header-From when signing it, as you have no control over which keys you state in DNS. This is the same situation as for any mail provider with a shared domain.

What’s even worse, when using mailbox.org with a custom domain they will have you state the exact same 4 keys in your domain’s DNS records for DKIM to work. There is no way to upload custom keys. So even someone with a custom domain has to trust mailbox.org to not sign strangers’ e-mails.

Re:Ask HN: Best hosted alternative to Google Workspace for e... by upofadown on Sunday February 06, 2022 @09:14AM (#30232631)
The DKIM key is in your DNS. Does mailbox.org provide a DNS service and somehow enforce what you put in there?

Added: Wait, how would that even work? You need to generate your own DKIM key.

Re:Ask HN: Best hosted alternative to Google Workspace for e... by brewmarche on Sunday February 06, 2022 @09:25AM (#30232721)
No one is forcing me, but not using it would mean I can’t have DKIM signatures, wouldn’t it? As far as I know there are no mail clients that add the signature before sending it to the MSA, but I might be wrong.
Re:Ask HN: Best hosted alternative to Google Workspace for e... by brewmarche on Sunday February 06, 2022 @09:33AM (#30232807)
Re the addendum: No, mailbox.org does not support own keys.
Re:Ask HN: Best hosted alternative to Google Workspace for e... by brewmarche on Sunday February 06, 2022 @08:57AM (#30232491)
But since DMARC will also give a passing result with aligned SPF, the Header-From checker has not only to refer from adding a DKIM signature but actually reject the e-mail completely for DMARC to be reliable.
Re:Ask HN: Best hosted alternative to Google Workspace for e... by anjbe on Saturday February 05, 2022 @06:59PM (#30227705)
> Does mailbox.org even include the "From:" address in the DKIM signature?

According to the spec, the “From:” field must be included in every DKIM signature.

https://datatracker.ietf.org/doc/html/rfc6376#section-5.4

Re:Ask HN: Best hosted alternative to Google Workspace for e... by brewmarche on Saturday February 05, 2022 @06:27PM (#30227447)
Seems like it, I just sent an e-mail with it and it resulted in

  h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
    to:to:cc:mime-version:mime-version:content-type:content-type;
Re:Ask HN: Best hosted alternative to Google Workspace for e... by brightball on Saturday February 05, 2022 @10:34PM (#30229124)
If you’re using DMARC the from and the DKIM signature must be aligned or it doesn’t pass. Simply passing any DKIM check isn’t enough.
Re:Ask HN: Best hosted alternative to Google Workspace for e... by upofadown on Sunday February 06, 2022 @08:19AM (#30232247)
Mailbox.org has a DMARC policy of "reject". So receivers that enforced DMARC and did "domain alignment" would reject the email. Does that make what mailbox.org does with the "From:" address OK?
Re:Ask HN: Best hosted alternative to Google Workspace for e... by brightball on Sunday February 06, 2022 @08:29AM (#30232315)
Not if they are still signing it with the private key for the domain.

If an email is sent with a From of @bob.com and DKIM signed using the private key for bob.com…it’s from bob.com.