Setting up VestaCP DKIM SPIF and rDNS for Google to accept emails

1 |
]# lsof -Pni | grep exim |
before
1 2 3 4 5 6 7 8 |
exim 2441 exim 3u IPv6 625492738 0t0 TCP *:25 (LISTEN) exim 2441 exim 4u IPv4 625492739 0t0 TCP *:25 (LISTEN) exim 2441 exim 5u IPv6 625492740 0t0 TCP *:465 (LISTEN) exim 2441 exim 6u IPv4 625492741 0t0 TCP *:465 (LISTEN) exim 2441 exim 7u IPv6 625492742 0t0 TCP *:587 (LISTEN) exim 2441 exim 8u IPv4 625492743 0t0 TCP *:587 (LISTEN) exim 2441 exim 9u IPv6 625492744 0t0 TCP *:2525 (LISTEN) exim 2441 exim 10u IPv4 625492745 0t0 TCP *:2525 (LISTEN) |
Add this to exim.conf settings:
1 |
disable_ipv6 = true |
and then
1 |
service exim restart |
now
1 2 3 4 5 |
# lsof -Pni | grep exim exim 13134 exim 3u IPv4 633818603 0t0 TCP *:25 (LISTEN) exim 13134 exim 4u IPv4 633818604 0t0 TCP *:465 (LISTEN) exim 13134 exim 5u IPv4 633818605 0t0 TCP *:587 (LISTEN) exim 13134 exim 6u IPv4 633818606 0t0 TCP *:2525 (LISTEN) |
Take a look on the image below
Then choose your mail domain
After that type in SSH:
- CODE: SELECT ALL
-
1v-add-mail-domain-dkim %user% %domain% %key-length%
Don’t forget to replace it with your domain name, user name etc.
You can’t do 1024 bit keys automatically, you have to do it manually for every domain. In next Vesta release it would be 1024 bit keys for every domain by default.
Then reload your named service:
- CODE: SELECT ALL
service named restart
And you’re done!Take a look on the image below
Then choose your mail domain
After that type in SSH:
- CODE: SELECT ALL
-
1v-add-mail-domain-dkim %user% %domain% %key-length%
Don’t forget to replace it with your domain name, user name etc.
You can’t do 1024 bit keys automatically, you have to do it manually for every domain. In next Vesta release it would be 1024 bit keys for every domain by default.
Then reload your named service:
- CODE: SELECT ALL
-
1service named restart
And you’re done!
Awesome! It was easy then I expected. Search for hours for this solution finally found it here! I was on linode VPS
Hope i could be of help :).
running that command: v-add-mail-domain-dkim %user% %domain% %key-length%
produces: no such user and I know there is a user (yes, I have replaced %user% with an actual user and %domain% with the proper domain and %key-length% with the number 1024
FYI: are the percentage signs supposed to be included?
Ahh , i am just seeing the comment. no % needs not to be included!
This worked! But I want to know why it worked…
Can you explain? Thanks