Re: Discard mail with from date older than xxxx

2019-01-24 Thread Per Jessen
Trever L. Adams wrote: On 1/24/19 12:15 AM, Per Jessen wrote: Trever L. Adams wrote: I know that sieve doesn't do math. The file would be created externally. Based on examples in section 4.4 of https://tools.ietf.org/html/rfc5260#section-4 I figured something like this would work. if

Re: Discard mail with from date older than xxxx

2019-01-23 Thread Per Jessen
rst occurrence). > spam: error: validation failed. > sievec(root): Fatal: failed to compile sieve script 'spam.sieve' > > Does anyone have any advice on how to get this working? Hi Trever here is a snippet I use occasionally: if allof( currentdate :zone "+0200" :value

Re: DMARC policies

2018-11-30 Thread Per Jessen
Aki Tuomi wrote: On 30.11.2018 10.03, Per Jessen wrote: Hi AKi I guess my address was re-subscribed then? I was subscribed as nomail before, do I need to update that myself? thanks Per Yes. I had to do it with an automated script and mailman withlist interface is crappy. Sorry about

Re: DMARC policies

2018-11-30 Thread Per Jessen
> Aki Hi AKi I guess my address was re-subscribed then? I was subscribed as nomail before, do I need to update that myself? thanks Per -- Per Jessen, Zürich (6.2°C) http://www.cloudsuisse.com/ - your owncloud, hosted in Switzerland.

Re: how to mass delete after a hacked mail?

2016-09-17 Thread Per Jessen
"Mail Delivery System" ") > How about this - find /cur -type f -ctime -7 | xargs grep -l '^Subject:.*Undelivered Mail Returned to Sender' | xargs rm (the -7 will limit the search to files created in the last week). Obviously run some tests first _without_ &quo

Re: Help setting up IMAP account in Outlook 2016

2016-08-26 Thread Per Jessen
Per Jessen wrote: > Spiro Angeli wrote: > >> Hi, >> I need help setting up properly mail clients for my email accounts >> running on dovecot ver 2.2.18 on CentOS release 6.8 (Final) in >> italian. I posted a forum thread where you can get all detail info: >> t

Re: Help setting up IMAP account in Outlook 2016

2016-08-26 Thread Per Jessen
accessing the same account in multiple languages (English on the iPhone, Italian from Outlook etc), you need to map the language-specific folder names to a single one. E.g. "Posta inviata" to "Sent mail". Look at /etc/dovecot/conf.d/15-mailboxes.conf HTH Per -- Per Jesse

Re: sieve_after seems to be ignored ?

2015-08-25 Thread Per Jessen
Benny Pedersen wrote: > Per Jessen skrev den 2015-08-25 15:49: > >>>>>> plugin { >>>>>> sieve = ~/.dovecot.sieve >>>>>> sieve_dir = ~/sieve >>>>>> sieve_before = >>>>>> sieve_after = ~

Re: sieve_after seems to be ignored ?

2015-08-25 Thread Per Jessen
Per Jessen wrote: > Per Jessen wrote: > >> Michael Kliewe wrote: >> >>> Hi Per, >>> >>> On 25.08.2015 11:40, Per Jessen wrote: >>>> sieve and managesieve are both working fine, have been for years. >>>> Now I want to

Re: sieve_after seems to ignored ?

2015-08-25 Thread Per Jessen
Per Jessen wrote: > Michael Kliewe wrote: > >> Hi Per, >> >> On 25.08.2015 11:40, Per Jessen wrote: >>> sieve and managesieve are both working fine, have been for years. >>> Now I want to add a sieve_after script: >>> >>> /etc

Re: sieve_after seems to ignored ?

2015-08-25 Thread Per Jessen
Michael Kliewe wrote: > Hi Per, > > On 25.08.2015 11:40, Per Jessen wrote: >> sieve and managesieve are both working fine, have been for years. Now >> I want to add a sieve_after script: >> >> /etc/dovecot/conf.d/90-sieve.conf : >> >> plugin {

sieve_after seems to ignored ?

2015-08-25 Thread Per Jessen
compiled ~/sieve/personal.sieve to ~/sieve/personal.svbin, but it doesn't seem to be read. Any hints? thanks Per Jessen -- Per Jessen, Zürich (17.2°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland.

Re: Request to list owner

2014-10-14 Thread Per Jessen
- for list identification, use the List-* headers instead. > - and these days spam filters do a far superior job than DKIM, making > it too little, too late. I do not use DKIM and get no > spam. I don't use DKIM, and I get loads of spam :-) As always, YMMV. -- Per Jessen, Zür

Re: Special-Use Mailboxes ?

2014-08-26 Thread Per Jessen
Michael M Slusarz wrote: > Quoting Per Jessen : > >> I'm trying to get my head around this - the special_use flag is given >> out to an IMAP client as a _hint_ of where certain messages belong? > > Yes. There's no guarantee that any of the messages currentl

Re: Special-Use Mailboxes ?

2014-08-25 Thread Per Jessen
Per Jessen wrote: > Michael M Slusarz wrote: > >> Quoting Per Jessen : >> >>> Lots of people must have had this issue before me - users using >>> different devices&software (pc, smartphone, tablet, thunderbird, >>> outlook, webmail) and lan

Re: Special-Use Mailboxes ?

2014-08-25 Thread Per Jessen
Mihai Badici wrote: > On Tuesday 26 August 2014 07:44:04 Per Jessen wrote: >> Mihai Badici wrote: >> >> > I think metadata support can do the job (and more) . See Kolab >> >> > project >> >> >> >> Well, let's stick to d

Re: Special-Use Mailboxes ?

2014-08-25 Thread Per Jessen
Michael M Slusarz wrote: > Quoting Per Jessen : > >> Lots of people must have had this issue before me - users using >> different devices&software (pc, smartphone, tablet, thunderbird, >> outlook, webmail) and languages (e.g. English on the PC, German on >> the

Re: Special-Use Mailboxes ?

2014-08-25 Thread Per Jessen
he metadata support is available in dovecot > starting from 2.2.9 if i remember exactly. Okay, I'll have a closer look, thanks. -- Per Jessen, Zürich (12.9°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland.

Re: Special-Use Mailboxes ?

2014-08-25 Thread Per Jessen
Mihai Badici wrote: > On Monday 25 August 2014 21:03:26 Per Jessen wrote: >> Lots of people must have had this issue before me - users using >> different devices&software (pc, smartphone, tablet, thunderbird, >> outlook, webmail) and languages (e.g. English on the PC

Special-Use Mailboxes ?

2014-08-25 Thread Per Jessen
irective? Is that what it might be used for? mailbox "Sent" { special_use = \Sent } mailbox "Gesendete Elemente" { special_use = \Sent } -- Per Jessen, Zürich (12.9°C) http://www.dns24.ch/ - free dynamic DNS, made in Switzerland.

Re: does dovecot assume ~ = /home/userid ?

2014-08-22 Thread Per Jessen
Gregory Finch wrote: > On 2014-08-22 10:04 AM, Per Jessen wrote: >> See $SUBJ - or is there a setting somewhere to control this? >> >> I have a userid = u...@example.com with homedir (from /etc/shadow) >> = /home/example.com/user, but when dovecot wants to find e.g. >

does dovecot assume ~ = /home/userid ?

2014-08-22 Thread Per Jessen
me in the correct directory. -- Per Jessen, Zürich (22.3°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland.

Re: [Dovecot] How to prevent delivery to mailboxes over quota at SMTP-time

2013-04-12 Thread Per Jessen
g that. I guess I'll have to upgrade, I think we're dovecot 2.0. -- Per Jessen, Zürich (9.6°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland.

Re: [Dovecot] What best decision to make for flatfiles or SQL when I use Dovecot2 + Postfix together?

2011-09-29 Thread Per Jessen
t catastrophic results when attempting to use it. I am fully > aware that the main problem is that I am not truly "ldap" proficient. > For the end user who needs an easy to maintain database I would > unequivocally recommend MySQL. +1 on the mysql. /Per Jessen, Zürich

Re: [Dovecot] Segmentation fault in dovecot director lmtp service

2011-08-17 Thread Per Jessen
d regards >> >>Reinhard >> > > > Hi, > > You might need to limit the concurrent deliveries from postfix. > Check the maxproc parameter in your master.conf, which is 100 by > default. You should reduce it to some lower value, I would say between > 10 and 40 depending on your system. That would allow your queues to > grow without putting too much stress on the deliveries, even when > forcing it with postqueue -f. Regardless, Reinhard still seem to have stumbled on a bug. /Per Jessen, Zürich

Re: [Dovecot] sieve, vacation - lda-dupes being ignored?

2011-07-27 Thread Per Jessen
Per Jessen wrote: > Environment: dovecot 2.0.9, postfix 2.6, Pigeonhole 0.2.2 > > I'm in the process of setting up vacation auto-reply for the first > time, (it's that time of the year) and it looks like > .dovecot.lda-dupes is being updated, but not read (or just i

[Dovecot] sieve, vacation - lda-dupes being ignored?

2011-07-26 Thread Per Jessen
:25 neon dovecot: lmtp(19216, per@example.com): Wma/OIDALk4QSwAA0G3O/A: sieve: msgid=<4e2ec06f.5060...@example.com>: sent vacation response to Is there a way to dump the contents of lda-dupes in clear text? thanks Per Jessen, Zürich

Re: [Dovecot] ntp revisited (so what to do ?)

2011-05-09 Thread Per Jessen
Harlan Stenn wrote: > Per wrote: >> Sure, I meant 'ntpd -q'. > > What benefit do you see in running something to set the time and exit > before starting ntpd instead of just starting ntpd with -g? > > H None, it is just what is in the standard init-script in openSUSE. /Per Jessen, Zürich

Re: [Dovecot] ntp revisited (so what to do ?)

2011-05-09 Thread Per Jessen
reset or something like that? > > I mean: if a Linux starts with the hardware clock set to 1/1/2000 how > much does it take to get the real date? ntpd -g will set it immediately. /Per Jessen, Zürich

Re: [Dovecot] ntp revisited (so what to do ?)

2011-05-09 Thread Per Jessen
Stan Hoeppner wrote: > On 5/9/2011 1:31 AM, Per Jessen wrote: >> Stan Hoeppner wrote: > >>> This is not correct. You're assuming that ntpd doesn't perform >>> sanity checks on the system time when the daemon starts, which is >>> not the case.

Re: [Dovecot] ntp revisited (so what to do ?)

2011-05-08 Thread Per Jessen
You're assuming that ntpd doesn't perform sanity > checks on the system time when the daemon starts, which is not the > case. The sanity check may be disabled with -g in which case using ntpdate/sntp/ntpd -q at start up becomes pointless. /Per Jessen, Zürich

Re: [Dovecot] ntp revisited (so what to do ?)

2011-05-08 Thread Per Jessen
ntp) at startup to make sure the initial setting is reasonable, then ntpd to keep it in sync. /Per Jessen, Zürich

Re: [Dovecot] disabling outgoing mail ?

2011-02-03 Thread Per Jessen
Per Jessen wrote: > We're using roundcube as a method of access to a read-only email > archive served via imap/dovecot. I was thinking of disabling outgoing > mails by fiddling with the roundcube code, but thought it might be > possible to disable the outgoing functionality from

[Dovecot] disabling outgoing mail ?

2011-02-03 Thread Per Jessen
We're using roundcube as a method of access to a read-only email archive served via imap/dovecot. I was thinking of disabling outgoing mails by fiddling with the roundcube code, but thought it might be possible to disable the outgoing functionality from dovecot? /Per Jessen, Zürich

Re: [Dovecot] Can't get it working

2011-01-26 Thread Per Jessen
t. Louis, MO 63131 >US "Lives in country X" doesn't imply "speaks language of X very well". Plenty of expats around here to prove that :-( /Per Jessen, Zürich

Re: [Dovecot] Delivered-To header without +extension ?

2011-01-21 Thread Per Jessen
Charles Marcus wrote: > On 2011-01-20 4:06 AM, Per Jessen wrote: >> I've been reading >> a bit, and I think the issue is that postfix adds X-Original-To when >> delivering to a mailbox - which delivery via smtp/lmtp isn't. >> >> I'm not sure

Re: [Dovecot] LMTP & home, chroot, mail userdb fields.

2011-01-20 Thread Per Jessen
y chance that lmtp is having >> problems with chroot()ing ? > > I don't think, that lmtp needs "real" chroot at all (it can degrade > performance and spoil whole idea of long-living delivery process), > but, IMHO, lmtp should calculate full path from all three components > -- chroot + home + maildir. And it seems, that lmtp doesn't use chroot > variable at all. Yes, that is what it looks like. /Per Jessen, Zürich

Re: [Dovecot] LMTP & home, chroot, mail userdb fields.

2011-01-20 Thread Per Jessen
root. Mail > will be delivered, but can not be acessed. > Okay, I see how you've set it up now. Any chance that lmtp is having problems with chroot()ing ? /Per Jessen, Zürich

Re: [Dovecot] LMTP & home, chroot, mail userdb fields.

2011-01-20 Thread Per Jessen
r) in the base directory (/var/run/dovecot) > How should I change my userdb output to make both POP/IMAP and LMTP > processes happy? For starters, I think you need to return a field "mail" containing perhaps: maildir:/usr/home/hosted/v-mail/domain/user /Per Jessen, Zürich

Re: [Dovecot] Delivered-To header without +extension ?

2011-01-20 Thread Per Jessen
Robert Schetterer wrote: > Am 20.01.2011 09:41, schrieb Per Jessen: >> Tom Hendrikx wrote: >> >>> On 20/01/11 08:50, Per Jessen wrote: >>>> Per Jessen wrote: >>>> >>>>> Pascal Volk wrote: >>>>> >>>>>&

Re: [Dovecot] Delivered-To header without +extension ?

2011-01-20 Thread Per Jessen
Tom Hendrikx wrote: > On 20/01/11 08:50, Per Jessen wrote: >> Per Jessen wrote: >> >>> Pascal Volk wrote: >>> >>>> Hi Per, >>>> >>>> now the +ext is included in the Delivered-To header again: >>>> http://hg.d

Re: [Dovecot] Delivered-To header without +extension ?

2011-01-19 Thread Per Jessen
Per Jessen wrote: > Pascal Volk wrote: > >> Hi Per, >> >> now the +ext is included in the Delivered-To header again: >> http://hg.dovecot.org/dovecot-2.0/rev/a3a7cc0172fd >> > > Thanks Pascal, that was fast! > > Last night, I reverse applied t

Re: [Dovecot] Delivered-To header without +extension ?

2011-01-19 Thread Per Jessen
I'm building it just now. /Per Jessen, Zürich

Re: [Dovecot] Delivered-To header without +extension ?

2011-01-19 Thread Per Jessen
Pascal Volk wrote: > On 01/19/2011 07:58 PM Per Jessen wrote: >> According to http://www.postfix.org/local.8.html, the Delivered-To >> header is part of the qmail system. >> >> HISTORY >>The Delivered-To: message header appears in the qmail sys- >>

Re: [Dovecot] Delivered-To header without +extension ?

2011-01-19 Thread Per Jessen
Pascal Volk wrote: > On 01/19/2011 06:48 PM Per Jessen wrote: >> … Was there any specific reason for having dovecot remove the >> +extension? > > Timo and I talked about the Delivered-To w/ or w/o +ext on irc > (#dovecot). I asked him to remove the extension from t

Re: [Dovecot] Delivered-To header without +extension ?

2011-01-19 Thread Per Jessen
Pascal Volk wrote: > On 01/19/2011 06:27 PM Per Jessen wrote: >> I'm running postfix 2.6.2 and dovecot 2.0.9, and I've just switched >> to delivering mails to dovecot via lmtp. It looks like the >> Delivered-To: header is slightly different - it doesn't se

[Dovecot] Delivered-To header without +extension ?

2011-01-19 Thread Per Jessen
I'm running postfix 2.6.2 and dovecot 2.0.9, and I've just switched to delivering mails to dovecot via lmtp. It looks like the Delivered-To: header is slightly different - it doesn't seem to include the +extension? Is this intentional or does the +extension somehow get in the way

[Dovecot] Error: user Initialization failed: namespace configuration error: inbox=yes namespace missing

2010-11-05 Thread Per Jessen
In my email archiving setup, no user will have an inbox (regular mail is taken care of by another system). Is it not possible to configure a dovecot setup without an inbox? /Per Jessen, Zürich

Re: [Dovecot] automatic un-subscribe ?

2010-11-03 Thread Per Jessen
Timo Sirainen wrote: > On Wed, 2010-11-03 at 19:26 +0100, Per Jessen wrote: >> > I don't think there is any good way of doing it. If user subscribes >> > manually to it, you probably wouldn't want to unsubscribe then, >> > right? >> >> If th

Re: [Dovecot] automatic un-subscribe ?

2010-11-03 Thread Per Jessen
Timo Sirainen wrote: > On Wed, 2010-11-03 at 10:23 +0100, Per Jessen wrote: >> Is there a way for an unsubscribe from a previously (auto-)subscribed >> folder? I'm building an email archiving system, and archived mails >> are organized by annum. A user will ha

Re: [Dovecot] remote hot site, IMAP replication or cluster over WAN

2010-11-03 Thread Per Jessen
.3, and contact > the machine wich is master at that moment. Yes, this is a normal Linux-HA setup. /Per Jessen, Zürich

Re: [Dovecot] remote hot site, IMAP replication or cluster over WAN

2010-11-03 Thread Per Jessen
ith shared storage? The primary dies, the secondary reconfigures its interface to work as the primary, all done. AKA IP-takeover I believe. /Per Jessen, Zürich

[Dovecot] automatic un-subscribe ?

2010-11-03 Thread Per Jessen
lders named 2007, 2008, 2009 and current. Starting January 2011 though that would change to 2008, 2009, 2010 and current. Is there a way of auto-unsubscribing 2007 ? /Per Jessen, Zürich

Re: [Dovecot] default ACL - in namespace's mail root directory ?

2010-09-17 Thread Per Jessen
Timo Sirainen wrote: > On Thu, 2010-09-16 at 23:08 +0200, Per Jessen wrote: > >> http://wiki2.dovecot.org/ACL >> >> "The default ACLs are read from "dovecot-acl" file in the namespace's >> mail root directory". > > Well, it makes m

Re: [Dovecot] fts plugin - purpose of get_last_uid() ?

2010-09-17 Thread Per Jessen
Per Jessen wrote: > Timo Sirainen wrote: > >> On 17.9.2010, at 9.46, Per Jessen wrote: >> >>> It looks like the uid returned is only used as an indication of >>> whether the maildir is fully indexed or not, is that correct? >> >> Yes. >> &

Re: [Dovecot] fts plugin - purpose of get_last_uid() ?

2010-09-17 Thread Per Jessen
Timo Sirainen wrote: > On 17.9.2010, at 9.46, Per Jessen wrote: > >> It looks like the uid returned is only used as an indication of >> whether the maildir is fully indexed or not, is that correct? > > Yes. > >> In my setup, the index is built externally a

[Dovecot] fts plugin - purpose of get_last_uid() ?

2010-09-17 Thread Per Jessen
unnecessary if my understanding of the purpose of get_last_uid() is correct. thanks Per Jessen, Zürich

Re: [Dovecot] default ACL - in namespace's mail root directory ?

2010-09-16 Thread Per Jessen
Timo Sirainen wrote: > On Thu, 2010-09-16 at 08:51 +0200, Per Jessen wrote: > >> Where do I store "dovecot-acl" as the default ACL ? > > There is currently no support for default ACL file. Thanks for clearing that up Timo - I was beginning to think so too, but t

Re: [Dovecot] default ACL - in namespace's mail root directory ?

2010-09-16 Thread Per Jessen
Thomas Leuxner wrote: > On Thu, Sep 16, 2010 at 08:51:16AM +0200, Per Jessen wrote: >> I have a namespace like this: >> >> namespace { >>type = private >>separator = / >>prefix = >>location = >> maildir:/var/ferrari/users/%

[Dovecot] default ACL - in namespace's mail root directory ?

2010-09-15 Thread Per Jessen
l" as the default ACL ? /Per Jessen, Zürich

Re: [Dovecot] weird dovecot+outlook problem

2010-09-14 Thread Per Jessen
Charles Marcus wrote: > On 2010-09-14 8:21 AM, Per Jessen wrote: >> I have some per-user, read-only mailboxes that I'm auto-subscribing >> users to. With Thunderbird I have no problems, but with Outlook, the >> contents of the 'To:' column is not shown un

[Dovecot] weird dovecot+outlook problem

2010-09-14 Thread Per Jessen
I have some per-user, read-only mailboxes that I'm auto-subscribing users to. With Thunderbird I have no problems, but with Outlook, the contents of the 'To:' column is not shown until a user actually retrieves the mail. Does this ring a bell with anyone? /Per Jessen, Zürich

[Dovecot] fts plugin for xapian ?

2010-09-14 Thread Per Jessen
I have googled it some, and found a couple of references, but nothing specific - has anyone already started work on such a plugin? /Per Jessen, Zürich

Re: [Dovecot] user/domain-dependent autosubscribe ?

2010-09-03 Thread Per Jessen
Timo Sirainen wrote: > On Fri, 2010-09-03 at 11:00 +0200, Per Jessen wrote: > >> I've got autosubscribe working very well, but I need to make it >> dependent on the domain - e.g. domain example.com will have folders >> (a,b,c), while domain example2.com will have (d,

[Dovecot] user/domain-dependent autosubscribe ?

2010-09-03 Thread Per Jessen
Newbie alert! Dovecot 2.0rc3 I've got autosubscribe working very well, but I need to make it dependent on the domain - e.g. domain example.com will have folders (a,b,c), while domain example2.com will have (d,e,f). Any hints on how to achieve that? /Per Jessen, Zürich