How to Configure DKIM | Multiple Domains
Posted: 02 Nov 2018 11:28
Dear all,
hierby i will explain how to get your EFA configured to check the DKIM signature of out /incoming emails.
lets assune your domain is efa.org
make a folder on the opendkim
browse to
run the below to generate the private and txt key
open the below with nano or vi
first line to check:
Mode sv
if it is just v change to sv
than look for word Socket inet= if it does exisit than its looks good
now move to
find the
save the file now
next, edit /etc/opendkim/KeyTable
so open the the file /etc/opendkim/KeyTable with nano or vi
save file
now edit /etc/opendkim/SigningTable
again open the file /etc/opendkim/SigningTable with nano or vi
add this at the end of the file
Save the file we are almost done
edit /etc/opendkim/TrustedHosts
so open the file /etc/opendkim/TrustedHosts with vi or nano
and add this to the end
mail.efa.org is your mx record
192.168.4.5/32 is your exchange ip
edit /etc/postfix/main.cf
again open the file edit /etc/postfix/main.cf with nano or vi
go to very end of the file
save the file
now start opendkim
reload post fix
in your public DNS important add this DMRAC
v=DMARC1; p=reject; sp=reject; rua=mailto:postmaster@efa.org
the tutorial is finshied,
if you have any questions let me know.
hierby i will explain how to get your EFA configured to check the DKIM signature of out /incoming emails.
lets assune your domain is efa.org
make a folder on the opendkim
Code: Select all
mkdir -p /etc/opendkim/keys/efa.org/
Code: Select all
cd /etc/opendkim/keys/efa.org/
Code: Select all
opendkim-genkey -s efa
Code: Select all
/etc/opendkim.conf
Mode sv
if it is just v change to sv
than look for word Socket inet= if it does exisit than its looks good
now move to
Code: Select all
SendReports yes
ReportAddress "efa.org Postmaster <postmaster@efa.org>"
SoftwareHeader yes
Canonicalization relaxed/simple
find the
Code: Select all
KeyTable /etc/opendkim/KeyTable
SigningTable refile:/etc/opendkim/SigningTable
xternalIgnoreList refile:/etc/opendkim/TrustedHosts
InternalHosts refile:/etc/opendkim/TrustedHosts
next, edit /etc/opendkim/KeyTable
so open the the file /etc/opendkim/KeyTable with nano or vi
Code: Select all
add this line to the end:
efa._domainkey.efa.org efa.org:efa:/etc/opendkim/keys/efa.org/efa.private
now edit /etc/opendkim/SigningTable
again open the file /etc/opendkim/SigningTable with nano or vi
add this at the end of the file
Code: Select all
*@efa.org efa._domainkey.efa.org
edit /etc/opendkim/TrustedHosts
so open the file /etc/opendkim/TrustedHosts with vi or nano
and add this to the end
Code: Select all
mail.efa.org
192.168.4.5/32
192.168.4.5/32 is your exchange ip
edit /etc/postfix/main.cf
again open the file edit /etc/postfix/main.cf with nano or vi
go to very end of the file
Code: Select all
smtpd_milters = inet:127.0.0.1:8891
non_smtpd_milters = $smtpd_milters
milter_default_action = accept
milter_protocol = 2
save the file
now start opendkim
Code: Select all
service opendkim start
Code: Select all
service postfix reload
v=DMARC1; p=reject; sp=reject; rua=mailto:postmaster@efa.org
the tutorial is finshied,
if you have any questions let me know.