Fix #5 by shortening the cmdline parameters

This commit is contained in:
Heiko Reese
2021-08-21 18:53:11 +02:00
parent 7eed55a274
commit 6a352fb855

View File

@ -2,8 +2,11 @@
set -e set -e
LIB=`pwd`/libexim-encrypt-dlfunc.so # copy to /tmp to keep call to exim under 256 chars (prevent problems on Ubuntu)
CLEARTEXT="X-Originating-IP: [dead:beef:dead:beef:dead:beef:dead:beef]" install -t /tmp libexim-encrypt-dlfunc.so
LIB=/tmp/libexim-encrypt-dlfunc.so
CLEARTEXT="127.88.99.23" # keep short; see above
PASSWORD="`openssl rand -base64 32`" PASSWORD="`openssl rand -base64 32`"
CIPHERTEXT=$(exim -be "\${dlfunc{${LIB}}{sodium_crypto_secretbox_encrypt_password}{${PASSWORD}}{${CLEARTEXT}}}") CIPHERTEXT=$(exim -be "\${dlfunc{${LIB}}{sodium_crypto_secretbox_encrypt_password}{${PASSWORD}}{${CLEARTEXT}}}")