Does the Proxmox Mail Gateway when set to “fetchmail” from another mail server run the rules against the incoming mail before delivering to the target mailbox?

Yes.

I had a problem where my syslog wasn’t being rotated and a year had gone by. This made the tracking center appear to have incoming mails that weren’t there…they were from a year ago. I wrote about it in another post. That got me to wondering. Does the Proxmox mail gateway when setup to fetch mail from another service provider actually run the rules against the mail destined to the target mailbox?

After clearing up the issue with the syslog rotation I found that indeed it does process the rules. This is nice as there is a lot of spam that comes into my google mail box and it is one reason I do not want to go there.

This is years after inactivity. There are still entities that send me mail to that mail box so I need to keep it. Also it has things in there that are historical and hence rather than scan years of mails to find the few important items (not knowing all of the items that are important) I’d rather just let them sit in there until I need them. I configured the Proxmox mail gateway to retrieve the mail from the gmail box. This happens I think every 15 minutes.

It is good to know that the mail gateway is actually scanning the gmail that’s fetched and applying my rules to it before it delivers the mail to the target local mailbox.