Some Bits: Nelson's log

6 posts in August 2025

DMARC reports

I set up DMARC on my new domain with p=none; rua=mailto:dmarc-reports@example.com. This means “don’t enforce any mail restrictions, but send reports to this address”. Never seen a report before! I sent a few test emails recently and got my first set of reports.

Each of three mail handlers I sent mail to emailed me back a report for 24 hours. Some had no text at all, some had a summary of the contents (like “1 success 0 failures”). Attached in the mail is an XML report in some standardized format. It seems to contain stats aggregated by source_ip with info on what domain the mail claimed to be from and whether it delivered or not. You can also infer roughly where the mails or going from who is sending you reports, although “Gmail” could be any of a zillion people. Anyway overall it looked useful and not too privacy-invading. I imagine there are tools to ingest the XML and track stats. Update: a friend recommends Postmark which I think has a free level.

Every time I try to read more about all the modern spam measures in SMTP I find a bunch of sites catering to spammers. Er, “newsletters”, which I assume 95% of the time means marketing bullshit. It’s clear why they’re the audience with money to be worth writing docs for. But I can’t help the feeling something is wrong when we’ve built so much email infrastructure that is mostly used by and circumvented by the spam industry.

I find it hilarious that spamassassin has a rule that says “any mail signed with DKIM looks a little like spam”. That’s then offset by a bunch of DKIM specific rules that rate the mail less like spam if the signature is valid, matches SPF, etc. DKIM is a net positive in spamassassin. But not entirely!

<?xml version="1.0" encoding="UTF-8" ?>
<feedback>
  <version>1.0</version>
  <report_metadata>
    <org_name>google.com</org_name>
    <email>noreply-dmarc-support@google.com</email>
    <extra_contact_info>https://support.google.com/a/answer/2466580</extra_contact_info>
    <report_id>74417372361908878</report_id>
    <date_range>
      <begin>1756425600</begin>
      <end>1756511999</end>
    </date_range>
  </report_metadata>
  <policy_published>
    <domain>example.com</domain>
    <adkim>r</adkim>
    <aspf>r</aspf>
    <p>none</p>
    <sp>none</sp>
    <pct>100</pct>
    <np>none</np>
  </policy_published>
  <record>
    <row>
      <source_ip>209.85.220.41</source_ip>
      <count>1</count>
      <policy_evaluated>
        <disposition>none</disposition>
        <dkim>pass</dkim>
        <spf>pass</spf>
      </policy_evaluated>
    </row>
    <identifiers>
      <header_from>example.com</header_from>
    </identifiers>
    <auth_results>
      <dkim>
        <domain>example.com</domain>
        <result>pass</result>
        <selector>google</selector>
      </dkim>
      <spf>
        <domain>example.com</domain>
        <result>pass</result>
      </spf>
    </auth_results>
  </record>
</feedback>

New domain Google Workspace email setup

I’m setting up my domain somebits.com for my new email address. To do this I’m using Google Workspace to handle email. This turns out to be remarkably complex: Workspace is a quite elaborated product and designed to do a whole lot more than just forward email. I’m ignoring almost all of its features and only using it to forward all email sent to me at somebits.com on to my personal Gmail account (an @gmail.com address).

Receiving somebits.com email in personal account

There’s two ways to do this. You can forward email for an individual somebits.com simply in that user’s Gmail setup. Instead I’m using Workspace tools to forward mail for the whole domain, before it gets to the user’s Gmail. I’m doing a blanket default route (ie: all addresses in somebits.com). There’s way more complex routing rules.

This is the key configuration. In Admin / Apps / Gmail there’s an option for “Default routing”. Here you can tell it that for All Recipients, Change the envelope recipient to any email address you want. I used <my.address>@gmail.com. I also clicked “Bypass spam filter for this message” and “Perform this action on non-recognized and recognized addresses”. I believe this means every single email will go to my personal gmail account.

Sending somebits.com email from personal account

I also want to be be able to send email from somebits.com from my personal @gmail.com. This is just adding another account in to Gmail. It wants to know an SMTP server: I tell it smtp.gmail.com. It also wants a username and password for logging in to the SMTP server. That’s kinda dumb: this is Gmail using Gmail! But they don’t have a special auth path. So I created an app password for it.

Email logs

Workspace has a very useful email log (“Email log search”) for figuring out problems. Note when you load it it says 0 results: you have to click the search button for it to populate.

DKIM and DMARC and SPF

I’ve set up DKIM (to sign mail), SPF (to say who can send mail for my domain), and DMARC (to say what folks should do with improperly signed mail). The Workspace docs for this are pretty good. check-auth@verifier.port25.com is also a big help in testing things. DKIM and SPF seem like basic price of entry now and the main reason I’m using Google Workspaces at all is I can have Gmail in the loop, Gmail is highly trusted globally. DMARC seems more optional, I’ve set up p=none just out of curiosity what reports I’ll get.

Account juggling

I now have two logins: my personal gmail and my new account. Every time I use any Google product I need to be careful which account I’m using. Most Google products have a switcher now. Gmail isn’t so bad. I got tripped up and accidentally turned on Workspace for my personal Gmail account because I didn’t realize which user I was clicking a button as.

Taming notification spam in Android 16

I complained on social media:

Android makes it hard to run background processes, but one hack to work around it is to display a notification. So my entire phone’s notifications screen is now filled with notifications that allow background jobs to run. GPS tracker, fitness tracker, web messages access, syncthing, doze stopper (itself to fix another Android bug). This is a very bad user experience

A friend helped me improve things. In the settings for App Notifications, for each notification channel (not the whole app), you can silence the notification and then also minimize it. This silences only this category of notification so that others still come through.

That gets it down to one line in the notification screen. It also hides the icon in the top bar. Finally, for the first time in my life I’m seeing the Screen Saver and Pixel Stand idle screen. Those weren’t being shown because there were visible notifications.

Here’s what it looks like now. Still feels spammy but much better.

New registrar, DNS transfer notes

I’m working towards establishing one of my domain names as my new primary email address. As part of that, I decided to finally move all my domain names from Hover over to a new registrar. Hover is OK but not great and hasn’t modernized their platforms in the way I’d like.

I’m testing out Porkbun as my new registar. Namecheap is also in consideration. I asked on Mastodon and these two seemed the most popular. Gandi used to be more popular but got bought and their prices were jacked way up.

Porkbun has a nice documentation page on transferring DNS without downtime. The challenge is if your domain’s whois records use your old registrar (Hover) as your DNS server. The transfer takes some unknown time to go through, several days. But the moment it goes through the old registrar will probably stop serving DNS queries, so your domain stops working until the new registrar can get in there and publish new info.

Anyway, the key is to do all the transfer on Porkbun except the authorization key part. Then set up DNS records at Porkbun. Then edit the whois records on the old registrar (Hover) to point to Porkbun’s nameservers. Then finally unlock the domain and give Porkbun the authorization key to let it go through.

I neglected to do these steps in this order and by the time I went to edit the whois at Hover I got “Registry error, domain’s nameservers not updated [Object status prohibits operation] (Code 405)”. ChatGPT claims this error is actually from Verisign, presumably a lock put in place while the transfer is underway.

Fortunately the domain I’m trying this on isn’t really used so it’s no big deal if it breaks for a bit.

I pretty much immediately got email from Hover saying that a transfer was requested and that I didn’t have to do anything to allow it, just wait five days. Notably absent is any button to press to expedite the transfer faster.

Update

The transfer went through 5 days and about 6 hours later. Hover still shows I own it in their list, but Porkbun has it in their system. The whois record is updated to Porkbun. The domain registration was extended another year.

The whois still points to Hover’s DNS servers. Happily those still work, they didn’t turn off service immediately when the domain transferred. I just updated to use Porkbun instead. That change was visible immediately on whois.com’s web interface and within a few minutes in my Linux CLI whois tool. dig +trace shows the new nameservers are being queried. I’m sure something is going to end up cached for awhile, it really would be better to change the DNS servers first. But at least it wasn’t an instant disaster because I forgot to do that before the transfer.

I was able to add a TXT record to my Porkbun DNS with a 60 second TTL. It was visible immediately from a DNS query. After I deleted it the deletion was visible immediately on a host without a cache. It did expire after a few minutes on my local Linux box where I had it cached but it may have taken longer than 60 seconds, I didn’t test fully. Anyway, I’ll say Porkbun DNS works, at least for the simple case.

Porkbun’s web whois has a form for contacting a domain owner. It actually works! Here’s the message I eventually got.

First, we are very sorry to bother you but someone has managed to jump through all of the required hoops in order to send you a message. As required by ICANN, we must allow someone to send a message to domain contacts via a web form. The person contacting you has validated their email address and passed a CAPTCHA proving that they are more than likely not a robot

Email woes

For nearly 30 years I’ve been using nelson@monkey.org as my email address. The hosting details have changed over time but for nearly twenty years I’ve been forwarding everything into Gmail. Over the years this has gotten worse and worse as email has deteriorated as a medium.

monkey.org uses OpenSRS’ HostedEmail for both sending and receiving email. It seems fine if barebones.

Sending email

The big problem I solved today was that Gmail was sending email itself and just forging the monkey.org address. This used to work seamlessly but over the years a variety of not-very-effective spam fighting technologies have made this harder and harder. The big problem is Gmail cannot sign emails for DKIM as monkey.org and DKIM is increasingly becoming required to have your mail delivered.

Today I got to learn all about SPF and DKIM and DMARC. The autoresponder at check-auth@verifier.port25.com is very helpful for diagnosing problems, there’s also a lot of web based email verifier tools online.

About a month ago Yahoo (and sbcglobal, and pacbell..) stopped accepting email from me. Often mail would just disappear but I did get one helpful bounce.

550 5.7.9 This mail has been blocked because the sender is unauthenticated. Yahoo requires all senders to authenticate with either SPF or DKIM. Authentication results: DKIM = FAILURE - SPF monkey.org with ip 209.85.167.173 = FAILURE. See https://senders.yahooinc.com/smtp-error-codes/#authentication-failures for more information.

This report is bogus: that IP address (from Google) is valid in monkey.org’s SPF records. At least it is right now. But there is no DKIM signature in my email and that’s maybe really why Yahoo bounced it. (monkey.org has a DMARC policy of p=none, which should mean sites accept email without DKIM).

The solution for all this is to configure Gmail to use monkey.org’s SMTP server to send mail so that server can DKIM sign the mail. I hate adding this extra server in the path but there’s really no way around it. It seems to work fine once I figured out the configuration.

Ugh: now a new problem, I can’t send a Google Photos URL to a hotmail friend of mine, it gets bounced as spam, I think by hotmail. This never happened before when Gmail was directly delivering the mail but now that hostedemail is involved, I get marked as spam.

Receiving mail

I’m also having trouble receiving mail.

In my old setup, monkey.org forwarded my email directly to gmail as soon as it was received, I think inside the mailer daemon itself. This forwarded started failing occasionally, silently bouncing mail back without a clear explanation. Not consistently: simple text email from the same sender would mostly get through then one out of ten would bounce. Lots of spam gets through no problem.

We changed it so monkey.org now delivers mail into the OpenSRS HostedEmail webapp. I then configured the app to forward mail to gmail. This mostly works fine, although it is yet more steps to process each message. But some messages still don’t get to gmail. Now instead of bouncing they get left in my Inbox at HostedEmail. It seems about the same pattern as the ones that bounced. My guess is Gmail doesn’t like these messages for some reason and is refusing to accept the forward. At least I can find them in this other inbox.

I may yet configure Gmail to also fetch mail out of HostedEmail via POP3. That may be a way to retrieve the messages when the forwarding fails.

Change my email address?

Part of what’s made this complicated is I don’t control monkey.org. The other folks who use monkey mostly do not use Gmail. No complaint, they have been very generous and reliable, but I’m basically relying on the help of old friends. So once again I consider whether I should change my email address, probably to the domain I use for my blog. I can set that up to be hosted by Gmail pretty easily for $7/month. I think all the configuration is pretty simple, a few DNS records to set up just once.

We are a long long way from the days when you could send email just by telnetting to port 25 and typing. And yet somehow we still don’t have end-to-end encrypted email. Probably never will.

Update: giving up

Sending mail via hostedemail is causing enough new problems that I’m giving up. I’m setting up my blog’s domain for email 100% in Google Apps. Email used to be an open medium. It has now been wrecked by spammers and captured by a few companies.

Starlink latencies 2021-2025

I’ve been pinging 8.8.8.8 via Starlink for four years now. Here’s a graph of average and minimum ping times. The average this last week has been 29ms. The minimum I’ve ever seen is 14ms. This pings through to Google DNS and is generally 1-2ms slower than the Starlink diagnostic.

What really impresses me are the systemic improvements. Things were bad in 2022 and 2023 when they added too many customers in my area (Grass Valley, CA) but then they fixed that. And average latency keeps going down. There’s also been a couple of steps down in the minimum as they’ve improved some things.

(You’ll see some anomalies in my graph of very high latencies. That’s usually when something failed and I switched to my backup ISP.)

(this is a copy of a comment on Reddit)