Problem with mail server with two domain : smtp; 521 No Redirect Entry for this address

Hi there,

YNH 3.1.0 VPS OVH. I’ve recently added a new domain for adding new emails adresses.
My first email box work fine, DNS aera is righly configured, and recommended config corresponds to it but the second one can’t received emails.

Action: failed
Status: 5.0.0
Remote-MTA: dns; redirect.ovh.net
Diagnostic-Code: smtp; 521 No Redirect Entry for this address

YNH say i’ve to add this for my first domain :

;Mail
@ 3600 IN MX 10 firstdomain.com.
@ 3600 IN TXT “v=spf1 a mx ip4:my.ipv4 ip6:my.ipv6 -all”
mail._domainkey 3600 IN TXT “v=DKIM1; k=rsa; p=xxxxxxxxxxxyyyyyyyyyzzzzzzzzzzzB”
_dmarc 3600 IN TXT “v=DMARC1; p=none”

But for the second domain i’ve just :

; Mail
@ 3600 IN MX 10 secondomain.fr
@ 3600 IN TXT “v=spf1 a mx ip4:my.ipv4 ip6:my.ipv6 -all”

Do I’ve to add mail’s lines from the first domain to my DNS aera or simply the recommended one?

a priori it came from the MX line that was previously :

IN MX 1 redirect.ovh.net.

change it by :

IN MX 10 mydomain.fr.

Seems to work fine