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?
fetchmail
add a comment |
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?
fetchmail
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
add a comment |
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?
fetchmail
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
fetchmail
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
add a comment |
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
add a comment |
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.
Thank you ... that makes sense ...
– Danny
Nov 23 at 6:18
add a comment |
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.
Thank you ... that makes sense ...
– Danny
Nov 23 at 6:18
add a comment |
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.
Thank you ... that makes sense ...
– Danny
Nov 23 at 6:18
add a comment |
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.
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.
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
add a comment |
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
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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