Setup Mailserver

  1. Create the website for the domain you want to make emails for

  2. Enable SSL

  3. Create the first email for the domain (for example [email protected])

  4. Run the following command to findout the ipv4 of your linux server

ip -6 addr
  1. Add the global ipv4 to the spf record and update it in the DNS records as follows: (change the IP address to your server's)

v=spf1 a mx ip6:2402:1f00:8000:800::2d43 ip4:51.79.248.76 ~all
  1. You might have to create a mailserver SSL in cyberpanel

  2. When adding the DKIM records to the DNS, make sure there are no qoutes and that the p= is one line

DNS Records

Type
Name
Value
Priority

A

mail

IP

n/a

A

@

IP

n/a

A

www

IP

n/a

MX

@

mail.example.com

10

TXT

default._domainkey

TXT

_dmarc

TXT

_domainkey

t=y; o=~;

TXT

@

v=spf1 ip6:IP6_ADDRESS ip4:IP4_ADDRESS ~all

Last updated