Fetch mail from a catchall account

Hi everyone

I have a catchall email account from my ISP

How can I configure the email server to fetch all the mail messages in that account and then distribute the mail to the known users in my email server and rejecting the unknown users?

anyone?

I vaguely remember having evaluated the catchall feature years ago.
It’s not supported now, but I think it could be implemented with a custom template or two.
I’d start with a test. Please, create a fetchmailrc as explained here or here.
Then run fecthmail -v and check that X-Envelope-To works.
I found that X-Original-To was not reliable, you may your ISP which header will contain the original recipient of the email.
If everything works, we could develop a template and/or try to add a feature.

1 Like

Did you tried setting up

/etc/postfix/virtual and configure

@mydomain.com myself@gmail.com

I will try.

Thanks

Hello,
i tried this a while ago and the following link works for me.

https://community.nethserver.org/t/howto-setup-a-multidrop-mail-server/9639