Tutoriel N° 2e7
Configure MX on OVH to manage incoming email since your vps server / Ubuntu 18.04
Go to OVh manager website
https://www.ovh.com/auth/
Go to Dns Zone
BEFORE UPDATE DNS ZONE WE HAVE:
$TTL 3600
@ IN SOA dns103.ovh.net. tech.ovh.net. (2020XXXXXX 86400 3600 3600000 60)
IN NS dns103.ovh.net.
IN NS ns103.ovh.net.
IN MX 1 redirect.ovh.net.
600 IN A IP_SERVER_X.X.X.X
600 IN TXT "1|www.shareannonce.com"
IN TXT "v=spf1 ip4:IP_SERVER_X.X.X.X ~all"
2020._domainkey 600 IN TXT ( "v=DKIM1;k=rsa;p=MIIBI***DKIM_KEY***QIDAQAB;t=s;" )
_autodiscover._tcp IN SRV 0 0 443 mailconfig.ovh.net.
_dmarc IN TXT "v=DMARC1; p=none"
_imaps._tcp IN SRV 0 0 993 ssl0.ovh.net.
_submission._tcp IN SRV 0 0 465 ssl0.ovh.net.
autoconfig IN CNAME mailconfig.ovh.net.
autodiscover IN CNAME mailconfig.ovh.net.
ftp IN CNAME shareannonce.com.
imap IN CNAME ssl0.ovh.net.
mail IN CNAME ssl0.ovh.net.
pop3 IN CNAME ssl0.ovh.net.
smtp IN CNAME ssl0.ovh.net.
www 600 IN A IP_SERVER_X.X.X.X
www IN TXT "3|welcome"
@ IN SOA dns103.ovh.net. tech.ovh.net. (2020XXXXXX 86400 3600 3600000 60)
IN NS dns103.ovh.net.
IN NS ns103.ovh.net.
IN MX 1 redirect.ovh.net.
600 IN A IP_SERVER_X.X.X.X
600 IN TXT "1|www.shareannonce.com"
IN TXT "v=spf1 ip4:IP_SERVER_X.X.X.X ~all"
2020._domainkey 600 IN TXT ( "v=DKIM1;k=rsa;p=MIIBI***DKIM_KEY***QIDAQAB;t=s;" )
_autodiscover._tcp IN SRV 0 0 443 mailconfig.ovh.net.
_dmarc IN TXT "v=DMARC1; p=none"
_imaps._tcp IN SRV 0 0 993 ssl0.ovh.net.
_submission._tcp IN SRV 0 0 465 ssl0.ovh.net.
autoconfig IN CNAME mailconfig.ovh.net.
autodiscover IN CNAME mailconfig.ovh.net.
ftp IN CNAME shareannonce.com.
imap IN CNAME ssl0.ovh.net.
mail IN CNAME ssl0.ovh.net.
pop3 IN CNAME ssl0.ovh.net.
smtp IN CNAME ssl0.ovh.net.
www 600 IN A IP_SERVER_X.X.X.X
www IN TXT "3|welcome"
Remove those lines:
Remove CNAME pop smtp et mail
mail IN CNAME ssl0.ovh.net.
pop3 IN CNAME ssl0.ovh.net.
smtp IN CNAME ssl0.ovh.net.
IN MX 1 redirect.ovh.net.
pop3 IN CNAME ssl0.ovh.net.
smtp IN CNAME ssl0.ovh.net.
IN MX 1 redirect.ovh.net.
Add 2 entries:
A sub-domain : mail
target: IP_SERVER_X.X.X.X
MX sub-domain : nothing
target mail.shareannonce.com.
priority 10
target: IP_SERVER_X.X.X.X
MX sub-domain : nothing
target mail.shareannonce.com.
priority 10
Resume:
Add an entry > Pointer records Button > Select A > Sub-domain: mail > TTL 600 > target: IP_SERVER_X.X.X.X > Next button > Confirm button
Add an entry > Pointer records Button > Select MX > Sub-domain : rien > TTL 600 > Priority 10 > target: mail.shareannonce.com. > Next button > Confirm button
AFTER UPDATE DNS ZONE WE HAVE:
$TTL 600
@ IN SOA dns103.ovh.net. tech.ovh.net. (2020XXXXXX 86400 3600 3600000 60)
IN NS dns103.ovh.net.
IN NS ns103.ovh.net.
IN MX 10 mail.shareannonce.com.
600 IN A IP_SERVER_X.X.X.X
600 IN TXT "1|www.shareannonce.com"
IN TXT "v=spf1 ip4:IP_SERVER_X.X.X.X ~all"
2020._domainkey 600 IN TXT ( "v=DKIM1;k=rsa;p=MIIBI***DKIM_KEY***QIDAQAB;t=s;" )
_autodiscover._tcp IN SRV 0 0 443 mailconfig.ovh.net.
_dmarc IN TXT "v=DMARC1; p=none"
_imaps._tcp IN SRV 0 0 993 ssl0.ovh.net.
_submission._tcp IN SRV 0 0 465 ssl0.ovh.net.
autoconfig IN CNAME mailconfig.ovh.net.
autodiscover IN CNAME mailconfig.ovh.net.
ftp IN CNAME shareannonce.com.
mail 600 IN A IP_SERVER_X.X.X.X
www 600 IN A IP_SERVER_X.X.X.X
www IN TXT "3|welcome"
@ IN SOA dns103.ovh.net. tech.ovh.net. (2020XXXXXX 86400 3600 3600000 60)
IN NS dns103.ovh.net.
IN NS ns103.ovh.net.
IN MX 10 mail.shareannonce.com.
600 IN A IP_SERVER_X.X.X.X
600 IN TXT "1|www.shareannonce.com"
IN TXT "v=spf1 ip4:IP_SERVER_X.X.X.X ~all"
2020._domainkey 600 IN TXT ( "v=DKIM1;k=rsa;p=MIIBI***DKIM_KEY***QIDAQAB;t=s;" )
_autodiscover._tcp IN SRV 0 0 443 mailconfig.ovh.net.
_dmarc IN TXT "v=DMARC1; p=none"
_imaps._tcp IN SRV 0 0 993 ssl0.ovh.net.
_submission._tcp IN SRV 0 0 465 ssl0.ovh.net.
autoconfig IN CNAME mailconfig.ovh.net.
autodiscover IN CNAME mailconfig.ovh.net.
ftp IN CNAME shareannonce.com.
mail 600 IN A IP_SERVER_X.X.X.X
www 600 IN A IP_SERVER_X.X.X.X
www IN TXT "3|welcome"