Fetchmail Integration

Bhavik

New Member
Oct 21, 2022
4
0
1
I have several problems related fetchmail integration.
1. How to manually trigger polling.
2. I have set 1 at interval, i do not know that it is minutes or something else.
3. when I restart MailGateway server, it retrieves 2 email even there are more at server.
4. I kept Unchecked "Keep Old Email", still It leaves copy at server.

Please help me, I do not have subscription and I want to evaluate for replacement of exchangepop3 application.

Thank you in advance.
 
Dear Dominik,

I have already gone through admin guide, I could not get solution for above problems.

Best Regards,
Bhavik Patel
 
at least one answer to your question is in the admin guide:

2. I have set 1 at interval, i do not know that it is minutes or something else.
interval: <integer> (1 - 2016)
Only check this site every <interval> poll cycles. A poll cycle is 5 minutes.

can you post your journal/syslog from the pmg to see if there is any hint whats happening?
 
Dear Dminik,

Thank you for response, for point 1 manually triggering, I found workaround as restarting fetchmail service.
point 2, how can I reduce poll cycle time i.e. 5 minutes. I want to download emails in every one minutes.
point 3,4 are resolved automatically.

Thank you in advance.
Best Regards,
Bhavik
 
Hi Dominik,

I am not able to modify "set daemon 60" instead of 300, it seems file is locked from editing or has to be through command to modify, please help if you have encountered with similar issue.

I want to reduce and set polling cycle time to 1 minute.

Best Regards,
Bhavik Patel
 
how do you mean you're not able to modify?
did you check out the link i sent about the templates?
 
Hi,

for anyone who might stumble upon this issue, this is how I solved it.

Modifying the template doesn't help because the interval is hardcoded in the systemd service. You can create an override with
Code:
systemctl edit fetchmail
and adding this:
Code:
[Service]
Environment=OPTIONS='--daemon 30'

You can use whatever interval you like.