Fetch mail from a catchall account

(Vasco) #1

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?

(Vasco) #2


(Filippo Carletti) #3

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.

(Jose "Martin" Abeleira. AKA Marto) #4

Did you tried setting up

/etc/postfix/virtual and configure

@mydomain.com myself@gmail.com

(Vasco) #5

I will try.