YunoHost / issues

General issue tracker for the YunoHost project
71 stars 8 forks source link

Error sending mail from an internal domain to another domain #2275

Open Pentaonia opened 8 months ago

Pentaonia commented 8 months ago

Describe the bug

When I want to send a mail from an internal domain to another domain where the website is hosted on my server, the mailserver is somewhere else. It throws out the error: 5.1.1 <info@example.com>: Recipient address rejected: User unknown in virtual mailbox table. Mail delivery and arrival have been turned of in the domain > example.com > features tab.

Context

To reproduce

I just need to send the mail to a specific domain, case mentioned above, and the error shows up.

Expected behavior

Mail delivered without any problems.

zamentur commented 8 months ago

It's probably due to the dnsmasq config. Could work if your remove the mx lines inside /etc/dnsmasq.d/DOMAIN.conf

Pentaonia commented 8 months ago

Hi, thank you for your answer! I removed the mx entries and restarted necessary services but it throws the same error.

I also tried fixes like these:

But I had no success.