To add mailboxes, do the following:
After configuring and adding mailboxes for them, it is recommended to configure SPF and DKIM records. You will need to generate an SPF record yourself, depending on the settings of the VestaCP panel itself. For the most part, an IP address is used and a similar entry may be suitable:
v=spf1 a mx ip4:XXX.XXX.XXX.XXX ~all
XXX.XXX.XXX.XXX specify the IP address of the VPS server.
To obtain a public DKIM key, do the following:
/usr/local/vesta/bin/v-list-mail-domain-dkim-dns admin example.com
mail._domainkeyfrom the result of the previous command, it will look something like this:
RECORD TTL TYPE VALUE ------ --- ---- ----- _domainkey 3600 IN TXT "t=y; o=~;" mail._domainkey 3600 IN TXT "k=rsa; p=MIGfMA0GCSqGSIXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX+FsN/9YOMojgLhwMzGDFOFZccPzxiXtRlZ0ek5CXLXgeQY+3HhQmCeJFz5RHykb84s/UGQFf/UyWUJS9o3BTpkWbgC9C4zqYvKTklMI511CEACfm+e07mOdfXjst31p9DP/TkQIDAQAB"
mail._domainkey... If an entry is added for a subdomain, then the subdomain name should be specified after the suggested option.
mail._domainkey... In the above example, it was the line