author | Thor77
<thor77@thor77.org> 2020-06-01 11:09:33 UTC |
committer | Alberto Bertogli
<albertito@blitiri.com.ar> 2020-06-01 13:18:11 UTC |
parent | d781b3f403ac1c1d2d1028a39aafb6a51749134b |
etc/chasquid/hooks/post-data | +1 | -1 |
diff --git a/etc/chasquid/hooks/post-data b/etc/chasquid/hooks/post-data index ae24315..87fa507 100755 --- a/etc/chasquid/hooks/post-data +++ b/etc/chasquid/hooks/post-data @@ -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