Fix postfix lookup.sh

This commit is contained in:
Melon 2023-11-27 00:40:15 +00:00
parent 19a112ed2d
commit 3050806f46
Signed by: melon
GPG Key ID: 6C9D970C50D26A25

View File

@ -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"