<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: B.B.S.</title>
    <description>The latest articles on DEV Community by B.B.S. (@blackbastionsystems).</description>
    <link>https://dev.to/blackbastionsystems</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3271142%2F235b33c8-6bc7-4820-ad18-2158aa5c9206.png</url>
      <title>DEV Community: B.B.S.</title>
      <link>https://dev.to/blackbastionsystems</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/blackbastionsystems"/>
    <language>en</language>
    <item>
      <title>Email-to-Webhook Gateway in Go - Updated</title>
      <dc:creator>B.B.S.</dc:creator>
      <pubDate>Tue, 17 Jun 2025 16:24:37 +0000</pubDate>
      <link>https://dev.to/blackbastionsystems/build-your-own-email-to-webhook-gateway-in-go-smtphook-is-live-27eb</link>
      <guid>https://dev.to/blackbastionsystems/build-your-own-email-to-webhook-gateway-in-go-smtphook-is-live-27eb</guid>
      <description>&lt;h4&gt;
  
  
  I just open-sourced SMTPHook — a self-hosted email ingestion service written in Go. If you've ever wanted to turn &lt;strong&gt;incoming emails&lt;/strong&gt; into structured &lt;strong&gt;webhook events&lt;/strong&gt; (e.g. to ping a pager, log alerts, trigger bots, etc.), this tool is for you. If it works for you consider sponsor me with a coffee &lt;a href="https://buymeacoffee.com/voidwatch" rel="noopener noreferrer"&gt;https://buymeacoffee.com/voidwatch&lt;/a&gt;
&lt;/h4&gt;




&lt;h3&gt;
  
  
  What It Does
&lt;/h3&gt;

&lt;p&gt;SMTPHook is a modular platform that:&lt;/p&gt;

&lt;p&gt;✅ Accepts SMTP emails via &lt;a href="https://github.com/axllent/mailpit" rel="noopener noreferrer"&gt;Mailpit&lt;/a&gt;&lt;br&gt;&lt;br&gt;
✅ Parses raw emails into structured JSON&lt;br&gt;&lt;br&gt;
✅ Forwards the payload to your webhook endpoint&lt;br&gt;&lt;br&gt;
✅ Includes retry logic, logging, health checks&lt;br&gt;&lt;br&gt;
✅ Supports full local testing with &lt;code&gt;swaks&lt;/code&gt;  &lt;/p&gt;


&lt;h2&gt;
  
  
  Example Use Cases
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Alerting: Email → Webhook → PagerDuty / Discord / Slack
&lt;/li&gt;
&lt;li&gt;Archiving: Email → JSON → S3 / DB / Elasticsearch
&lt;/li&gt;
&lt;li&gt;Automation: Email triggers CI/CD, bots, or workflows
&lt;/li&gt;
&lt;li&gt;Dev Testing: No need to poll real mailboxes anymore&lt;/li&gt;
&lt;/ul&gt;


&lt;h2&gt;
  
  
  ⚡ Quick Start
&lt;/h2&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone git@github.com:voidwatch/SMTPHook-Golang.git
&lt;span class="nb"&gt;cd &lt;/span&gt;SMTPHook-Golang
&lt;span class="nb"&gt;chmod&lt;/span&gt; +x setup-parser.sh
./setup-parser.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Then send a test email (if you set up the test env with setup.sh:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;swaks &lt;span class="nt"&gt;--to&lt;/span&gt; &lt;span class="nb"&gt;test&lt;/span&gt;@example.com &lt;span class="nt"&gt;--server&lt;/span&gt; localhost:1025 &amp;lt; email.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And receive it on your webhook.&lt;/p&gt;




&lt;h2&gt;
  
  
  🛠 Technologies Used
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Go (all components)&lt;/li&gt;
&lt;li&gt;Mailpit for dev SMTP&lt;/li&gt;
&lt;li&gt;Podman + Compose&lt;/li&gt;
&lt;li&gt;A dash of Curl and a bit of swaks&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔗 GitHub
&lt;/h2&gt;

&lt;p&gt;📡 &lt;a href="https://github.com/voidwatch/SMTPHook-Golang" rel="noopener noreferrer"&gt;Check out SMTPHook on GitHub →&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I’d love your feedback, contributions, or ideas. If you find this useful and want to support the project, stars or donations are always welcome!&lt;/p&gt;




&lt;h2&gt;
  
  
  🙏 Support &amp;amp; Contributions
&lt;/h2&gt;

&lt;p&gt;If you're an indie devops engineer, or just love hacking with Go and automation, I’d love your thoughts.&lt;br&gt;&lt;br&gt;
DM me or check the repo for sponsor links.&lt;br&gt;
&lt;a href="https://buymeacoffee.com/voidwatch" rel="noopener noreferrer"&gt;https://buymeacoffee.com/voidwatch&lt;/a&gt;&lt;/p&gt;

</description>
      <category>go</category>
      <category>smtp</category>
      <category>webhook</category>
      <category>parser</category>
    </item>
  </channel>
</rss>
