We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
DKIM Woes Again
-
- Posts: 16
- Joined: Fri May 02, 2014 7:49 pm
Re: DKIM Woes Again
This worked for someone else?jarland wrote:I found that I can't just take the DKIM public key output from Vesta and paste it straight to my DNS record, so I altered mine to work. Here's what I did in my Vesta install to pull the DNS record ready to go, ready to copy and paste to my DNS editor:
/usr/local/vesta/bin/v-list-mail-domain-dkim-dns
Comment out these lines:
By replacing them as:Code: Select all
echo -e "\t\"_domainkey\": {" echo " \"TTL\": \"3600\"," echo " \"TXT\": \"'t=y; o=~;'\"" echo -e "\t},"
Then I commented out this line:Code: Select all
#echo -e "\t\"_domainkey\": {" #echo " \"TTL\": \"3600\"," #echo " \"TXT\": \"'t=y; o=~;'\"" #echo -e "\t},"
Replacing it as:Code: Select all
echo "_domainkey 3600 IN TXT \"t=y; o=~;\""
Next, I changed this line:Code: Select all
#echo "_domainkey 3600 IN TXT \"t=y; o=~;\""
To this:Code: Select all
pub=$(cat $USER_DATA/mail/$domain.pub | sed ':a;N;$!ba;s/\n/\\n/g')
Now I run this from CLI...Code: Select all
pub=$(cat $USER_DATA/mail/$domain.pub | sed '/^-/d' | awk '{printf "%s", $1}')
And I get a return like this:Code: Select all
v-list-mail-domain-dkim-dns [username] [domain]
Probably more than you need, but to share, I then made this bash script on our central server so that other guys who handle support could pull a DNS record for a client by typing "dkim domainname" in:Code: Select all
mail._domainkey 3600 IN TXT "k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC0xV1NRp5dEcBG0f8WQBTtRHSIjwJx7Qzvh7uwD6XYGkHhQUYfzhj+0s/heNCgUaWKgaRheN8+wDrNm6VpGo/3ZUylWpEReE3GmS1ir/rbBjfNLxTBYUl9qVTo9F2iJ1n1qU2DeJaAAWGzwaqfBdVZVr1D9h6jdJVGLx3wAf+mjQIDAQAB"
Code: Select all
#!/bin/bash # Usage: dkim domainname user=$(ssh [email protected] -p 2200 "/usr/local/vesta/bin/v-search-domain-owner $1") ssh [email protected] -p 2200 "/usr/local/vesta/bin/v-list-mail-domain-dkim-dns $user $1"
I have the same problem.
I would like some help or any idea to adjust correctly.The Port25 Solutions, Inc. team
==========================================================
Summary of Results
==========================================================
SPF check: permerror
DomainKeys check: neutral
DKIM check: pass
Sender-ID check: permerror
SpamAssassin check: ham
Re: DKIM Woes Again
I have VestaCP and DKIM set automatically, private key is in the /home/admin/conf/mail/[domain]/dkim.pem
What should I put to the DNS record i.e. how to get public key?
What should I put to the DNS record i.e. how to get public key?
Re: DKIM Woes Again
This works for me. Thanks !!!