Last active
August 29, 2015 14:02
-
-
Save coodix/8fc6f110ca627270bb9b to your computer and use it in GitHub Desktop.
exim4 DKIM lookup from file DB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### transport/30_exim4-config_remote_smtp | |
################################# | |
# This transport is used for delivering messages over SMTP connections. | |
DKIM_DB_FILE = /etc/exim4/dkim_lookup.db | |
DKIM_DOMAIN = ${lc:${domain:$h_from:}} | |
DKIM_FILE = /etc/exim4/dkim/${lookup{DKIM_DOMAIN_key}lsearch{DKIM_DB_FILE}} | |
DKIM_PRIVATE_KEY = ${if exists{DKIM_FILE}{DKIM_FILE}{0}} | |
DKIM_SELECTOR = ${lookup{DKIM_DOMAIN_selector}lsearch{DKIM_DB_FILE}} | |
### DKIM_SELECTOR = ${if exists{DKIM_SELECTOR_FILE}{${readfile{DKIM_SELECTOR_FILE}{}}}{mail}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xn--90acimkexb.xn--p1ai_key: belikovo.rf.key | |
xn--90acimkexb.xn--p1ai_selector: default | |
karcher-online.ru_key: karcher-online.ru.key | |
karcher-online.ru_selector: default | |
mylocal.ru_key: mylocal.ru.key | |
mylocal.ru_selector: mail |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /etc/exim4/dkim | |
dkim-genkey -d belikovo.ru -r | |
mv default.private belikovo.ru.key | |
cat default.txt | |
chmod 0755 belikovo.ru.key |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment