Re: Subject tag [Dovecot] is gone

2014-06-10 Thread Chris Young
Gmail doesn't let me filter on message headers so I've updated my filter as
follows

Before, my filter was
SUBJECT:([Dovecot])

But now my filter is
HAS THE WORDS:(dovecot.dovecot.org OR dovecot@dovecot.org)


On Tue, Jun 10, 2014 at 10:51 AM, Koenraad Lelong <
dove...@ace-electronics.be> wrote:

> op 09-06-14 22:27, Timo Sirainen schreef:
>
>  I've actually been thinking about it almost since the beginning. It's
>> just been annoying waste of space on my screen. And more importantly
>> nowadays it's also breaking DKIM/DMARC signatures. So if somebody still
>> uses Subject-based filtering it's about time to switch to List-ID header
>> based filtering now.
>>
>> Another thing I'm wondering about is if I should allow text/html parts,
>> because removing them will also break the DKIM signatures. Or mainly I'd
>> like to allow only multipart/alternative with text/plain + text/html, but I
>> don't think I can configure Mailman to support that.
>>
>>  Hi,
>
> Just wanted to ask what happened to "[Dovecot]" when I saw this mail.
> Could you tell me how to find the List_ID ? I looked at the raw mail, but I
> didn't find it :
>
> some removed stuff and anonymized...
> Received: from wursti.dovecot.fi (wursti.dovecot.fi [87.106.245.223])
> by mailbox.ace-electronics.be (Postfix) with SMTP id 808B2A0427
> for ace-electronics.be>; Mon,  9 Jun 2014 22:28:22
> +0200 (CEST)
> Received: from wursti.dovecot.fi (localhost.localdomain [127.0.0.1])
> by wursti.dovecot.fi (Postfix) with ESMTP id 16BC421F32;
> Mon,  9 Jun 2014 22:27:56 +0200 (CEST)
> Received: from talvi.dovecot.org (unknown [137.117.229.219])
> by wursti.dovecot.fi (Postfix) with ESMTP;
> Mon,  9 Jun 2014 22:27:52 +0200 (CEST)
> Received: from [100.90.112.97] (localhost [127.0.0.1])
> by talvi.dovecot.org (Postfix) with ESMTP id 0165E235C1;
> Mon,  9 Jun 2014 20:28:43 + (UTC)
> Received: by talvi.dovecot.org (Postfix, from userid 506)
> id B242523584; Mon,  9 Jun 2014 20:28:39 + (UTC)
> Received: from wursti.dovecot.fi (unknown [87.106.245.223])
> by talvi.dovecot.org (Postfix) with ESMTP id 51A3023584
> for ; Mon,  9 Jun 2014 20:28:39 + (UTC)
> Received: from [192.168.10.103] (cs181255018.pp.htv.fi [82.181.255.18])
> by wursti.dovecot.fi (Postfix) with ESMTPSA id 6ABD221D30
> for ; Mon,  9 Jun 2014 22:27:43 +0200 (CEST)
> From: Timo Sirainen iki.fi>
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: quoted-printable
> Subject: Subject tag [Dovecot] is gone
> Message-Id: 
> Date: Mon, 9 Jun 2014 23:27:41 +0300
> To: Dovecot Mailing List 
> Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\))
> X-Mailer: Apple Mail (2.1878.2)
> Precedence: list
> Reply-To: Dovecot Mailing List 
> X-WatchGuard-Spam-ID: str=0001.0A0B0202.539618E6.008E,ss=1,re=0.000,fgs=0
> X-WatchGuard-Spam-Score: 0, clean; 0, no virus
> X-WatchGuard-Mail-Client-IP: 87.106.245.223
> X-WatchGuard-Mail-From: dovecot-boun...@dovecot.org
> X-Virus-Scanned: Maia Mailguard 1.0.3
>
> I've actually been thinking about it almost since the beginning. It's =
> just been annoying waste of space on my screen. And more importantly =
> nowadays it's also breaking DKIM/DMARC signatures. So if somebody still =
> uses Subject-based filtering it's about time to switch to List-ID header =
> based filtering now.
>
> Another thing I'm wondering about is if I should allow text/html parts, =
> because removing them will also break the DKIM signatures. Or mainly I'd =
> like to allow only multipart/alternative with text/plain + text/html, =
>
> but I don't think I can configure Mailman to support that.
>


Re: [Dovecot] Please HELP: how to delete all messages older than X days

2013-08-12 Thread Chris Young
I've got a nightly cron job that runs a bash script to delete old messages
from specific folders
doveadm expunge -A mailbox complete savedbefore 7d
doveadm expunge -A mailbox failed savedbefore 7d
doveadm expunge -A mailbox % savedbefore 60d

this deletes anything, in any mailbox, older than 60 days
and this deletes anything from /complete or /failed that is more than 7
days old.

I don't have people useing these mailboxes, they are all attached to
automation agents that don't do a good job of cleaning up after themselves.


On Mon, Aug 12, 2013 at 10:27 AM, Timo Sirainen  wrote:

> On 8.8.2013, at 13.00, Răzvan Sandu  wrote:
>
> > Pe 7 Aug 2013 11:35, Timo Sirainen a scris:
> >
> >>> Thank you, but doveadm expunge will ask for the mailbox name:
> >>>
> >>> [root@mail1 ~]# doveadm expunge -u john@example.com ON
> >>> 2013-08-07 doveadm(root): Fatal: expunge: To avoid accidents,
> >>> search query must contain MAILBOX in all search branches
> >>
> >> Add: mailbox '*'
> >
> > Thank you, it works!
> >
> > May I use the same wildcard syntax ('*') when configuring the expire
> > plugin?  Something like:
> >
> > mail_plugins = $mail_plugins expire
> >
> > plugin {
> >  expire = *
> > }
>
> It should work, but I'm not sure if it's actually all that helpful. Might
> be more work to keep updating the expire database than to simply go through
> all users.
>
>


Re: [Dovecot] warning regarding quota and mboxes

2013-01-23 Thread Chris Young
if you're getting errors, then quotas are probably not working.

as timo suggested,
maildir only works with maildir
but your mail location shows MBox and Maildir formats
use Dict quota as it works with both MBox and Maildir

I don't know enough about dovecot to know why you'd have two formats, MBox
and Maildir, defined for mail_location.

And it seems odd that your mail_home is under /var/spool. I was under the
impression that /var/spool was for temporary data. Are you actually keeping
mailboxes there?

On Tue, Jan 15, 2013 at 11:25 AM, Andreas Meyer  wrote:

> Hello!
>
> Timo Sirainen  wrote:
>
> > On Thu, 2013-01-10 at 16:45 +0100, Andreas Meyer wrote:
> > > Hello!
> > >
> > > We drive mboxes and maildirs and the dovecot-server is running very
> well and
> > > everthing is fine, but I get the following warning in the
> dovecot-lda-errors.log
> > > when a mail is delivered to a mbox.
> > >
> > > Jan 10 16:29:24 lda(arc...@bitcorner.de): Warning: quota: Namespace
> '' is not Maildir, skipping for Maildir++ quota
> > >
> > > This is what I defined in the dovecot.conf:
> > >
> > > mail_home = /var/spool/vhosts/%d/%n
> > > mail_location = mbox:~/:maildir:~/
> >
> > How is that setting even working? You're using some early v2.0? It's
> > supposed to fail:
>
> # dovecot --version
> 2.1.7
>
> I was told to define mail_location, if I remember right it was when I
> changed to dovecot-lda instead of letting postfix deliver dircetly to
> the maildirs and mailboxes.
>
> > Error: user x: Initialization failed: Namespace '': Unknown setting:
> > maildir
>
> I have no errors like this in the logs. Everthing is working flawless.
>
> How can I know, what namespaces are defined?
>
> # doveconf -d namespace
> # doveconf -n namespace
>
> give not output. I fear to do something wrong, when I define incomplete
> namespaces.
>
> > > mail_plugins = quota
> > >
> > > plugin {
> > > quota = maildir:User quota
> > > quota_rule = *:storage=500MB
> > > quota_rule2 = Trash:storage=+10%%
> > > }
> > >
> > > Can I avoid the error above somehow? Namespaces are a bit mysterious
> for
> > > me at the moment.
> >
> > Maildir++ quota works only when delivering to Maildir. If you want to
> > use some quota backend that works with both mboxes and maildirs, you
> > could use dict file: http://wiki2.dovecot.org/Quota/Dict
>
> ok, I'll live with the warning in the log for now.
>
>   Andreas
>


[Dovecot] disable imap info logging

2011-11-22 Thread Chris Young
Is there a way to disable the imap info logging?

My logs are filling with tons of login/logout messages

Nov 22 18:23:25 imap-login: Info: Login: user=, method={method},
rip=10.86.189.79, lip=10.86.189.82, mpid=22488
Nov 22 18:23:25 imap(USER1): Info: Disconnected: Logged out bytes=54/726


Re: [Dovecot] default Dovecot-LDA CHGRP/CHMOD

2011-11-15 Thread Chris Young
Thanks for the response.
I was able to get it working with
chmod 755


On Tue, Nov 15, 2011 at 3:34 PM, Timo Sirainen  wrote:

> On Wed, 2011-11-09 at 14:04 -0500, Chris Young wrote:
> > I am familiar with this article
> > http://wiki.dovecot.org/LDA#multipleuids
> >
> > I want to disable setuid-root, but I don't know the default group and
> > permissions.
> >
> > sudo chgrp root /usr/libexec/dovecot/dovecot-lda
> > sudo chmod 00750 /usr/libexec/dovecot/dovecot-lda
> >
> > but my delivery is still failing
> >
> > Nov  9 18:22:39 vl42 postfix/pipe[23039]: DEC54700B1: to=<
> u...@domain.com>,
> > orig_to=, relay=dovecot, delay=0.05,
> delays=0.04/0/0/0.01,
> > dsn=4.3.0, status=deferred (temporary failure. Command output: pipe:
> fatal:
> > pipe_command: execvp /usr/libexec/dovecot/dovecot-lda: Permission denied
> )
>
> dovecot-lda's group should be the same as you specify to the pipe in
> Postfix's master.cf.
>
>
>


Re: [Dovecot] default Dovecot-LDA CHGRP/CHMOD

2011-11-09 Thread Chris Young
I am familiar with this article
http://wiki.dovecot.org/LDA#multipleuids

I want to disable setuid-root, but I don't know the default group and
permissions.

sudo chgrp root /usr/libexec/dovecot/dovecot-lda
sudo chmod 00750 /usr/libexec/dovecot/dovecot-lda

but my delivery is still failing

Nov  9 18:22:39 vl42 postfix/pipe[23039]: DEC54700B1: to=,
orig_to=, relay=dovecot, delay=0.05, delays=0.04/0/0/0.01,
dsn=4.3.0, status=deferred (temporary failure. Command output: pipe: fatal:
pipe_command: execvp /usr/libexec/dovecot/dovecot-lda: Permission denied )

Thoughts?

Thanks
Chris