We use cookies
We use cookies to optimize our website. By continuing to browse the site, you agree to our use of cookies.
New design
Control panel
  • Русский
  • Українська
  • English
  • UAH
  • USD
  • RUB
  • EUR
  • 0-800-307-307 Hotline
  • +38 (044) 392-74-33 Kiev
  • +38 (057) 728-39-00 Kharkiv
  • +38 (056) 794-38-31 Dnipro
  • +38 (032) 229-58-93 Lviv
  • +38 (048) 738-57-70 Odessa
  • +38(093) 170-15-42  Life
  • +38 (067) 400-88-44 Kievstar
  • +1(888)393-24-51  USA, Toll free
  • +44(131)507-01-14  Great Britain
  • +7 (499) 348-28-61 Moscow Adding mail to Vesta

To add mailboxes, do the following:

  1. Switch to the "MAIL"And click on the green button"+»:
  2. Specify the domain used for mail, set the desired parameters and click "Add to» («Add»):
    • «Domain» («Domain») - specify a domain for the subsequent creation of mailboxes in it.
    • «Antispam support» («Antispam Support») - check the box to configure the scanning of all messages for spam.
    • «Antivirus support» («Antivirus Support») - check the box to configure scanning of all messages for viruses.
    • «DKIM support» («DKIM Support») - check the box to configure DKIM.
  3. After creating the mail domain, click on the button "Back"Or go to the menu"MAIL"From the first item and move the cursor over it and click on the button"ADD ACCOUNT»:
  4. In the displayed page, you need to fill in the data of the created mailbox and write down the connection data to it:
    • «Domain» («Domain»)
    • «Account» («Account»)
    • «Password» («Password»)
    • «Send account details to» («Send login credentials to email address»)
    • All data for further connection will be displayed on the same page in an additional block. Description of the block with access data located on the right:
      • «Account» («Username») – login that will be used for authorization.
      • «Password» («Password») – password to be used for authorization.
      • «IMAP hostname» – server address for IMAP protocol. You can use its IP address as the server address.
      • «IMAP port» – the port used for IMAP connections.
      • «IMAP security» – the encryption type for the IMAP protocol.
      • «IMAP auth method» – authorization method.
      • «SMTP hostname» – server address for SMTP protocol. You can use its IP address as the server address.
      • «SMTP port» – the port used for the SMTP connection.
      • «SMTP security» – the type of encryption for the SMTP protocol.
      • «SMTP auth method» – authorization method.
      • «Webmail URL» – Web mail client address. IN URL you can use the server IP address instead of the specified domain.
    • Click on the "Add to» («Add») After successful completion of all fields.
  5. Check the connection to the server using the built-in web mail client or any other mail client.
  6. Configure MX domain records on VPS IP address for further acceptance of letters to mailboxes located on the server.

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

Instead XXX.XXX.XXX.XXX specify the IP address of the VPS server.

To obtain a public DKIM key, do the following:

  1. Connect to the server via SSH with root rights.
  2. After connecting to the server, run the command:
     export VESTA=/usr/local/vesta/
  3. After running the previous command, run the following to get the DKIM public key:
    /usr/local/vesta/bin/v-list-mail-domain-dkim-dns admin example.com
    • Instead of "admin» – specify the username under which the mail domain was created in the VestaCP control panel.
    • Instead of "example.com» – specify the mail domain to which you want to get the DKIM signature.
  4. Copy the entry line mail._domainkey from the result of the previous command, it will look something like this:
    RECORD            TTL         TYPE      VALUE
    ------            ---         ----      -----
    _domainkey        3600   IN   TXT      "t=y; o=~;"
  5. Add a new record for the domain, in which specify:
    • «Subdomain» – indicate mail._domainkey... If an entry is added for a subdomain, then the subdomain name should be specified after the suggested option.
    • «A type» – select post type TXT.
    • «Data» – copy the line from the output of the previously executed command VALUE for recording mail._domainkey... In the above example, it was the line