mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-17 14:37:02 +00:00
hooks: Fix output of command -v dkimsign added to message
When checking if the dkimsign command exists, the default hook doesn't redirect the output to /dev/null, so if the command is present it will emit unwanted output (interpreted as message headers, as expected). This patch adds the missing redirection. Amended-by: Alberto Bertogli <albertito@blitiri.com.ar> Extended commit message.
This commit is contained in:
@@ -80,7 +80,7 @@ fi
|
||||
# - certs/$DOMAIN/dkim_privkey.pem file exists.
|
||||
#
|
||||
# Note this has not been thoroughly tested, so might need further adjustments.
|
||||
if [ "$AUTH_AS" != "" ] && command -v dkimsign; then
|
||||
if [ "$AUTH_AS" != "" ] && command -v dkimsign >/dev/null; then
|
||||
DOMAIN=$( echo "$MAIL_FROM" | cut -d '@' -f 2 )
|
||||
if [ -f "domains/$DOMAIN/dkim_selector" ] \
|
||||
&& [ -f "certs/$DOMAIN/dkim_privkey.pem" ]; then
|
||||
|
||||
Reference in New Issue
Block a user