fetchmail not honouring daemon time











up vote
0
down vote

favorite












I have fetchmail daemon set to 60 seconds in the fetchmailrc file. However it takes up to 8 minutes and sometimes even more to start fetching.



Here is my fetchmailrc:



set daemon 60
set postmaster "root"
set syslog
set logfile "/var/log/fetchmail.log"
set no bouncemail
set spambounce
poll pop.gmail.com with proto pop3
user "user@gmail.com" there with password "mypassword" is root here
fetchall
no keep
no rewrite
ssl
mda "/usr/bin/procmail -f %F -d %T";


The reason I have to have the time to 60 seconds is because we collect telemetry data (pressure and temperature) from different sites around Africa. The mails are piped to procmail and then sent to MySql. A "realtime" graph is then created and available to our maintenance team.



Waiting longer than a minute or 2 for fetchmail is not really desireable.



Any pointers?










share|improve this question
























  • How large are the mail messages that you fetch in this way?
    – Kusalananda
    Nov 22 at 14:00










  • between 5kb to 15kb ... consists of numerical values and sensors location and serial number
    – Danny
    Nov 22 at 14:11

















up vote
0
down vote

favorite












I have fetchmail daemon set to 60 seconds in the fetchmailrc file. However it takes up to 8 minutes and sometimes even more to start fetching.



Here is my fetchmailrc:



set daemon 60
set postmaster "root"
set syslog
set logfile "/var/log/fetchmail.log"
set no bouncemail
set spambounce
poll pop.gmail.com with proto pop3
user "user@gmail.com" there with password "mypassword" is root here
fetchall
no keep
no rewrite
ssl
mda "/usr/bin/procmail -f %F -d %T";


The reason I have to have the time to 60 seconds is because we collect telemetry data (pressure and temperature) from different sites around Africa. The mails are piped to procmail and then sent to MySql. A "realtime" graph is then created and available to our maintenance team.



Waiting longer than a minute or 2 for fetchmail is not really desireable.



Any pointers?










share|improve this question
























  • How large are the mail messages that you fetch in this way?
    – Kusalananda
    Nov 22 at 14:00










  • between 5kb to 15kb ... consists of numerical values and sensors location and serial number
    – Danny
    Nov 22 at 14:11















up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have fetchmail daemon set to 60 seconds in the fetchmailrc file. However it takes up to 8 minutes and sometimes even more to start fetching.



Here is my fetchmailrc:



set daemon 60
set postmaster "root"
set syslog
set logfile "/var/log/fetchmail.log"
set no bouncemail
set spambounce
poll pop.gmail.com with proto pop3
user "user@gmail.com" there with password "mypassword" is root here
fetchall
no keep
no rewrite
ssl
mda "/usr/bin/procmail -f %F -d %T";


The reason I have to have the time to 60 seconds is because we collect telemetry data (pressure and temperature) from different sites around Africa. The mails are piped to procmail and then sent to MySql. A "realtime" graph is then created and available to our maintenance team.



Waiting longer than a minute or 2 for fetchmail is not really desireable.



Any pointers?










share|improve this question















I have fetchmail daemon set to 60 seconds in the fetchmailrc file. However it takes up to 8 minutes and sometimes even more to start fetching.



Here is my fetchmailrc:



set daemon 60
set postmaster "root"
set syslog
set logfile "/var/log/fetchmail.log"
set no bouncemail
set spambounce
poll pop.gmail.com with proto pop3
user "user@gmail.com" there with password "mypassword" is root here
fetchall
no keep
no rewrite
ssl
mda "/usr/bin/procmail -f %F -d %T";


The reason I have to have the time to 60 seconds is because we collect telemetry data (pressure and temperature) from different sites around Africa. The mails are piped to procmail and then sent to MySql. A "realtime" graph is then created and available to our maintenance team.



Waiting longer than a minute or 2 for fetchmail is not really desireable.



Any pointers?







fetchmail






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 22 at 14:34









Rui F Ribeiro

38.3k1475126




38.3k1475126










asked Nov 22 at 11:37









Danny

6210




6210












  • How large are the mail messages that you fetch in this way?
    – Kusalananda
    Nov 22 at 14:00










  • between 5kb to 15kb ... consists of numerical values and sensors location and serial number
    – Danny
    Nov 22 at 14:11




















  • How large are the mail messages that you fetch in this way?
    – Kusalananda
    Nov 22 at 14:00










  • between 5kb to 15kb ... consists of numerical values and sensors location and serial number
    – Danny
    Nov 22 at 14:11


















How large are the mail messages that you fetch in this way?
– Kusalananda
Nov 22 at 14:00




How large are the mail messages that you fetch in this way?
– Kusalananda
Nov 22 at 14:00












between 5kb to 15kb ... consists of numerical values and sensors location and serial number
– Danny
Nov 22 at 14:11






between 5kb to 15kb ... consists of numerical values and sensors location and serial number
– Danny
Nov 22 at 14:11












1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










Many POP3 servers "discourage" too frequent polling.



https://webmasters.stackexchange.com/questions/49721/what-is-the-maximum-frequency-for-checking-email-in-gmail-and-are-there-alterna






IMAP with IDLE command



You can use IMAP with IDLE command instead of POP3.



Both fetchmail (program) and gmail (email provider) support IMAP with IDLE.



It would require one fetchmail process per one monitored IMAP account.
fetchamil will keep one IMAP session open permanently.

You should get "near real time" notifications about new emails.



man fetchmail




--idle (since 6.3.3)

(Keyword: idle, since before 6.0.0)

Enable IDLE use (effective only with IMAP). Note that this works with only one folder at a given time. While the idle rcfile keyword had been supported for a long time, the --idle command-line option was added in version 6.3.3. IDLE use means that fetchmail tells the IMAP server to send notice of new messages, so they can be retrieved sooner than would be possible with regular polls.







share|improve this answer























  • Thank you ... that makes sense ...
    – Danny
    Nov 23 at 6:18











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f483424%2ffetchmail-not-honouring-daemon-time%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote



accepted










Many POP3 servers "discourage" too frequent polling.



https://webmasters.stackexchange.com/questions/49721/what-is-the-maximum-frequency-for-checking-email-in-gmail-and-are-there-alterna






IMAP with IDLE command



You can use IMAP with IDLE command instead of POP3.



Both fetchmail (program) and gmail (email provider) support IMAP with IDLE.



It would require one fetchmail process per one monitored IMAP account.
fetchamil will keep one IMAP session open permanently.

You should get "near real time" notifications about new emails.



man fetchmail




--idle (since 6.3.3)

(Keyword: idle, since before 6.0.0)

Enable IDLE use (effective only with IMAP). Note that this works with only one folder at a given time. While the idle rcfile keyword had been supported for a long time, the --idle command-line option was added in version 6.3.3. IDLE use means that fetchmail tells the IMAP server to send notice of new messages, so they can be retrieved sooner than would be possible with regular polls.







share|improve this answer























  • Thank you ... that makes sense ...
    – Danny
    Nov 23 at 6:18















up vote
1
down vote



accepted










Many POP3 servers "discourage" too frequent polling.



https://webmasters.stackexchange.com/questions/49721/what-is-the-maximum-frequency-for-checking-email-in-gmail-and-are-there-alterna






IMAP with IDLE command



You can use IMAP with IDLE command instead of POP3.



Both fetchmail (program) and gmail (email provider) support IMAP with IDLE.



It would require one fetchmail process per one monitored IMAP account.
fetchamil will keep one IMAP session open permanently.

You should get "near real time" notifications about new emails.



man fetchmail




--idle (since 6.3.3)

(Keyword: idle, since before 6.0.0)

Enable IDLE use (effective only with IMAP). Note that this works with only one folder at a given time. While the idle rcfile keyword had been supported for a long time, the --idle command-line option was added in version 6.3.3. IDLE use means that fetchmail tells the IMAP server to send notice of new messages, so they can be retrieved sooner than would be possible with regular polls.







share|improve this answer























  • Thank you ... that makes sense ...
    – Danny
    Nov 23 at 6:18













up vote
1
down vote



accepted







up vote
1
down vote



accepted






Many POP3 servers "discourage" too frequent polling.



https://webmasters.stackexchange.com/questions/49721/what-is-the-maximum-frequency-for-checking-email-in-gmail-and-are-there-alterna






IMAP with IDLE command



You can use IMAP with IDLE command instead of POP3.



Both fetchmail (program) and gmail (email provider) support IMAP with IDLE.



It would require one fetchmail process per one monitored IMAP account.
fetchamil will keep one IMAP session open permanently.

You should get "near real time" notifications about new emails.



man fetchmail




--idle (since 6.3.3)

(Keyword: idle, since before 6.0.0)

Enable IDLE use (effective only with IMAP). Note that this works with only one folder at a given time. While the idle rcfile keyword had been supported for a long time, the --idle command-line option was added in version 6.3.3. IDLE use means that fetchmail tells the IMAP server to send notice of new messages, so they can be retrieved sooner than would be possible with regular polls.







share|improve this answer














Many POP3 servers "discourage" too frequent polling.



https://webmasters.stackexchange.com/questions/49721/what-is-the-maximum-frequency-for-checking-email-in-gmail-and-are-there-alterna






IMAP with IDLE command



You can use IMAP with IDLE command instead of POP3.



Both fetchmail (program) and gmail (email provider) support IMAP with IDLE.



It would require one fetchmail process per one monitored IMAP account.
fetchamil will keep one IMAP session open permanently.

You should get "near real time" notifications about new emails.



man fetchmail




--idle (since 6.3.3)

(Keyword: idle, since before 6.0.0)

Enable IDLE use (effective only with IMAP). Note that this works with only one folder at a given time. While the idle rcfile keyword had been supported for a long time, the --idle command-line option was added in version 6.3.3. IDLE use means that fetchmail tells the IMAP server to send notice of new messages, so they can be retrieved sooner than would be possible with regular polls.








share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 23 at 12:47

























answered Nov 22 at 18:58









AnFi

1,09059




1,09059












  • Thank you ... that makes sense ...
    – Danny
    Nov 23 at 6:18


















  • Thank you ... that makes sense ...
    – Danny
    Nov 23 at 6:18
















Thank you ... that makes sense ...
– Danny
Nov 23 at 6:18




Thank you ... that makes sense ...
– Danny
Nov 23 at 6:18


















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f483424%2ffetchmail-not-honouring-daemon-time%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Morgemoulin

Scott Moir

Souastre