Skip to content

Instantly share code, notes, and snippets.

View olemd's full-sized avatar

Ole-Morten Duesund olemd

View GitHub Profile
@olemd
olemd / 10-buspirate.rules
Last active September 15, 2016 08:04
udev-rule for my particular buspirate 3.6
SUBSYSTEM=="tty", ATTRS{serial}=="A60008418C10", SYMLINK+="buspirate"
@olemd
olemd / Disabling outgoing mail delivery over IPv6 with exim on Debian.md
Last active September 13, 2021 08:51
How to disable IPv6-based SMTP delivery with exim on Debian

IPv6 is great, but sometimes it's troublesome. SMTP over IPv6 is particularly troublesome if you're talking to Google (and probably others as well)

If you for some reason don't have a correct PTR record, you'll end up with a lots of refused mail and logs pointing you to https://support.google.com/mail/answer/81126?p=ipv6_authentication_error&rd=1#authentication

One way to fix this is to fall back to IPv4 only for outgoing SMTP. Given a Debian installation with split-config exim, the simplest way to do this seems to be as follows:

  • copy /etc/exim4/conf.d/router/200_exim4-config_primary to 200_exim4-config_primary.rul
  • The second "dnslookup:" router is used for remote smtp-delivery, adding 0::0/0 to the ignore_target_hosts will make sure that no AAAA-records are used for later transport

change :

Keybase proof

I hereby claim:

  • I am olemd on github.
  • I am olemd (https://keybase.io/olemd) on keybase.
  • I have a public key ASAJVbltf0TBwUZh0wQeQWr-hJD7M3INuJivbYlWa0L2rQo

To claim this, I am signing this object:

@olemd
olemd / ruby-2.0.0-p481-debian-stretch.patch
Last active March 1, 2016 23:13
This gist will make ruby 2.0.0-p481 compile on debian stretch with up-to-date (as of March 2016) openssl libraries. Install with "curl raw-gist-url | rbenv install --patch 2.0.0-p248". Adapted from https://github.com/rbenv/ruby-build/wiki#openssl-sslv3_method-undeclared-error
diff --git a/ext/openssl/extconf.rb b/ext/openssl/extconf.rb
index f4afb86..3e1bd40 100644
--- a/ext/openssl/extconf.rb
+++ b/ext/openssl/extconf.rb
@@ -103,6 +103,9 @@ have_func("OPENSSL_cleanse")
have_func("SSLv2_method")
have_func("SSLv2_server_method")
have_func("SSLv2_client_method")
+have_func("SSLv3_method")
+have_func("SSLv3_server_method")