<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
<title type="text">Michael-John Turner</title>
<generator uri="https://github.com/jekyll/jekyll">Jekyll</generator>
<link rel="self" type="application/atom+xml" href="https://mjturner.net/feed.xml" />
<link rel="alternate" type="text/html" href="https://mjturner.net" />
<updated>2016-04-11T21:01:56+01:00</updated>
<id>https://mjturner.net/</id>
<author>
  <name>Michael-John Turner</name>
  <uri>https://mjturner.net/</uri>
  <email>mj@mjturner.net</email>
</author>


<entry>
  <title type="html"><![CDATA[Fixing OpenSMTPD Queue Entries]]></title>
  <link rel="alternate" type="text/html" href="https://mjturner.net/blog/2016/04/11/fixing-opensmtpd-queue-entries/" />
  <id>https://mjturner.net/blog/2016/04/11/fixing-opensmtpd-queue-entries</id>
  <published>2016-04-11T19:33:10+01:00</published>
  <updated>2016-04-11T19:33:10+01:00</updated>
  <author>
    <name>Michael-John Turner</name>
    <uri>https://mjturner.net</uri>
    <email>mj@mjturner.net</email>
  </author>
  <content type="html">
    &lt;p&gt;I recently ran into a problem with OpenSMTPD on one of my OpenBSD systems. Due to a misconfiguration
there were a number of entries in the mail queue with the wrong smarthost defined - unfortunately
this information is stored in the queue itself and changing &lt;code class=&quot;highlighter-rouge&quot;&gt;smtpd.conf&lt;/code&gt;
doesn’t update the queue entries.&lt;/p&gt;

&lt;p&gt;Fixing it is easy enough:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;Shut down OpenSMTPD.&lt;/p&gt;

    &lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt; # /etc/rc.d/smtpd stop
&lt;/code&gt;&lt;/pre&gt;
    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Edit the spool files - they’re in &lt;code class=&quot;highlighter-rouge&quot;&gt;/var/spool/smtpd/queue/*&lt;/code&gt;, one per email. You need to replace the &lt;code class=&quot;highlighter-rouge&quot;&gt;mta-relay&lt;/code&gt; entry with the correct value. If it’s not there, add it at the bottom of the file, along with the relevant &lt;code class=&quot;highlighter-rouge&quot;&gt;mta-relay-flags&lt;/code&gt;:&lt;/p&gt;

    &lt;blockquote&gt;
      &lt;p&gt;mta-relay: tls://smtp.example.com&lt;br /&gt;
mta-relay-flags: tls&lt;/p&gt;
    &lt;/blockquote&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Start smtpd&lt;/p&gt;

    &lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt; # /etc/rc.d/smtpd start
&lt;/code&gt;&lt;/pre&gt;
    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Restart the queue&lt;/p&gt;

    &lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt; # smtpctl schedule all
&lt;/code&gt;&lt;/pre&gt;
    &lt;/div&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Simple!&lt;/p&gt;


    &lt;p&gt;&lt;a href=&quot;https://mjturner.net/blog/2016/04/11/fixing-opensmtpd-queue-entries/&quot;&gt;Fixing OpenSMTPD Queue Entries&lt;/a&gt; was originally published by Michael-John Turner at &lt;a href=&quot;https://mjturner.net&quot;&gt;Michael-John Turner&lt;/a&gt; on April 11, 2016.&lt;/p&gt;
  </content>
</entry>


<entry>
  <title type="html"><![CDATA[The New Old Thing]]></title>
  <link rel="alternate" type="text/html" href="https://mjturner.net/blog/2016/04/09/the-new-old-thing/" />
  <id>https://mjturner.net/blog/2016/04/09/the-new-old-thing</id>
  <published>2016-04-09T19:00:15+01:00</published>
  <updated>2016-04-09T19:00:15+01:00</updated>
  <author>
    <name>Michael-John Turner</name>
    <uri>https://mjturner.net</uri>
    <email>mj@mjturner.net</email>
  </author>
  <content type="html">
    &lt;p&gt;Welcome to my new site!&lt;/p&gt;

&lt;p&gt;I’ve finally completed the migration of this site from the tired old
mix of ten year old static HTML and Wordpress to something a lot more
flexible and manageable. This new architecture also means I’ll be able
to post a lot more frequently.&lt;/p&gt;

&lt;p&gt;I never really liked my old site, so I’ve taken the decision to remove
the majority of the old content. Unfortunately this means that old links no
longer work, and I know that’s a &lt;em&gt;bad thing&lt;/em&gt;, but there was really no other way.
I have added redirections for the RSS feeds, however, so if you’re reading this
via a feed reader it should work.&lt;/p&gt;

&lt;p&gt;If not, please &lt;a href=&quot;/contact&quot;&gt;let me know&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Post title shameless stolen from &lt;a href=&quot;http://blogs.msdn.com/b/oldnewthing/&quot;&gt;Raymond Chen&lt;/a&gt;.&lt;/p&gt;

    &lt;p&gt;&lt;a href=&quot;https://mjturner.net/blog/2016/04/09/the-new-old-thing/&quot;&gt;The New Old Thing&lt;/a&gt; was originally published by Michael-John Turner at &lt;a href=&quot;https://mjturner.net&quot;&gt;Michael-John Turner&lt;/a&gt; on April 09, 2016.&lt;/p&gt;
  </content>
</entry>

</feed>