Skip to content

Instantly share code, notes, and snippets.

View poolpOrg's full-sized avatar

Gilles Chehade poolpOrg

View GitHub Profile

Keybase proof

I hereby claim:

  • I am poolporg on github.
  • I am poolporg (https://keybase.io/poolporg) on keybase.
  • I have a public key whose fingerprint is 560E FF68 7D9A 20DF CD5E DF1A 8913 3036 E258 4DD1

To claim this, I am signing this object:

diff --git a/smtpd/smtpd.c b/smtpd/smtpd.c
index 126a46f..7c2d449 100644
--- a/smtpd/smtpd.c
+++ b/smtpd/smtpd.c
@@ -559,6 +559,10 @@ main(int argc, char *argv[])
errx(1, "config file exceeds SMTPD_MAXPATHLEN");
if (env->sc_opts & SMTPD_OPT_NOACTION) {
+ if (env->sc_queue_key) {
+ if (! crypto_setup(env->sc_queue_key, strlen(env->sc_queue_key)))
diff --git a/src/getaddrinfo_async.c b/src/getaddrinfo_async.c
index 7937df2..c586eaa 100644
--- a/src/getaddrinfo_async.c
+++ b/src/getaddrinfo_async.c
@@ -882,7 +882,7 @@ addrconfig_setup(struct asr_query *as)
case PF_INET:
sinp = (struct sockaddr_in *)ifa->ifa_addr;
- if (sinp->sin_addr.s_addr == INADDR_LOOPBACK)
+ if (htonl(sinp->sin_addr.s_addr) == INADDR_LOOPBACK)
dispatcher d001 mbox
dispatcher d002 mbox alias { a = b }
dispatcher d003 mbox virtual { a = b }
dispatcher d004 mbox userbase { a = b }
dispatcher d005 mbox alias { a = b } userbase { a = b }
dispatcher d006 mbox virtual { a = b } userbase { a = b }
dispatcher d101 maildir
dispatcher d102 maildir virtual { a = b }
dispatcher d103 maildir alias { a = b }
@poolpOrg
poolpOrg / chunkifier.py
Created August 27, 2017 19:54
first attempt at writing a variable block-size file chunkifier
#
# Copyright (c) 2017 Gilles Chehade <gilles@poolp.org>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
#
# Copyright (c) 2017 Gilles Chehade <gilles@poolp.org>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
#
# Copyright (c) 2017 Gilles Chehade <gilles@poolp.org>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
@poolpOrg
poolpOrg / yepchain.py
Created February 6, 2018 13:29
yepchain
#
# Copyright (c) 2018 Gilles Chehade <gilles@poolp.org>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
#! /usr/bin/env python3.6
#
# Copyright (c) 2018 Gilles Chehade <gilles@poolp.org>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
#
# Copyright (c) 2018 Gilles Chehade <gilles@poolp.org>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR