{
    "version": "https://jsonfeed.org/version/1.1",
    "title": "Indieweb  dade",
    "description": "  Indieweb  dade",
    "home_page_url": "https://0xda.de/",
    "feed_url": "https://0xda.de/tags/indieweb/index.json",
    "language": "en",
    "authors": [
        {
            "name": "0xdade",
            "url": "https://0xda.de",
            "avatar": "https://0xda.de/img/dade-transparent-logo.png"
        }
    ],
    "items": [
        {
            "title": "Helm to Mailinabox",
            "date_published": "2022-12-26T23:12:20-08:00",
            "date_modified": "2024-03-17T13:11:03-07:00",
            "id": "https://0xda.de/blog/2022/12/helm-to-mailinabox/",
            "url": "https://0xda.de/blog/2022/12/helm-to-mailinabox/",
            "content_html": "\u003cp\u003eI\u0026rsquo;ve been using a personal email server called Helm for the past few years to run my mail, and I\u0026rsquo;ve loved it. It did come with an annual fee of $99, which was used to pay for the \u0026ldquo;Gateway\u0026rdquo; server that they ran in AWS, along with support costs etc. But the mail lived in my apartment had a public IP address that trafficked all of my connections and all of my email. I liked the idea of having my mail in my apartment, and Helm made it really easy to do so.\u003c/p\u003e\n\u003cp\u003eUnfortunately, Helm is shutting down in a few days, and I have to migrate all of my mail off of it. Despite running the server in my apartment for the last several years, it wasn\u0026rsquo;t really \u003cem\u003emy\u003c/em\u003e server, in that I don\u0026rsquo;t have a shell on it. I\u0026rsquo;m sure I could have started working to figure out how to pull that off when I got the shut down notice, but instead I said \u0026ldquo;Eh I\u0026rsquo;ll have plenty of time.\u0026rdquo; And here we are, shutdown is in 4 days.\u003c/p\u003e\n\u003cp\u003eInstead of trying to break into my own little triangle server of email, I decided I\u0026rsquo;d use this as an opportunity to run a mail-in-a-box server and try to migrate my mail to it. Mail-in-a-box has been around for some time and claims to be very easy to setup, albeit not supporting many configuration options. But having manually run a mail server before, I\u0026rsquo;ll take easy over highly customizable any day. I\u0026rsquo;m quite familiar with setting up SPF, DKIM, DMARC, the importance of a PTR record, etc. Hell, I\u0026rsquo;m even familiar with setting up MTA-STS. But it\u0026rsquo;s a chore, and easy sounds nice.\u003c/p\u003e\n\u003cp\u003eUnfortunately, since I don\u0026rsquo;t have a shell on my Helm server, I can\u0026rsquo;t just use doveadm to sync the mailbox to a new server and keep it synced while transferring DNS (both helm and mail-in-a-box insist on managing DNS themselves, which does make management easier but also makes migration kind of annoying). Instead, I\u0026rsquo;ll have to sync my mailboxes one at a time.\u003c/p\u003e\n\u003ch2 id=\"setting-up-mail-in-a-box\"\u003eSetting up Mail-in-a-box\u003c/h2\u003e\n\u003cp\u003eThis process really was as easy as it says on the tin. I was one curl | sudo bash away from a functional mail server. The experience was a little clunky at first, since it didn\u0026rsquo;t tell me to setup DNS during the installation (I couldn\u0026rsquo;t have, anyways, at least not yet), so I had to access via the IP address directly. A few sudo failed to resolve hostname errors later, and I was in the mail-in-a-box web admin panel.\u003c/p\u003e\n\u003cp\u003eI added my mailboxes as new users in mail-in-a-box, and then, without logging into those mailboxes, I took to my terminal to get doveadm prepared.\u003c/p\u003e\n\u003ch2 id=\"migrating-over-imap-with-doveadm\"\u003eMigrating over IMAP with doveadm\u003c/h2\u003e\n\u003cp\u003eThe documentation provided by dovecot is a little iffy on this topic. It\u0026rsquo;s technically all there, and technically all correct. But if you\u0026rsquo;ve never done it before, then it seems to make a few assumptions that I struggled to understand at first. The documentation gives some config settings to set, but doesn\u0026rsquo;t really tell you where to set them. After some googling and reviewing the config file of the version of dovecot I was running, I decided I should put the config in \u003ccode\u003e/etc/dovecot/conf.d/dovecot-migration.conf\u003c/code\u003e. After putting the file in the right place and setting my client configuration up to talk to the Helm server, I was ready to \u003ccode\u003esystemctl reload dovecot\u003c/code\u003e and get ready to run the command.\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" style=\"color:#c6d0f5;background-color:#303446;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;\"\u003e\u003ccode class=\"language-fallback\" data-lang=\"fallback\"\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eroot@box:/etc/dovecot# cat conf.d/dovecot-migration.conf\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e# these are supported by standard adhering servers\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eimapc_features = rfc822.size fetch-headers\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e# If the old IMAP server uses INBOX. namespace prefix, set:\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e#imapc_list_prefix = INBOX\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e# Remote hostname\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eimapc_host = helm.\u0026lt;mydomain\u0026gt;.org\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e## if you are using TLS\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eimapc_ssl = imaps\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eimapc_port = 993\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003email_prefetch_count = 20\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e#imapc_ssl_verify = no\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e## these default to system\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003essl_client_ca_dir = /etc/ssl/certs\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e# or\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e#ssl_client_ca_file = /etc/ssl/certs/ca-certificates.crt\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eimapc_user = %u\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003eimapc_password = \u0026lt;my_old_password_from_the_helm\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eProvided the configuration is correct and dovecot loaded it, all that\u0026rsquo;s left is to backup the mail to my new server.\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003edoveadm -o mail_fsync=never backup -R -u dade@\u0026lt;mydomain\u0026gt;.org imapc:\u003c/code\u003e\u003c/p\u003e\n\u003cp\u003eAfter this command completes, I can head over to the roundcube app provided by mail-in-a-box and make sure that my emails are all present. I repeated this step for each mailbox I needed to migrate, by just changing the username and password as necessary.\u003c/p\u003e\n\u003ch2 id=\"finishing-setup-for-mail-in-a-box\"\u003eFinishing setup for mail-in-a-box\u003c/h2\u003e\n\u003cp\u003eAfter migrating my mail, it was just about time to cut over my DNS. Technically a few emails could come in between when I did the backup and when I cut over DNS, but we\u0026rsquo;ll worry about that later.\u003c/p\u003e\n\u003cp\u003eThe mail-in-a-box admin panel has a very handy status page that lists out the things that still need to be configured. So first, I\u0026rsquo;ll head over to Gandi and set the glue records\u003csup id=\"fnref:1\"\u003e\u003ca href=\"#fn:1\" class=\"footnote-ref\" role=\"doc-noteref\"\u003e1\u003c/a\u003e\u003c/sup\u003e for \u003ccode\u003ens1.box.\u0026lt;mydomain\u0026gt;.org\u003c/code\u003e and \u003ccode\u003ens2.box.\u0026lt;mydomain\u0026gt;.org\u003c/code\u003e, and then update my nameservers to no longer point at AWS and instead point at my glue records. The glue records point to my mail-in-a-box server.\u003c/p\u003e\n\u003cp\u003eAfter updating DNS, I sat back for a little while, chatting with a friend about IP based mail reputation and \u003ca href=\"https://chown.me/blog/getting-my-own-asn\"\u003egetting our own ASNs\u003c/a\u003e, until DNS did its thing and then mail-in-a-box was able to resolve all the DNS names correctly. Once mail-in-a-box became the nameserver, it also became the mail server. All new mail should be going to the new mail server and not to my helm any longer. We can test this by sending a quick email and making sure we receive it via roundcube on the mail-in-a-box server.\u003c/p\u003e\n\u003ch2 id=\"retrieving-the-automatic-backups\"\u003eRetrieving the automatic backups\u003c/h2\u003e\n\u003cp\u003eI try to keep most of my servers fairly locked down, which includes setting up administrative services (such as ssh) to only accept connections from a bastion server. I also don\u0026rsquo;t like services on my home network to be listening on the internet (e.g. I don\u0026rsquo;t want to port forward for my NAS). But I need to get the automatic backups that are being created by the mail-in-a-box provided duplicity service, and I need to be able to do it on a regular schedule, so that even if the server goes down, I can recover my mail. Mail-in-a-box supports many backup destinations, but I don\u0026rsquo;t really want to pay for additional commercial services, especially when I have tens of terabytes of free space at home.\u003c/p\u003e\n\u003cp\u003eEnter Tailscale. I\u0026rsquo;ve been using tailscale for my personal devices for several months now and have been pleased with how easy it makes it to connect my devices. Installing tailscale and getting the server added to my tailnet was remarkably easy, following the instructions for \u003ca href=\"https://tailscale.com/kb/1187/install-ubuntu-2204/\"\u003esetting up tailscale on ubuntu 20.04\u003c/a\u003e, then I added another ufw firewall rule for allowing incoming traffic from my tailnet, via \u003ccode\u003esudo ufw allow in on tailscale0\u003c/code\u003e. Now I can reach the server over the internet via my bastion, or via my tailnet.\u003c/p\u003e\n\u003cp\u003eMy Synology DiskStation is also running tailscale, so now I can setup a scheduled task on my Synology to automatically rsync from the server to a local shared folder. I chose to go this direction because it was going to be easier to setup than having the mail-in-a-box rsync to the Synology, since the Synology doesn\u0026rsquo;t seem to support setting an SSH key for rsync users, and also rsync seems to require that users be Synology administrators to use it?? Absolutely trash tier design, so instead we\u0026rsquo;ll make the synology pull the encrypted backups from the remote service daily.\u003c/p\u003e\n\u003cp\u003eAnother important thing, before going any further, is to save the secret key used by mail-in-a-box (i.e. duplicity) to a safe place, since I\u0026rsquo;ll need that to decrypt the backups in the future. I saved mine to my password manager vault.\u003c/p\u003e\n\u003cp\u003eI haven\u0026rsquo;t finished setting up automatic backups to my personal NAS yet, but I\u0026rsquo;ll update this page if/when I do. It should be pretty simple, just need to actually spend the time working through it.\u003c/p\u003e\n\u003cdiv class=\"footnotes\" role=\"doc-endnotes\"\u003e\n\u003chr\u003e\n\u003col\u003e\n\u003cli id=\"fn:1\"\u003e\n\u003cp\u003eGlue records are a way to associate a hostname with an IP address at the registry level. This is necessary if your domain is going to be hosting it\u0026rsquo;s own nameservers, since otherwise resolvers would get stuck in a loop.\u0026#160;\u003ca href=\"#fnref:1\" class=\"footnote-backref\" role=\"doc-backlink\"\u003e\u0026#x21a9;\u0026#xfe0e;\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003c/ol\u003e\n\u003c/div\u003e\n"
        },
        {
            "title": "Joining the fediverse",
            "date_published": "2022-12-18T16:46:00-08:00",
            "date_modified": "2024-03-17T13:11:03-07:00",
            "id": "https://0xda.de/blog/2022/12/joining-the-fediverse/",
            "url": "https://0xda.de/blog/2022/12/joining-the-fediverse/",
            "content_html": "\u003cp\u003eI\u0026rsquo;ve joined the fediverse after Musk banned linking to other social media sites on Twitter today. Twitter is chaotic now, but not in the cool \u0026ldquo;Let\u0026rsquo;s smoke cigarettes behind the dumpster fire\u0026rdquo; way, and more in the \u0026ldquo;Let\u0026rsquo;s watch dad go through a midlife divorce crisis, join a nickelback cover band, wear skinny jeans, and start fights with all of his friends\u0026rdquo; kind of way.\u003c/p\u003e\n\u003cp\u003eI added the mastodon SVG to my homepage, but you can find me at \u003ca href=\"https://crime.st/@dade\"\u003e@dade@crime.st\u003c/a\u003e.\u003c/p\u003e\n\u003cp\u003eCrime.st is a server that I host and intend to only offer a select few others accounts on. I\u0026rsquo;d also love to setup a \u003ca href=\"https://tilde.club/\"\u003etildeverse\u003c/a\u003e server that people can have access to, as I have really loved the tilde community that has sprung up. But there\u0026rsquo;s something\u0026hellip; sketchy about offering all my closest hacker friends to have a shell on a regular old linux box on the internet. I don\u0026rsquo;t trust my own system administration skills enough to keep that safe lol.\u003c/p\u003e\n\u003cp\u003eAnyways, short post to announce my new social media presence. I haven\u0026rsquo;t been using twitter as much this past year anyways, so maybe mastodon will inspire me to get back to it.\u003c/p\u003e\n"
        },
        {
            "title": "On Decentralizing Content",
            "date_published": "2020-01-24T23:35:10-08:00",
            "date_modified": "2025-03-18T21:01:53-07:00",
            "id": "https://0xda.de/blog/2020/01/on-decentralizing-content/",
            "url": "https://0xda.de/blog/2020/01/on-decentralizing-content/",
            "content_html": "\u003cp\u003eI am tired of only ever writing on the bird hell site and then losing the few good thoughts that do ooze out of me in a sea of my own bullshit. I miss the days of my first website. No, not Microsoft Frontpage, or the use of \u003ccode\u003e\u0026lt;table\u0026gt;\u003c/code\u003e tags for all of my formatting, or the 2px tall straight line images that I used as separators because border-radius had not blessed the masses. Especially not the gratuitous use of \u003ccode\u003e\u0026lt;marquee\u0026gt;\u003c/code\u003e and \u003ccode\u003e\u0026lt;blink\u0026gt;\u003c/code\u003e \u003ca href=\"https://www.google.com/search?q=blink+tag\"\u003etags\u003c/a\u003e.\u003c/p\u003e\n\u003cp\u003eWith the advent of social media, I think we generally lost something wonderful. A place that belongs to us, where we can write about whatever we want, without the pressure of getting likes and retweets and favs. I\u0026rsquo;m 100% going to tweet a link to this blog post and then still rake in those sweet, sweet internet points. But I can write my thoughts out longer here. I\u0026rsquo;d be like 7 tweets in by now if this was a thread. I\u0026rsquo;m honestly not even sure I can think in more than 280 characters at a time, anymore. But I\u0026rsquo;d like to try.\u003c/p\u003e\n\u003cp\u003eI\u0026rsquo;d really love to visit more people\u0026rsquo;s blogs and read their longer content and see how they choose to represent themselves online. I\u0026rsquo;d like to share that with others, too. With that in mind, I\u0026rsquo;m adding a \u003ca href=\"/webring\"\u003ewebring\u003c/a\u003e to my website. It doesn\u0026rsquo;t necessarily have to be a real web ring, I\u0026rsquo;m not only going to add you to my site if you add me to yours. But I do have some criteria that I\u0026rsquo;d really like to encourage people to do, with a few reasons for each. These criteria are:\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003eIt\u0026rsquo;s your personal site or an independent organization site. I don\u0026rsquo;t want to link to your company blog. The world has enough of that.\u003c/li\u003e\n\u003cli\u003eIt\u0026rsquo;s served over https. Https is for more than just sensitive information these days. It protects the people who visit your website from person-in-the-middle content injection. \u003ca href=\"https://letsencrypt.org/getting-started/\"\u003eLetsencrypt\u003c/a\u003e makes Https easy.\u003c/li\u003e\n\u003cli\u003eIt has a blog or other content feed. A website that never changes is fine and all, but I\u0026rsquo;d like to share with people who are interested in adding more content rather than just hosting a simple \u0026ldquo;this is how you contact me\u0026rdquo; page or a single page resume. Show_me_what_you_got.jpeg\u003c/li\u003e\n\u003cli\u003eIt has an RSS feed. I miss RSS. It was so nice. Now I have to risk seeing people\u0026rsquo;s reddit comments when I want to see new content. Or worse, the orange site. *shudders* My site has an \u003ca href=\"/blog/index.xml\"\u003eRSS feed\u003c/a\u003e available. The static site generator I use, \u003ca href=\"https://gohugo.io/\"\u003eHugo\u003c/a\u003e, makes it for me automatically.\u003c/li\u003e\n\u003cli\u003e\u003cem\u003eOptional\u003c/em\u003e (but preferred): It has an onion address and is accessible via the Tor network. I wrote a pretty \u003ca href=\"https://0xda.de/blog/2019/11/building-a-hidden-service-from-scratch/\"\u003ecomprehensive blogpost\u003c/a\u003e for building a hidden service from scratch, but you probably won\u0026rsquo;t need all of these steps. There are plenty of guides online about setting up hidden services, though. I encourage you to go looking. This website has a hidden service available, too. \u003ca href=\"http://dadedade5akzwc4p.onion/\"\u003edadedade5akzwc4p.onion\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003eThere are lots of people in infosec who I respect who have their own sites where they publish content. Some of them:\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://swagitda.com/\"\u003eKelly Shortridge\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://tisiphone.net/\"\u003eLesley Carhart\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://mg.lol/blog/\"\u003eMG\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://gru.gq/\"\u003eGrugq\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://decentsecurity.com/\"\u003eSwiftOnSecurity\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://danielmiessler.com/blog/\"\u003eDaniel Miessler\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://trmm.net/\"\u003eTrammell Hudson\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://blog.jessfraz.com/\"\u003eJessie Frazelle\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003eThere are tons and tons more, these are just some that I recommend you check out off the top of my head. These are sites that I\u0026rsquo;m going to add to my webring page today.\u003c/p\u003e\n\u003cp\u003eIf you\u0026rsquo;d like to be added, send me a link to your site at \u003ca href=\"https://twitter.com/0xdade\"\u003e0xdade\u003c/a\u003e on the bird site or dade ​​[a​t]​​ actualcrimes ​​[d​o​t]​​ org (I added \u003ca href=\"https://twitter.com/0xdade/status/1215061340282179584\"\u003ezero width spaces\u003c/a\u003e to this so that bots won\u0026rsquo;t scrape it as readily. Please type it in manually.) Extra bonus points if you include an onion link for your site in the message as well. We can be darknet buddies. OooooOooOoooo SpooOoooOoooOOOkY *darknet*\u003c/p\u003e\n"
        }
        ]
}
