Probably the simpest solution is to use fetchmail
Best regards
Kenneth
--------
Complexity is easy... simplicity is difficult.
On Tue, 2 Sep 2025, Andy Baugh via dovecot wrote:
Indeed, doveadm sync would have to be ran at some certain interval in order to ensure you
have all the messages. Typically when converting a mailbox or transferring accounts
across servers, we run it up to a max of 7 times till no new messages come in due to sync
so that we can be sure we "got everything" including messages that came in
while we were doing the sync.
If it's just a question of cloning your mailbox locally/on another server,
putting doveadm sync on a cron should suffice to do what is desired here. That
said, doveadm sync will not delete the messages once done, so you'd need to
also handle that yourself.
If the main concern is dodging quota full, I'd probably just use POP3 to
connect (if they offer it) instead, as almost every POP3 server I know of
deletes all the remote messages after fetch, thus ensuring your quota'd mailbox
is never much of a problem except between the interval your mail client checks
for new mail.
Thomas "Andy" Baugh
thomas.ba...@webpros.com
________________________________________
From: Nick Howitt via dovecot <dovecot@dovecot.org>
Sent: Tuesday, September 2, 2025 2:28 PM
To: dovecot@dovecot.org <dovecot@dovecot.org>
Subject: Re: "MitM" account to bypass quota
Please can you reply to list rather than directly do me?
I just know of the tool and not how to use it. It doesn't look like it
supports continually running it in the background, but you can always
put it in a loop in a shell script, perhaps with a delay between
iterations. If you use cron, you have to be careful that it is not
already running when it gets fires again.
Nick
On 02/09/2025 20:08, Carlos Mogas da Silva wrote:
Can doveadm-sync be configured to keep running on the background?
Can't seem to find anything related to this...
On 2 September 2025 20:00:01 WEST, Nick Howitt via dovecot
<dovecot@dovecot.org> wrote:
How about doveadm-sync
(https://doc.dovecot.org/main/core/man/doveadm-sync.1.html) or
imapsync? On 02/09/2025 19:26, Carlos Mogas da Silva via dovecot
wrote:
Hi list. I have an email address hosted on a server not
controlled by me which enforces quota on the accounts. No
issues there. What I want to know, is how can I use my mail
server, or in this case, dovecot, to act as a "client" to that
imap server and download all the messages from it storing them
locally (in my server) in effect, bypassing the quota
restriction. If you can point me to some documentation or give
a general idea on how I could accomplish this it would be
nice. Thanks in advance! Carlos Mogas da Silva
------------------------------------------------------------------------
dovecot mailing list --dovecot@dovecot.org To unsubscribe send
an email todovecot-le...@dovecot.org
_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org
_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org