Hi,
Vesta panel is awsome. Good job @serghey-rodin :+1:
I have a problem about DKIM using multi domain on digital ocean..
I could not found dkim public key to record TXT record on DO dns panel.
Hi @muratsplat
You can find public key here /usr/local/vesta/data/users/%username%/mail/%domain-name%.pub or you can use following command to get Bind-like output
v-list-mail-domain-dkim-dns %username% %domain-name%
Thank you for helping..
@serghey-rodin please be aware that the output of v-list-mail-domain-dkim-dns %username% %domain-name% inserts n whereever there is a linebreak in the .pub file. This invalidates the key.
@warwickchapman - ah, now that is interesting. I was wondering why I couldn't get my DKIM to validate. I've updated my DNS now, so will wait for it to update to see if that makes the DKIM valid . Thanks for sharing 馃憤
It seems that v-list-mail-domain-dkim-dns %username% %domain-name% is not working properly and a bug with '\n' is still not fixed.
@ram108 yeah I'm not sure why that one hasn't been fixed yet. Seems like it would be pretty simple to do?
The fix is easy.
Goto file:
/usr/local/vesta/bin/v-list-mail-domain-dkim-dns
Find:
pub=$(echo "$pub" |sed ':a;N;$!ba;s/\n/\\n/g')
Change to:
pub=$(echo "$pub" |sed ':a;N;$!ba;s/\n//g')
袛邪 泻芯谐写邪 卸械 褝褌芯 锌芯锌褉邪胁褟褌?! 袟邪写邪褔邪 锌褉芯褋褌芯 薪械锌芯褋懈谢褜薪邪.
Auto patch the bug. Run in command line, this will fix the issue:
sed -i 's/\\n\/\\\\n/\\n\//' /usr/local/vesta/bin/v-list-mail-domain-dkim-dns
The fix is easy.
Goto file:
/usr/local/vesta/bin/v-list-mail-domain-dkim-dnsFind:
pub=$(echo "$pub" |sed ':a;N;$!ba;s/\n/\\n/g')Change to:
pub=$(echo "$pub" |sed ':a;N;$!ba;s/\n//g')
Thanks, this solves the issue!
Most helpful comment
Hi @muratsplat
You can find public key here /usr/local/vesta/data/users/%username%/mail/%domain-name%.pub or you can use following command to get Bind-like output