diff --git a/postfix-lookup/lookup.sh b/postfix-lookup/lookup.sh index 001ce84..fd2ebeb 100644 --- a/postfix-lookup/lookup.sh +++ b/postfix-lookup/lookup.sh @@ -1,5 +1,5 @@ #!/bin/bash -virtual_alias_maps=$(postconf -h virtual_alias_maps | tr ',' '\n') +virtual_alias_maps=$(postconf -h smtpd_sender_login_maps) alias_to_lookup="$1" result=$(echo "$virtual_alias_maps" | xargs -I {} postmap -q "$alias_to_lookup" {}) echo "result=$result"