So I'm a new Grommunio admin/user and I apologize if this has already been addressed elsewhere, but I didn't find any direct answers while I was working with this.
In short I have an exchange server running in my homelab environment and have wanted to move off it for a while. To make the transition easy and reliable for the family I have on that server, I've basically been running them side by side and want them to basically mirror each other content wise. Because of the homelab environment, I've been using my cloud provider (Dreamhost) as the main point for my email domains; primary SMTP and short term storage of emails. Typically I've pulled emails into exchange via POP3 and I have the cloud provider set as the SMTP primary relay point so everything is going in and out via the cloud. This was the perfect opportunity to setup both Grommunio and exchange to mirror each other by simply leaving emails in the cloud for a short period of time, and what drove me to really get into how fetchmail is utilized in Grommunio.
There is a POP3 option, uidl, that Fetchmail uses to keep a local index of emails it has seen VS unseen and this prevents duplicates from coming in and requires nothing from the server to keep record of emails already imported. If you'd like to dig into this option a little more you can find info here with just a short scroll down or just search for "uidl": https://www.fetchmail.info/fetchmail-man.html#protocol-and-query-options
On to the point I found, the ability to manage this feature in the admin UI is not in a great place. Without a checkbox being present for it (not a big deal) I added it to the extra options section and realized after some testing and digging, those extra options get added to the account poll string after the user configuration section and so it throws fetchmail in a loop and it won't process that user's fetchmail at all.
I tinkered with it by manually changing the fetchmailrc file myself and restarting the service. I noticed just by moving the uidl section to be located right after the POP3 port in the configuration, things kicked off exactly as I needed and everything looked good.
I knew any changes in the admin UI would break my small tweak and so I started more digging and found that a possible workaround might be to add the " uidl" (notice the space in front) to the source server field in the UI. So I ended up with pop3.myserver.com:995 uidl in that field, saved it, crossed a few fingers, and when I checked the fetchmailrc file I found that it looked exactly as I had hoped!
My proposed fix is pretty easy here and I'm hoping it can get some traction. If I have time I might even put together the changes myself with some github time. 👍 I think we could simply add an additional, plus additional clarification to, the extra options field(s). If the existing "Extra options" field was named "Extra user options" and we added "Extra server options" then a few problems are solved. It's clear where these options are applied and we gain the benefit of utilizing server based options in a proper fashion.