Error antispam 550 between domains hosted in virtualmin

I have this error when i send mails to other domain hosted in virtualmin

rcpt to: user@domain.com : 550 5.1.1 user@domain.com: Recipient address rejected: User unknown in virtual alias table

I send mail since domain1 to domain2 and i have this error, domain1 have dns, web, and mail hosted in virtualmin but domain2 have only DNS hosted in virtualmin and the DNS table is this:

$ttl    Default Cache Time  38400   
domain.com  SOA - Start Of Domain   dns1.hosted.com. root.dns1.hosted.com. 1490113676 10800 3600 604800 38400   
domain.com  NS - Name Server    dns1.hosted.com.    
domain.com  NS - Name Server    dns2.hosted.com.    
domain.com  A - IPv4 Address    188.165.229.x   
www A - IPv4 Address    188.165.229.x
ftp A - IPv4 Address    93.90.x.x
m   A - IPv4 Address    93.90.x.x   
localhost   A - IPv4 Address    127.0.0.1   
webmail A - IPv4 Address    93.90.x.x   
admin   A - IPv4 Address    93.90.x.x   
mail    A - IPv4 Address    80.32.x.x   FTTH Movistar
domain.com  MX - Mail Server    5 mail.domain.com.  
domain.com  SPF - Sender Permitted From v=spf1 a mx a:domain.com ip4:80.32.x.x ip4:93.x.x.x -all    
_dmarc  DMARC   v=DMARC1; pct=100; ruf=mailto:postmaster@domain.com; rua=mailto:post ...    
2016._domainkey TXT - Text  v=DKIM1; k=rsa; t=s; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqOjVD6cl ...

I think its all correct and i can send mail to both domains from internet and it works but since inside virtualmin give this error

Status: 
Active

Comments

Howdy -- you mentioned that mail for this domain isn't hosted on your Virtualmin server, is that correct?

If so, you'd need to ensure that the MX record in the DNS zone has the correct IP address or hostname of the server that is hosting email for this domain.

Also, you'd need to ensure that the Mail for Domain feature is disabled if email isn't hosted locally.