Update dkim.sh

Use 1024 key because most DNS providers do not support 2048
This commit is contained in:
Showfom 2016-09-22 23:30:47 +08:00 committed by GitHub
parent 102b2d46ab
commit 40929e1ae4
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ fi
# such as Google. But they and others use a 2048 bit key, so we'll
# do the same. Keys beyond 2048 bits may exceed DNS record limits.
if [ ! -f "$STORAGE_ROOT/mail/dkim/mail.private" ]; then
opendkim-genkey -b 2048 -r -s mail -D $STORAGE_ROOT/mail/dkim
opendkim-genkey -b 1024 -r -s mail -D $STORAGE_ROOT/mail/dkim
fi
# Ensure files are owned by the opendkim user and are private otherwise.