Re: Multiple messages with the same GUID

2021-11-02 Thread Ron Garret
On Nov 1, 2021, at 11:46 PM, Aki Tuomi wrote: > >> On 21/10/2021 21:22 Ron Garret wrote: >> >> >> I somehow ended up with multiple messages in the same mailbox with the same >> GUID. All of the messages are identical (AFAICT) but getting multipl

Re: Doveadm fetch slow and 100%CPU with a specific message-id

2021-10-25 Thread Ron Garret
On Oct 25, 2021, at 4:10 PM, Joseph Tam wrote: > On Mon, 25 Oct 2021, Ron Garret wrote: > >>>> Note that message-ids are not guaranteed to be unique. During my test >>>> I found groups of as many as 20 different messages with the same >>>> message I

Re: Doveadm fetch slow and 100%CPU with a specific message-id

2021-10-25 Thread Ron Garret
On Oct 25, 2021, at 2:23 PM, Joseph Tam wrote: > On Mon, 25 Oct 2021, Ron Garret wrote: > >> Note that message-ids are not guaranteed to be unique. During my test >> I found groups of as many as 20 different messages with the same >> message ID. (Turns out this mak

Re: Doveadm fetch slow and 100%CPU with a specific message-id

2021-10-25 Thread Ron Garret
On Oct 25, 2021, at 10:05 AM, Aki Tuomi wrote: > >> On 25/10/2021 19:40 Alessio Cecchi wrote: >> >> >> Hi, >> I'm using doveadm fetch in order to find the mailbox where a messagge is >> stored: >> doveadm fetch -u ales...@domain.com "mailbox" HEADER Message-ID >> '1...@domain.com' >> If

Multiple messages with the same GUID

2021-10-21 Thread Ron Garret
I somehow ended up with multiple messages in the same mailbox with the same GUID. All of the messages are identical (AFAICT) but getting multiple responses for doveadm fetch for a particular guid is screwing up one of my applications. When I searched for the offending guid in dovecot-uidlist

Re: What am I doing wrong?

2021-05-26 Thread Ron Garret
Never mind, I figured it out. It was a problem with my client configuration. It was talking to the wrong server. Sorry about the noise. On May 25, 2021, at 6:50 PM, Ron Garret wrote: > I’m trying to run an imapsieve script when a user sends a message (this is > part of a spam filter

What am I doing wrong?

2021-05-25 Thread Ron Garret
I’m trying to run an imapsieve script when a user sends a message (this is part of a spam filter and I want to use outgoing messages to train the filter on good content). This is my config: plugin { sieve_plugins = sieve_imapsieve sieve_extprograms sieve =

Re: Processing incoming mail efficiently

2021-01-30 Thread Ron Garret
much appreciated. rg On Jan 30, 2021, at 12:07 PM, Ron Garret wrote: > > On Jan 30, 2021, at 11:54 AM, Tom Hendrikx wrote: > >> IMHO you're still trying to re-invent the wheel :) > > I don’t deny that. The goal of this project is as much (maybe more) to be a

Re: Processing incoming mail efficiently

2021-01-30 Thread Ron Garret
On Jan 30, 2021, at 11:54 AM, Tom Hendrikx wrote: > IMHO you're still trying to re-invent the wheel :) I don’t deny that. The goal of this project is as much (maybe more) to be a learning experience as it is to produce something useful. FWIW, there are two reasons I don’t want to use a

Re: Processing incoming mail efficiently

2021-01-30 Thread Ron Garret
. rg On Jan 30, 2021, at 9:56 AM, Tom Hendrikx wrote: > > > On 30-01-2021 17:49, Ron Garret wrote: >> I’ve asked a related question on this list before but I now have a much >> better handle on what I’m doing and I realize that I still don’t know the >> answer, so

Processing incoming mail efficiently

2021-01-30 Thread Ron Garret
I’ve asked a related question on this list before but I now have a much better handle on what I’m doing and I realize that I still don’t know the answer, so I’m going to ask this again in a slightly different form. I’m writing a spam filter, so obviously I need to feed incoming mail to it

What is the right way to move messages between mailboxes?

2021-01-30 Thread Ron Garret
I’m working on a spam filter. Incoming messages are sent to an “incoming” folder (via a sieve script) where they are processed by the filter and moved either to INBOX or Junk. My question is: what is the right way to effect this move? Can I just mv the file? With Dovecot automatically

Re: Massive /tmp files

2021-01-22 Thread Ron Garret
On Jan 22, 2021, at 10:05 AM, @lbutlr wrote: > On 22 Jan 2021, at 09:07, Ron Garret (gmail) wrote: >> On Jan 22, 2021, at 8:02 AM, @lbutlr wrote: >> >>> On 21 Jan 2021, at 18:08, MRob wrote: >>>> Hello, >>>> I just found use

Re: Massive /tmp files

2021-01-22 Thread Ron Garret (gmail)
On Jan 22, 2021, at 8:02 AM, @lbutlr wrote: > On 21 Jan 2021, at 18:08, MRob wrote: >> Hello, >> I just found user who has single folder (standard maildir format) that >> filled with over 8mil files and 800GB in the /tmp subdirectory of that >> folder: > > Are they real files or hard

Re: Massive /tmp files

2021-01-22 Thread Ron Garret
On Jan 22, 2021, at 8:02 AM, @lbutlr wrote: > On 21 Jan 2021, at 18:08, MRob wrote: >> Hello, >> I just found user who has single folder (standard maildir format) that >> filled with over 8mil files and 800GB in the /tmp subdirectory of that >> folder: > > Are they real files or hard

Where does sieve store its "vacation" state?

2021-01-20 Thread Ron Garret
Pigeonhole/sieve has a “vacation” feature that keeps track of which addresses it has sent messages to already so it doesn’t send too many. The state for this feature seems to survive a dovecot restart, so it must be persistent somewhere and not just stored in RAM. But I don’t recall

Re: Sieve fileinto :create is failing

2021-01-20 Thread Ron Garret
On Jan 20, 2021, at 12:32 PM, Piotr Auksztulewicz wrote: > On Wed, Jan 20, 2021 at 12:12:40PM -0800, Ron Garret wrote: >> 1. Is there any documentation about what “requires” are needed >> to access various features? The only source I’ve found for this is >> reverse

Re: Sieve fileinto :create is failing

2021-01-20 Thread Ron Garret
in /var/log along with everything else. rg On Jan 19, 2021, at 11:02 PM, Aki Tuomi wrote: > >> On 20/01/2021 08:46 Ron Garret wrote: >> >> >> On Jan 19, 2021, at 10:40 PM, Aki Tuomi wrote: >> >>> >>>> On 19/01/2021 19:45 Ron Garret wr

Re: Sieve fileinto :create is failing

2021-01-19 Thread Ron Garret
On Jan 19, 2021, at 10:40 PM, Aki Tuomi wrote: > >> On 19/01/2021 19:45 Ron Garret wrote: >> >> >> I’m trying to get a sieve script to move messages into a folder, and to >> create that folder if it doesn’t already exist. I’m following the

Sieve fileinto :create is failing

2021-01-19 Thread Ron Garret
I’m trying to get a sieve script to move messages into a folder, and to create that folder if it doesn’t already exist. I’m following the example code at: https://doc.dovecot.org/configuration_manual/sieve/examples/ and doing this: > require ["fileinto", "mailbox”]; > … > fileinto :create

Re: Changing the default delivery mailbox to something other than INBOX

2021-01-18 Thread Ron Garret
On Jan 18, 2021, at 8:11 AM, Aki Tuomi wrote: > How about using IMAP Sieve for Spam filter training? > https://doc.dovecot.org/configuration_manual/howto/antispam_with_sieve/ That is in fact exactly what I am doing. > Also, sieve rules are processed during Delivery (lmtp or lda), not if

Re: Changing the default delivery mailbox to something other than INBOX

2021-01-18 Thread Ron Garret
On Jan 17, 2021, at 11:06 PM, Aki Tuomi wrote: > >> On 18/01/2021 08:56 Ron Garret wrote: >> >> >> On Jan 17, 2021, at 10:48 PM, Aki Tuomi wrote: >> >>> Don't touch the INBOX setting (leave it out), use the -m parameter for >>> doveco

Re: Changing the default delivery mailbox to something other than INBOX

2021-01-17 Thread Ron Garret
On Jan 17, 2021, at 10:48 PM, Aki Tuomi wrote: > Don't touch the INBOX setting (leave it out), use the -m parameter for > dovecot-lda. I don’t think that will work. My MTA is postfix and it’s connected to dovecot via LMTP, so AFAIK postfix is talking to dovecot over a socket, and

Re: Changing the default delivery mailbox to something other than INBOX

2021-01-17 Thread Ron Garret
couldn't be saved to the mailbox for any reason, it's > delivered to INBOX instead. > > Aki > >> On 18/01/2021 04:42 Ron Garret wrote: >> >> >> I tried the obvious: >> >> mail_location = maildir:/var/mail/vhosts/%d/%n/mail:INBOX=mail/.Incoming &

Re: Changing the default delivery mailbox to something other than INBOX

2021-01-17 Thread Ron Garret
t; LDA and not in postfix. > > > > -- Noel Jones > > > On 1/17/2021 8:42 PM, Ron Garret wrote: >> I tried the obvious: >> >> mail_location = maildir:/var/mail/vhosts/%d/%n/mail:INBOX=mail/.Incoming >> >> and that failed in an even more bizarre way. The

Re: Changing the default delivery mailbox to something other than INBOX

2021-01-17 Thread Ron Garret
that were in my Inbox disappeared from my mail client. I reverted the change and all of the messages that had previously been in Inbox reappeared. WTF? On Jan 17, 2021, at 5:00 PM, Ron Garret wrote: > I groveled around in the docs and discovered the INBOX=… option to the > mail_lo

Re: Changing the default delivery mailbox to something other than INBOX

2021-01-17 Thread Ron Garret
would be much appreciated. (BTW, I’d be happy to pay someone a consulting fee for help with this project. If you’re interested contact me off-list.) rg On Jan 17, 2021, at 12:08 PM, Ron Garret wrote: > Is there an easy way (i.e. a built-in configuration setting) to change the > name of

Changing the default delivery mailbox to something other than INBOX

2021-01-17 Thread Ron Garret
Is there an easy way (i.e. a built-in configuration setting) to change the name of the mailbox that the dovecot LDA delivers mail into? The default is INBOX but I’d like mail to be delivered to some other mailbox. The reason for this is that I want all incoming mail to be invisible to the

Re: Obtaining the IMAP GUID from a sieve script

2021-01-17 Thread Ron Garret
Just for the record, it turns out that doveadm is the key to happiness here. It lets me find and manipulate messages by message-id (or any other header) which is what I needed. rg

Re: Obtaining the IMAP GUID from a sieve script

2021-01-16 Thread Ron Garret
On Jan 16, 2021, at 4:21 PM, Joseph Tam wrote: > On Fri, 15 Jan 2021, Ron Garret wrote: > >>> Why not simply use the message-id? >> >> Because not every email has one. RFC5322 doesn?t require them. > > Doesn't your MTA then insert one if it's missing? As

Re: Obtaining the IMAP GUID from a sieve script

2021-01-15 Thread Ron Garret
Because not every email has one. RFC5322 doesn’t require them. On Jan 15, 2021, at 6:30 PM, @lbutlr wrote: > On 15 Jan 2021, at 10:57, Ron Garret wrote: >> Is there any way to obtain the IMAP GUiD of a message that is being >> processed by a sieve script? I’m writing a fi

Obtaining the IMAP GUID from a sieve script

2021-01-15 Thread Ron Garret
Is there any way to obtain the IMAP GUiD of a message that is being processed by a sieve script? I’m writing a filter that needs to to keep track of message identities as they are moved around between folders. I could add my own id header, but I’d rather not have to reinvent that wheel.

Re: dovecot: imap-login: Panic: Trying to allocate 0 bytes

2016-03-08 Thread Ron Garret
Figured it out. Turned out to be a corrupted ssl parameter file. On Mar 7, 2016, at 1:01 PM, Ron Garret <ron.gar...@gmail.com> wrote: > My ISP had a hard drive crash. After the dust settled, my dovecot > installation started failing with the following error every time a cli

dovecot: imap-login: Panic: Trying to allocate 0 bytes

2016-03-07 Thread Ron Garret
My ISP had a hard drive crash. After the dust settled, my dovecot installation started failing with the following error every time a client tries to connect: dovecot: imap-login: Panic: Trying to allocate 0 bytes My installation has otherwise been stable and rock-solid for years. Both I and

[Dovecot] Duplicate messages when moving message to inbox

2011-01-30 Thread Ron Garret
Hello, I am encountering a strange problem but I'm not sure if it's a dovecot problem or a Mac Mail problem. The symptom is that if I move a message from a folder into my inbox the message ends up showing up as a duplicate in Mac Mail. On the server it's still just one message. This ONLY