Skip to content

Instantly share code, notes, and snippets.

View stevejenkins's full-sized avatar

Steve Jenkins stevejenkins

View GitHub Profile
@stevejenkins
stevejenkins / make_postfix_32.sh
Created February 1, 2013 23:41
Creates the Postfix make files for building from source on an i386 or i686 (32-bit) system without MySQL support
#/bin/sh
make makefiles CCARGS='-fPIC -DUSE_TLS -DUSE_SSL -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -DPREFIX=\\"/usr\\" -DHAS_LDAP -DLDAP_DEPRECATED=1 -DHAS_PCRE -I/usr/include/openssl -I/usr/include/sasl -I/usr/include' AUXLIBS='-L/usr/lib -L/usr/lib/openssl -lssl -lcrypto -L/usr/lib/sasl2 -lsasl2 -lpcre -lz -lm -lldap -llber -Wl,-rpath,/usr/lib/openssl -pie -Wl,-z,relro' OPT='-O' DEBUG='-g'
@stevejenkins
stevejenkins / make_postfix_32_myqsl.sh
Last active December 12, 2015 02:08
Creates the Postfix make files for building from source on an i386/I363 (32-bit) system with MySQL support
#/bin/sh
make makefiles CCARGS='-fPIC -DUSE_TLS -DUSE_SSL -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -DPREFIX=\\"/usr\\" -DHAS_LDAP -DLDAP_DEPRECATED=1 -DHAS_PCRE -I/usr/include/openssl -DHAS_MYSQL -I/usr/include/mysql -I/usr/include/sasl -I/usr/include' AUXLIBS='-L/usr/lib -L/usr/lib/openssl -lssl -lcrypto -L/usr/lib/mysql -lmysqlclient -L/usr/lib/sasl2 -lsasl2 -lpcre -lz -lm -lldap -llber -Wl,-rpath,/usr/lib/openssl -pie -Wl,-z,relro' OPT='-O' DEBUG='-g'
@stevejenkins
stevejenkins / make_postfix_64_mysql.sh
Last active December 12, 2015 02:08
Creates the Postfix make files for building from source on an x86_64 (64-bit) system with MySQL support
#/bin/sh
make makefiles CCARGS='-fPIC -DUSE_TLS -DUSE_SSL -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -DPREFIX=\\"/usr\\" -DHAS_LDAP -DLDAP_DEPRECATED=1 -DHAS_PCRE -I/usr/include/openssl -DHAS_MYSQL -I/usr/include/mysql -I/usr/include/sasl -I/usr/include' AUXLIBS='-L/usr/lib64 -L/usr/lib64/openssl -lssl -lcrypto -L/usr/lib64/mysql -lmysqlclient -L/usr/lib64/sasl2 -lsasl2 -lpcre -lz -lm -lldap -llber -Wl,-rpath,/usr/lib64/openssl -pie -Wl,-z,relro' OPT='-O' DEBUG='-g'
@stevejenkins
stevejenkins / specdiffs
Created December 19, 2013 18:15
Differences between systemd vs. SystemV versions of OpenDKIM spec file for Fedora/EPEL repos
--- OpenDKIM-Fedora/SPECS/opendkim.spec 2013-12-18 19:51:31.927514150 -0800
+++ OpenDKIM-SysV/SPECS/opendkim.spec 2013-12-18 19:51:09.221494149 -0800
@@ -1,6 +1,4 @@
-# systemd-compatible version
-
-%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
+# SystemV-compatible version
Summary: A DomainKeys Identified Mail (DKIM) milter to sign and/or verify mail
Name: opendkim
@stevejenkins
stevejenkins / config.boot.diff
Created January 1, 2016 23:31
diff -Naur between Steve Jenkins' ERLite-3 and Bryan Klingner's ER5-PoE config.boot files for Google Fiber + Ubiquiti EdgeRouter
--- config.boot.erl 2016-01-01 15:28:01.851501076 -0800
+++ config.boot.er5 2016-01-01 15:06:38.667501858 -0800
@@ -62,14 +62,20 @@
}
interfaces {
ethernet eth0 {
- address 192.168.1.1/24
- description LAN
+ address 192.168.0.1/24
+ description "Local Config Port"
@stevejenkins
stevejenkins / config.boot
Last active August 8, 2016 23:19
My config.boot on a UBNT EdgeRouter 5 PoE
firewall {
all-ping enable
broadcast-ping disable
ipv6-receive-redirects disable
ipv6-src-route disable
ip-src-route disable
log-martians enable
name WAN_IN {
default-action drop
description "WAN to Internal"
@stevejenkins
stevejenkins / UniFi
Last active November 27, 2016 15:53
SysV Init script for starting, stopping, and restarting the Ubiquiti (UBNT) UniFi Controller on non-Debian Linux systems
# MOVED TO: https://github.com/stevejenkins/unifi-linux-utils
@stevejenkins
stevejenkins / opendkim_multi_config.sh
Last active December 13, 2016 19:25
Script submitted by Almir Duarte Jr. for automating OpenDKIM key generation and configuration for multiple domains.
#!/bin/bash
# USAGE
# Install opendkim
# List all your domains in file /etc/opendkim/TrustedHosts, one per line
CHOWN="$(which chown)"
MKDIR="$(which mkdir)"
REMOVE="$(which rm)"
ECHO="$(which echo)"
COPY="$(which cp)"
@stevejenkins
stevejenkins / config.noworky
Last active January 9, 2017 23:12
ER-Lite config where remote HTTPS / SSH does not work
firewall {
all-ping enable
broadcast-ping disable
ipv6-name WAN6_IN {
default-action drop
rule 10 {
action accept
description "Allow established/related"
state {
established enable
Moved to: https://github.com/stevejenkins/Google-Fiber-EdgeRouter-Configs