Postfix not sending email if a domain is configurated on virtualmin but MX is on another server

SYSTEM INFORMATION
Ubuntu Linux 24.04.3 REQUIRED
virtualmin 7.30.8 GPL REQUIRED

Hi

I have this problem:

A hosting server that has a yyyy.tld domain configurated without MAIL only with web.

when I try to send a email from yyyy.tld domain that is on the same server as xxxx.tld hosted the postfix is replaying “Failed to send mail : SMTP command rcpt to: user@xxxx.tld failed : 550 5.1.1 user@xxxx.tld: Recipient address rejected: User unknown in local recipient table”.

the problem is that is not looking for MX records because on mydestination I have $domains and postfix is not checking for MX is directly assuming that xxxx.tld is on the server. Please help me.

Best regards

See “Send outgoing mail via host”.
That host must be set up to accept that mail though.

Why have you configured Postfix that way if that’s not the way you want it to behave?

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.