How to Setup DKIM (DomainKeys) with Postfix on CentOS
Step 1 – Install DKIM-milter
First make sure you have enabled EPEL repository in your system.
CentOS 8:
$ yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
$ dnf config-manager --set-enabled PowerTools
CentOS 7:
$ yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
After that install dkim-milter package using following command.
$ yum install postfix opendkim
Step 2 – Generate Key Pair
Now create DKIM key pair using dkim-genkey command line utility provided by dkim-milter package. For this tutorial we are using domain name “example.com”, Change this name with your actual names.
$ MYDOMAIN=example.com
$ mkdir -p /etc/opendkim/keys/$MYDOMAIN
$ cd /etc/opendkim/keys/$MYDOMAIN
$ opendkim-genkey -r -d $MYDOMAIN
Above command will generate two files default.private and default.txt. You can created multiple DKIM keys for different-2 domains and configure with your postfix server.
Now set the proper permissions on Keys directory.
$ chown -R opendkim:opendkim /etc/opendkim
$ chmod go-rw /etc/opendkim/keys
Step 3 – Configure OpenDKIM
Edit the Opendkim configuration file and Add/Update following entries in file.
$ vim /etc/opendkim.conf
Mode sv
Socket inet:[email protected]
Domain example.com
#KeyFile /etc/opendkim/keys/default.private ### comment this line
KeyTable /etc/opendkim/KeyTable
SigningTable refile:/etc/opendkim/SigningTable
ExternalIgnoreList refile:/etc/opendkim/TrustedHosts
InternalHosts refile:/etc/opendkim/TrustedHosts
Then edit the domain keys lists setting file /etc/opendkim/KeyTable and add following entry.
default._domainkey.example.com example.com:default:/etc/opendkim/keys/example.com/default.private
After that edit /etc/opendkim/SigningTable file and update following entry.
*@example.com default._domainkey.example.com
And edit /etc/opendkim/TrustedHosts file and update following entry.
mail.example.com
example.com
Step 4 – Configure Postfix
smtpd_milters = inet:127.0.0.1:8891 non_smtpd_milters = $smtpd_milters milter_default_action = acceptfinally start DKIM service using following command
$ service opendkim start
Step 5 – Configure DNS Entry
After configuring private key in postfix server. there will be another file /etc/opendkim/keys/example.com/default.txt/strong> generated by opendkim-genkey. Edit your DNS zone file and add this as TXT record found in default.txt. In my case this is like below.
default._domainkey IN TXT ( "v=DKIM1; k=rsa; s=email; "
"p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCdTtEqM8FqndiFYOderzljMMMqBdEp+wJKP+VUbhc9GigmK34ZjrSqqdKjIEWr2q9DvSVp1H1bZs4t050m0HZxJqknDz2yoDJ6W4mCaSCHesRde5V44V/L65Gqm/rvBz1d6CCp8A2515eveWrIAocOD6pKJ4tnXHz3uwV2ZtgQiQIDAQAB" ) ; ----- DKIM key default for example.com
Step 6 – Verify DKIM
To verify that DKIM is working properly. Let’s send a test email through command line
$ mail -vs “Test DKIM” [email protected] < /dev/null
In the received email in our mailbox, open the source of the email and search for “DKIM-Signature”. You will find something like below
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=example.com;
s=default.private; t=1402388786;
bh=fdkeB/A0FkbVP2k4J4pNPoe23AvqBm9+b0C3OY87Cw8=;
h=Date:From:Message-Id:To:Subject;
b=M6g0eHe3LNqURha9d73bFWlPfOERXsXxrYtN2qrSQ6/0WXtOxwkEjfoNTHPzoEOlD
i6uLLwV+3/JTs7mFmrkvlA5ZR693sM5gkVgVJmuOsylXSwd3XNfEcGSqFRRIrLhHtbC
mAXMNxJtih9OuVNi96TrFNyUJeHMRvvbo34BzqWY=
How useful was this post?
Click on a star to rate it!
Average rating 5 / 5. Vote count: 1
No votes so far! Be the first to rate this post.
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?
98 Comments
canadian pharmacies online http://andere.strikingly.com/
Kudos! Lots of advice.
cialis 20 mg best price https://graph.org/Omicron-Variant-Symptoms-Is-An-Excessive-Amount-Of-Mucus-A-COVID-19-Symptom-02-24
You definitely made your point!
cialis prices https://andere.strikingly.com/
Thanks a lot, Terrific stuff.
tadalafil 20 mg https://kertvbs.webgarden.com/
You actually expressed this perfectly.
tadalafil 20mg https://keuybc.estranky.sk/clanky/30-facts-you-must-know–a-covid-cribsheet.html
Wow loads of excellent information!
online pharmacies canada https://gwertvb.mystrikingly.com/
Seriously all kinds of amazing material!
cialis canadian pharmacy https://telegra.ph/Is-It-Safe-To-Lift-COVID-19-Travel-Bans-04-06
Fine stuff. With thanks.
canada online pharmacy https://graph.org/The-Way-To-Get-Health-Care-At-Home-During-COVID-19—Health–Fitness-04-07
You have made your point extremely effectively..
canada drug pharmacy https://chubo3.wixsite.com/canadian-pharmacy/post/what-parents-must-find-out-about-kids-and-covid-19
Thank you, A good amount of content.
buy cialis https://canadian-pharmacies0.yolasite.com/
Position nicely utilized!.
cialis https://pharmacy-online.yolasite.com/
Point well considered.!
tadalafil https://kevasw.webgarden.com/
Seriously tons of useful data.
canadian cialis https://62553dced4718.site123.me/
Nicely put, Kudos!
canadian discount pharmacies https://seketu.gonevis.com/high-10-tips-with-order-medicine-online-1/
Superb stuff. Many thanks.
Google
We came across a cool web-site that you could possibly appreciate. Take a search in the event you want.
canadian pharmacy cialis https://ghswed.wordpress.com/2022/04/27/he-final-word-information-to-online-pharmacies/
You explained that superbly!
online prescriptions without a doctor https://kerbgsw.mystrikingly.com/
Cheers, Loads of knowledge!
cialis canada https://kuebser.estranky.sk/clanky/supereasy-methods-to-study-every-part-about-online-medicine-order-discount.html
Good write ups. Kudos.
canadian pharmacy uk delivery https://kerbiss.wordpress.com/2022/04/27/14/
Many thanks. A lot of postings!
Google
Always a significant fan of linking to bloggers that I really like but do not get a lot of link really like from.
Platinum haupia
[…]The info mentioned in the article are some of the top out there […]
purchasing cialis on the internet https://kewburet.wordpress.com/2022/04/27/how-to-keep-your-workers-healthy-during-covid-19-health-regulations/
Seriously a lot of great tips.
Haupia strain
[…]one of our visitors lately recommended the following website[…]
Cheap cialis https://sernert.estranky.sk/clanky/confidential-information-on-online-pharmacies.html
Kudos, Valuable stuff.
Bubble hash
[…]please visit the web-sites we comply with, which includes this 1, because it represents our picks in the web[…]
buy generic cialis https://kertubs.mystrikingly.com/
Good stuff. Regards.
Moroccan hash
[…]please pay a visit to the websites we follow, which includes this a single, because it represents our picks in the web[…]
cialis generico https://626f977eb31c9.site123.me/blog/how-google-is-changing-how-we-approach-online-order-medicine-1
Many thanks, Useful stuff!
buy viagra usa https://canadian-pharmaceuticals-online.yolasite.com/
Whoa a good deal of terrific tips.
buy generic cialis https://online-pharmacies0.yolasite.com/
Cheers. I like this!
Litto
[…]one of our visitors a short while ago recommended the following website[…]
canadian prescription drugstore https://6270e49a4db60.site123.me/blog/the-untold-secret-to-mastering-aspirin-in-just-7-days-1
Thanks a lot. I value this!
Bubble hash
[…]usually posts some quite intriguing stuff like this. If youre new to this site[…]
tadalafil without a doctor’s prescription https://deiun.flazio.com/
With thanks. Plenty of write ups.
cialis https://kertyun.flazio.com/
Nicely put. Thanks!
cialis without a doctor’s prescription https://kerntyas.gonevis.com/the-mafia-guide-to-online-pharmacies/
Amazing lots of amazing advice.
cialis prices https://kerbnt.flazio.com/
Many thanks! Loads of posts.
cialis 5 mg http://nanos.jp/jmp?url=http://cialisonlinei.com/
Nicely put, With thanks.
cialis canadian pharmacy http://ime.nu/cialisonlinei.com
Excellent info. Thanks!
buy cialis https://womed7.wixsite.com/pharmacy-online/post/new-ideas-into-canada-pharmacies-never-before-revealed
Great write ups, Thank you!
cialis generico online https://kerntyast.flazio.com/
Nicely put. Many thanks.
medication without a doctors prescription https://sekyuna.gonevis.com/three-step-guidelines-for-online-pharmacies/
Superb facts, Regards.
tadalafil 20 mg https://gewrt.usluga.me/
Reliable knowledge. With thanks.
cialis without a doctor’s prescription https://pharmacy-online.webflow.io/
Valuable facts. Many thanks.
cialis 5 mg https://canadian-pharmacy.webflow.io/
Truly quite a lot of awesome tips.
canadian pharmaceuticals https://site273035107.fo.team/
Good facts. Thanks!
cialis purchase online without prescription https://site656670376.fo.team/
You have made the point!
cialis generico online https://site561571227.fo.team/
Appreciate it! Plenty of data.
online pharmacy https://site102906154.fo.team/
Thank you. Awesome stuff!
cialis 5mg prix https://hekluy.ucraft.site/
Cheers. Quite a lot of tips!
canadian pharmacycanadian pharmacy https://kawsear.fwscheckout.com/
Nicely put, With thanks!
cialis 20mg https://hertnsd.nethouse.ru/
You said that really well!
cialis generico online https://uertbx.livejournal.com/402.html
Useful knowledge. Regards!
prescriptions from canada without https://lwerts.livejournal.com/276.html
Many thanks! Terrific stuff.
cialis 5mg https://avuiom.sellfy.store/
Beneficial stuff. Kudos.
online pharmacies canada https://pharmacies.bigcartel.com/
You actually suggested it really well!
canadian pharmacy meds https://kwersd.mystrikingly.com/
You mentioned it terrifically.
cialis purchase online without prescription https://gewsd.estranky.sk/clanky/drugstore-online.html
Thanks a lot. I appreciate it!
canadian drugstore https://kqwsh.wordpress.com/2022/05/16/what-everybody-else-does-when-it-comes-to-online-pharmacies/
Cheers, Wonderful stuff.
generic cialis http://site592154748.fo.team/
You revealed that adequately.
buy generic cialis https://lasert.gonevis.com/recommended-canadian-pharmacies-2/
Seriously quite a lot of wonderful tips.
cialis 5mg http://aonubs.website2.me/
Nicely voiced genuinely! .
cialis prices https://dkyubn.bizwebs.com/
Nicely put. With thanks!
canadian pharmacies mail order https://asebg.bigcartel.com/canadian-pharmacy
Thank you, Valuable information!
cialis tablets australia https://medicine-online.estranky.sk/clanky/understand-covid-19-and-know-the-tricks-to-avoid-it-from-spreading—–medical-services.html
Cheers! Ample data.
buy cialis online https://disvaiza.mystrikingly.com/
You actually explained it effectively!
canadian pharmacy meds https://swenqw.company.site/
Excellent material. Appreciate it.
canadian cialis https://kaswesa.nethouse.ru/
With thanks, I appreciate this.
cialis without a doctor’s prescription https://628f789e5ce03.site123.me/blog/what-everybody-else-does-when-it-comes-to-canadian-pharmacies
Terrific postings, Cheers.
tadalafil https://canadian-pharmaceutical.webflow.io/
You actually stated that superbly!
buy cialis http://pamelaliggins.website2.me/
Very good information. With thanks!
viagra canada http://pharmacy.prodact.site/
Whoa plenty of great facts.
canadian pharmacies that ship to us https://hub.docker.com/r/gserv/pharmacies
Thanks. Useful information!
tadalafil 5mg https://hertb.mystrikingly.com/
Thanks a lot. I value it.
tadalafil generic https://kedmnx.estranky.sk/clanky/online-medicine-tablets-shopping-the-best-manner.html
Nicely put, Thank you.
How to Setup DKIM (DomainKeys) with Postfix on CentOS
https://fundparent.com/amazing-startups-of-the-last-decade-2010-2020/
How to Setup DKIM (DomainKeys) with Postfix on CentOS
https://fatherhoodlikely.com/test-for-things
How to Setup DKIM (DomainKeys) with Postfix on CentOS
http://domein-tekoop.com/2017/06/15/domain-registration/
How to Setup DKIM (DomainKeys) with Postfix on CentOS
https://www.loobex.com/at-h12/
cialis 20mg https://selera.mystrikingly.com/
Truly all kinds of good knowledge.
generic cialis https://ksorvb.estranky.sk/clanky/why-online-pharmacies-is-good-friend-to-small-business.html
You explained it fantastically!
canadian medications https://gevcaf.estranky.cz/clanky/safe-canadian-online-pharmacies.html
Regards, Wonderful stuff!
canadian pharmacies https://kwersv.proweb.cz/
Kudos, Quite a lot of material!
medication without a doctors prescription https://kwervb.estranky.cz/clanky/canadian-government-approved-pharmacies.html
Thank you, Plenty of tips.
perfect
thank you for a very good article
medication without a doctors prescription https://sdtyli.zombeek.cz
Kudos, Lots of information!
canada online pharmacies https://kwsde.zombeek.cz/
Fantastic write ups. Regards.
global pharmacy canada https://heklrs.wordpress.com/2022/06/14/canadian-government-approved-pharmacies/
Amazing content. Kudos.
Cheap cialis https://iercvsw.wordpress.com/2022/06/14/canadian-pharmacies-the-fitting-manner/
With thanks, A good amount of knowledge.
1concise
How to Setup DKIM (DomainKeys) with Postfix on CentOS
http://worldpreneur.com/who-is-your-mentor/
cialis lowest price https://site955305180.fo.team/
With thanks! Useful stuff!
cialis online http://site841934642.fo.team/
Beneficial knowledge. Appreciate it!
cialis online https://62b2f636ecec4.site123.me/blog/canadian-pharmaceuticals-online
Nicely put. Thanks!
tadalafil generic https://62b2ffff12831.site123.me/blog/canadian-pharmaceuticals-for-usa-sales
Regards. Numerous info.
tadalafil tablets https://thefencefilm.co.uk/community/profile/hswlux/
Thank you. I appreciate this!
canadian pharmacies that are legit https://anewearthmovement.org/community/profile/mefug/
Thank you, Awesome information.
cialis 20 mg http://sandbox.autoatlantic.com/community/profile/kawxvb/
Whoa tons of helpful knowledge!
Comments are closed.