mirror of
https://github.com/bokysan/docker-postfix.git
synced 2025-09-13 01:44:33 +08:00
Update common-run.sh
To fix an issue when multiple domains in ALLOWED_SENDER_DOMAINS, DKIM signature only works for one domain
This commit is contained in:
parent
3f6d1330bb
commit
713ca2a717
1 changed files with 2 additions and 2 deletions
|
@ -287,7 +287,7 @@ postfix_setup_dkim() {
|
|||
domain_dkim_selector="$(get_dkim_selector "${domain}")"
|
||||
echo -e " ...for domain ${emphasis}${domain}${reset} (selector: ${emphasis}${domain_dkim_selector}${reset})"
|
||||
echo "${domain_dkim_selector}._domainkey.${domain} ${domain}:${domain_dkim_selector}:${private_key}" >> /etc/opendkim/KeyTable
|
||||
echo "*@$i ${domain_dkim_selector}._domainkey.${domain}" >> /etc/opendkim/SigningTable
|
||||
echo "*@${domain} ${domain_dkim_selector}._domainkey.${domain}" >> /etc/opendkim/SigningTable
|
||||
else
|
||||
error "Skipping DKIM for domain ${emphasis}${domain}${reset}. File ${private_key} not found!"
|
||||
fi
|
||||
|
@ -361,4 +361,4 @@ execute_post_init_scripts() {
|
|||
esac
|
||||
done
|
||||
fi
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue