Skip to content

Instantly share code, notes, and snippets.

View msimerson's full-sized avatar

Matt Simerson msimerson

View GitHub Profile
@msimerson
msimerson / gist:7d0011b085a0ac06ccdf
Last active August 29, 2015 14:20
A connection and a transaction logged to Elasticsearch
{
"_index": "smtp-connection-2015-05-06",
"_type": "haraka",
"_id": "F9B868ED-5F72-4ABD-BB9B-DB9A09CFD862",
"_score": null,
"_source": {
"karma": {
"connect": 3,
"history": 6,
"total_connects": "6",
diff --git a/plugins.js b/plugins.js
index 4ef6345..fd7d705 100644
--- a/plugins.js
+++ b/plugins.js
@@ -198,7 +198,9 @@ plugins._load_and_compile_plugin = function (name) {
}
if (utils.existsSync(__dirname + '/' + module + '.js') ||
- utils.existsSync(__dirname + '/' + module)) {
+ utils.existsSync(__dirname + '/' + module) ||
diff --git a/plugins.js b/plugins.js
index 4ef6345..8af4158 100644
--- a/plugins.js
+++ b/plugins.js
@@ -193,9 +193,8 @@ plugins._load_and_compile_plugin = function (name) {
throw 'Loading plugin ' + name + ' failed: ' + last_err;
}
var custom_require = function _haraka_require (module) {
- if (!/^\./.test(module)) {
- return require(module);
@msimerson
msimerson / gist:ec7fb081203e89e9970e
Last active May 18, 2023 06:51
Mail Toaster 6 - sample output - configure-host.sh
[~/mt6]# provision host
*** skipping fetch, running from git ***
v: 20230507
loading mail-toaster.conf
mysql enabled
toaster host: freebsd.vmware.imac27.simerson.net
email domain: imac27.simerson.net
IPv6 jail network: fd7a:e5cd:1fc1:186f:dead:beef:cafe
@msimerson
msimerson / gist:d4ae6be9e15241283f07
Last active May 18, 2023 06:56
Mail Toaster 6 - sample output - provision-base.sh
[~/mt6]# provision base
172.16.15.2
*** skipping fetch, running from git ***
v: 20230507
loading mail-toaster.conf
mysql enabled
toaster host: freebsd.vmware.imac27.simerson.net
email domain: imac27.simerson.net
@msimerson
msimerson / gist:81013613e1d4ba20913d
Last active December 28, 2015 18:39
Mail Toaster 6 - sample output - provision-dns.sh
# sh provision-dns.sh
mysql enabled
toaster host: freebsd-10-2.vmware.imac27.simerson.net
toaster domain: imac27.simerson.net
shell: /usr/local/bin/bash
safe name: stage
zroot/jails/base-10.2-RELEASE@p8 snapshot exists
*** stage cleanup ***
@msimerson
msimerson / gist:2ea2e5a986bb7f9e5b97
Last active May 18, 2023 07:12
Mail Toaster 6 - sample output - provision-mysql.sh
[~/mt6]# provision mysql
172.16.15.4
*** skipping fetch, running from git ***
v: 20230507
loading mail-toaster.conf
mysql enabled
toaster host: freebsd.vmware.imac27.simerson.net
email domain: imac27.simerson.net
@msimerson
msimerson / gist:e4db121839ca537615d8
Created December 12, 2015 21:13
Mail Toaster 6 - sample output - provision-clamav
# sh provision-clamav.sh
mysql enabled
toaster host: freebsd-10-2.vmware.imac27.simerson.net
toaster domain: imac27.simerson.net
shell: /usr/local/bin/bash
safe name: stage
zroot/jails/base-10.2-RELEASE@p8 snapshot exists
*** stage jail cleanup ***
@msimerson
msimerson / gist:096c06329535e6746fcd
Created December 12, 2015 21:19
Mail Toaster 6 - sample output - provision-avg
# sh provision-avg.sh
mysql enabled
toaster host: freebsd-10-2.vmware.imac27.simerson.net
toaster domain: imac27.simerson.net
shell: /usr/local/bin/bash
safe name: stage
zroot/jails/base-10.2-RELEASE@p8 snapshot exists
zroot/data filesystem exists
zfs create -o mountpoint=/data/avg zroot/data/avg
@msimerson
msimerson / gist:2a3c8b7a01fa3b5aa64c
Created December 12, 2015 22:01
Mail Toaster 6 - sample output - provision-spamassassin
# sh provision-spamassassin.sh
mysql enabled
toaster host: freebsd-10-2.vmware.imac27.simerson.net
toaster domain: imac27.simerson.net
shell: /usr/local/bin/bash
safe name: stage
zroot/jails/base-10.2-RELEASE@p8 snapshot exists
*** stage jail cleanup ***