Bradley Rintoul
2012-Oct-25 18:01 UTC
[Dovecot] Creating Maildir and populating with emails via external Python process
Hello: I'm using Dovecot to provide IMAP services for Thunderbird clients. The user's mail is stored in Maildir format and the individual emails which the user "receives" are actually downloaded and put into the Maildir "repository" using a Python email client (POP3 client). I am trying to create the dovecot-uidlist file and maintain the "next UID" value within it, but I am having trouble with the UIDVALIDITY and the 128 bit mailbox global UID among other things. How can I "seed" a dovecot-uidlist file with these values..? Sorry if the information is not much to go on, please let me know what more information you might need to help point me in the right direction. Thanks, B. RIntoul
Sven Hartge
2012-Oct-25 18:06 UTC
[Dovecot] Creating Maildir and populating with emails via external Python process
Bradley Rintoul <brintoul at sbcglobal.net> wrote:> I'm using Dovecot to provide IMAP services for Thunderbird clients. > The user's mail is stored in Maildir format and the individual emails > which the user "receives" are actually downloaded and put into the > Maildir "repository" using a Python email client (POP3 client).> I am trying to create the dovecot-uidlist file and maintain the "next > UID" value within it, but I am having trouble with the UIDVALIDITY and > the 128 bit mailbox global UID among other things. How can I "seed" a > dovecot-uidlist file with these values..?> Sorry if the information is not much to go on, please let me know what > more information you might need to help point me in the right > direction.How about injecting the mails into the LDA. It will take care of proper delivery without the need for your programm to know the internal workings of dovecot. S? -- Sigmentation fault. Core dumped.
Stan Hoeppner
2012-Oct-25 18:37 UTC
[Dovecot] Creating Maildir and populating with emails via external Python process
On 10/25/2012 1:01 PM, Bradley Rintoul wrote:> the individual emails which the user > "receives" are actually downloaded and put into the Maildir "repository" using a > Python email client (POP3 client).Tell us more about this. This doesn't sound like 'normal' email being fetched from an external service provider over a slow link scenario. This sounds more like an application server generating data files that are then POP'd down to the Dovecot server. Assuming that for now... If you're able to run a popd on this application server, why not run a simple smtp MTA and send these files directly to the user email addresses? Injecting the payload is a pretty simply shell command line, or from within a Python/Perl/etc script. Dovecot handles the rest as it arrives. Problem solved. The more you can do with smtp the better off you are and the easier it is. -- Stan