Mail not send from server from subdomains

Hi everyone!

If I send mails from main domains then it’s ok. But if I try to send mail from subdomains then all messages are frozen in exim queue.

Before I used VestaCP and do not have similar problems.
DNS not used in panel, I use third party services for DNS.

For main domains DNS mail records is ok.

All frozen messages have a this log:
2025-02-19 02:37:17 Received from <> R=1tkX9Q-00Gyo3-6l U=Debian-exim P=local S=2338
2025-02-19 02:37:27 H=subdomain.domain.com [XX.XX.XX.XX] SMTP error from remote mail server after RCPT TO:<admin@subdomain_domain_com>: 550 relay not permitted
2025-02-19 02:37:27 admin@subdomain_domain_com R=dnslookup T=remote_smtp H=subdomain_domain_com [XX.XX.XX.XX] X=TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_128_GCM:128 CV=no: SMTP error from remote mail server after RCPT TO:<admin@subdomain_domain_com>: 550 relay not permitted
*** Frozen (delivery error message)

Did you setup mail domain on that subdomain?

1 Like

On that subdomain no, but on main domain yes. I have some subdomains.
I use third party mail for main domains.

I do not use mail for subdomains

Basically you have the answer in the log “relay not permitted”. Where this log came from? How did you setup third party for main domain only?

This log is given comand “exim -Mvl”. I setup mail for my domain.com on service like google mail for business. And i dont need mail for subdomain. why?))

Well I can have mail on once server and site on other server, and this shouldn’t affect sending mail from the server

I think Exim trying send mail inside server (subdomain.domain.com), but server deny resend mail, bacuse server not have mail server. And server think that subdomain.domain.com is only local domain. Because a do not install DNS server when a install hestia. Is it real?

I checked sub domain
dig sub.domain.com MX +short
And get this result:
10 sub.domain.com.

How to remove this mx record if i dont have DNS on hestia?
Can I install DNS service on hestia today?