mailcow / mailcow-dockerized

mailcow: dockerized - 🐮 + 🐋 = 💕
https://mailcow.email
GNU General Public License v3.0
8.7k stars 1.17k forks source link

Receive mails on a default email if recipient doesn't exist #4563

Closed ThalesC closed 2 years ago

ThalesC commented 2 years ago

Summary

I was wondering if there is a way to receive emails to non-existent recipients on a default email address.

Let's say I have a domain like mail.example.com and some addresses like admin@example.com, some-user@example.com and so on.

For example, if someone tries to send an email to not-a-valid-mail@example.com, that email would land on admin@example.com instead of the sender receiving a bounce email with "Delivery fail: recipient not found".

Motivation

I'm using CPanel at the moment and it has this option, but I want to migrate to Mailcow and didn't find it. Not critical, I'm still going to migrate, but it would be very nice if I could do it on Mailcow too.

Additional context

No response

DerLinkman commented 2 years ago

Hi,

i think you can already solve that by using a catch-all Address.

You can find that under the Aliasses Tab in the mailcow UI. There simply create a Alias which is @yourdomain.tld (so no mailbox name in the front of the @)

As the reciepients you add your desired mailbox or boxes (you can add multiple if you like)

Then this catch-all will be used if a mailbox does not exist instead of rejecting the mails.

ThalesC commented 2 years ago

Hi @DerLinkman! That is exactly what I needed, I didn't think to look under aliases for that 😅 Thank you!

DerLinkman commented 2 years ago

No problem. I'll close the issue then.

berjanb commented 4 days ago

Hi 👋 Folks, We are using MailCow with Google Workspace with spilit delivery In this case how can we catch all in mailcow side ?