AW: Creating a backup of incoming mail

2014-09-02 Thread Patrick De Zordo
Well, I'll give you some configuration hints..

1. don't forget to install sieve (eg. "apt-get install dovecot-sieve")..

2. Add to "postfix/main.cf" the following lines:
---8<
# Tell postfix to hand off mail to the definition for dovecot in master.cf
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
---8<

3. In "postfix/master.cf":
---8<
# Integration with Dovecot - hand mail over to it for local delivery, and
# run the process under the vmail user and mail group.
dovecot  unix   -n  n   -   -   pipe
  flags=DRhu user=vmail:mail argv=/usr/lib/dovecot/dovecot-lda -d $(recipient)
---8<

4. add "$mail_plugins sieve" to "dovecot/conf.d/15-lda.conf"

That’s all! Then just provide the sieve scripts at location specified in 
"dovecot/conf.d/90-sieve.conf" and you are done!

Good luck!

Bye!

-
Mit freundlichen Grüßen / Distinti saluti / Kind regards
De Zordo Patrick
patr...@spamreducer.eu

> -Ursprüngliche Nachricht-
> Von: dovecot [mailto:dovecot-boun...@dovecot.org] Im Auftrag von
> LuKreme
> Gesendet: Montag, 1. September 2014 18:47
> An: dovecot@dovecot.org
> Betreff: Re: Creating a backup of incoming mail
> 
> 
> On 30 Aug 2014, at 10:33 , Oscar del Rio  wrote:
> 
> > You could use a global "sieve_before" filter.
> >
> > http://wiki2.dovecot.org/Pigeonhole/Sieve/Configuration
> 
> And, I get hampered on the very first step:
> 
> To use Sieve, you will first need to make sure you are using Dovecot LDA or
> LMTP for delivering incoming mail to users' mailboxes. Then, you need to
> enable the Pigeonhole Sieve plugin in your configuration:
> 
> protocol lda {
>   mail_plugins = $mail_plugins sieve
> }
> 
> OK, so I am using dovecot-lda via postfix/master.cf, but in my configuration I
> have a section tagged protocols, not protocol.
> 
> Don't know if this is the same thing, or a slightly different thing. I don't 
> know
> where/what $mail_plugins refers to, and there is no "plugins" section of my
> configuration file. In fact, the string "plug" doesn't appear in dovecot.conf
> (there are some commented lines for mail_plugins in conf.d/ files).
> 
> Then, sieve_global_path is deprecated, but despite being tagged as
> deprecated, the example config uses the sieve_global_path. Shouldn't the
> example use sieve_default?
> 
> Looks like further down is the sieve_before, but really, the documentation
> feels almost like it has set out with the intention of being as obtuse as
> possible.
> 
> If I understand it, and I am sure I do not, what I need to add in to
> dovecot.conf is something like this:
> 
> protocol lda {
>   mail_plugins = $mail_plugins sieve
> }
> 
> (which is separate and unrelated to my "protocols = imap" existing line in
> dovecot.conf)
> 
> plugin {
>sieve = ~/.dovecot.sieve
>sieve_before = /var/lib/dovecot/sieve/archive.sieve
> }
> 
> And then in archive.sieve I find out what the commands are to write a COPY
> of the mail to a location after getting the date info.
> 
> require ["variables","date","fileinto","mailbox"];
> 
> if currentdate :matches "year" "*" { set "year" "${1}"; } if currentdate
> :matches "month" "*" { set "month" "${1}"; }
> 
> And a command like this, but not this, since i wan the backup stores in an
> absolute path outside the IMAP store and I obviously only want a copy of
> that message.
> 
>   fileinto :create "INBOX.Lists.${year}.${month}.dovecot";
> }
> 
> --
> Did they get you to trade your heroes for ghosts? Hot ashes for trees?
> Hot air for a cool breeze? Cold comfort for change?


smime.p7s
Description: S/MIME cryptographic signature


AW: Creating a backup of incoming mail

2014-09-01 Thread Patrick De Zordo
To backup all mail (incoming and outgoing), BCC all mails, you could do the 
following..

Add to your "/etc/postfix/main.cf" the following:
---8<-
# Auto-Backup all mails
transport_maps = hash:/etc/postfix/transport
backuplmtp_destination_recipient_limit = 1
lmtp_destination_recipient_limit = 1
recipient_bcc_maps = pcre:/etc/postfix/backup_bcc.pcre
sender_bcc_maps = pcre:/etc/postfix/backup_bcc.pcre
---8<-

Create a domain called "backup.local" in postfixadmin or whatever you use to 
edit your accounts..

Add every domain for which you like to activate incoming backup to " 
/etc/postfix/backup_bcc.pcre":
---8<-
/^(.*)@spamreducer\.eu$/  spamreducer.eu@backup.local
---8<-

Add to your "/etc/postfix/master.cf" the following:
---8<-
backuplmtp  unix  -   -   n   -   -   lmtp
---8<-

Add to your "/etc/postfix/transport" the following:
---8<-
[backup.local] backuplmtp
---8<-

Don't forget to issue " postmap /etc/postfix/transport"..

For making folders based on "year/month" you have to use an appropriate sieve 
script.

Give me a feedback!
Bye!

-
Mit freundlichen Grüßen / Distinti saluti / Kind regards
De Zordo Patrick
patr...@spamreducer.eu

> -Ursprüngliche Nachricht-
> Von: dovecot [mailto:dovecot-boun...@dovecot.org] Im Auftrag von
> LuKreme
> Gesendet: Samstag, 30. August 2014 18:26
> An: dovecot@dovecot.org
> Betreff: Creating a backup of incoming mail
> 
> This is my master.cf line for dovecot virtual users:
> 
> dovecot unix-   n   n   -   -  pipe flags=DRhu 
> user=vpopmail:vchkpw
> argv=/usr/local/libexec/dovecot/dovecot-lda -f ${sender} -d
> ${user}@${nexthop} -m ${extension}
> 
> I would like to also write every mail, before delivery to the user, to a 
> backup
> location like /backup/imap/mm/dd
> 
> Possible?
> 
> --
> 'On whose authority?' demanded Wert. Trymon turned his grey eyes on him.
> 'Mine. I need no other.' --The Light Fantastic


smime.p7s
Description: S/MIME cryptographic signature


AW: Dsync setup... help needed

2014-08-30 Thread Patrick De Zordo
What is you configuration please?

-
Mit freundlichen Grüßen / Distinti saluti / Kind regards
De Zordo Patrick
patr...@spamreducer.eu

> -Ursprüngliche Nachricht-
> Von: dovecot [mailto:dovecot-boun...@dovecot.org] Im Auftrag von
> Sinergizmas Sin ergizmas
> Gesendet: Freitag, 29. August 2014 17:41
> An: dovecot@dovecot.org
> Betreff: Dsync setup... help needed
> 
> Hello,
> 
> I tried to implement Dsync (doveadm version 2.2.10) following
> https://www.evilcoder.org/2014/08/22/automatic-replication-with-dovecot/
> but had no luck. SSH commands working quite well, but I need to respond
> more quickly. So TCP looks promising.
> 
> I have Centos 6, Dovecot 2.2.10. I did everything that is written there, but
> after I restart dovecot doesn't sync.  Then i ran netstat command but no
> service listen to port 12345 also. Iptables service are of in testing 
> scenario...


smime.p7s
Description: S/MIME cryptographic signature


AW: Special-Use Mailboxes ?

2014-08-27 Thread Patrick De Zordo
Dear Per,
what about using the "Mailbox alias plugin" 
(http://wiki2.dovecot.org/Plugins/MailboxAlias)?

-
Mit freundlichen Grüßen / Distinti saluti / Kind regards
De Zordo Patrick
patr...@spamreducer.eu

> -Ursprüngliche Nachricht-
> Von: dovecot [mailto:dovecot-boun...@dovecot.org] Im Auftrag von Per
> Jessen
> Gesendet: Montag, 25. August 2014 21:03
> An: dovecot@dovecot.org
> Betreff: Special-Use Mailboxes ?
> 
> 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 iPhone), some folders
> end of with different names - e.g. "Sent"
> and "Gesendete Elemente" - meaning the same thing, namely "sent mails".
> 
> How do you map these to just one folder such that it shows up correctly
> independently of what the user happens to be using?
> 
> It sounds like something for the
> 
> mailbox "Sent" {
>special_use = \Drafts
> }
> 
> config directive?  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.


smime.p7s
Description: S/MIME cryptographic signature


AW: AW: ot: accepting self certs into win pc?

2014-06-24 Thread Patrick De Zordo


> -Ursprüngliche Nachricht-
> Von: dovecot [mailto:dovecot-boun...@dovecot.org] Im Auftrag von
> Stephan von Krawczynski
> Gesendet: Dienstag, 24. Juni 2014 17:15
> An: Patrick De Zordo
> Cc: 'Dovecot Mailing List'
> Betreff: Re: AW: ot: accepting self certs into win pc?
> 
> On Tue, 24 Jun 2014 17:03:09 +0200
> Patrick De Zordo  wrote:
> 
> > Don't use self signed certs! - Buy some, or use free services! Your
> reputation will grow!
> 
> I am sorry, but someone _has_ to say it: if anyone really thinks that a south
> african or US entity selling certs is the way to "grow your reputation" this
> alone should tell you that the whole thing is nothing but a bogus _business_.
> It has zero to do with security or the like. It is a _business_ and it should 
> be
> obvious that you will only be lied by the corresponding entity if something
> bad happened (probably for years). Look at the diginotar story and _learn_.
> 
[De Zordo Patrick] 
Basically true if using some "strange" certs providers. The cert providers 
proven by big software companies should be the safe way.

> The only way to make certs worth using again is to create a way every client
> can verify a self-signed certificate by some kind of dns pointer inside the
> questionable domain and/or the certificate.
> 
> You cannot prove the correctness of a third party entity, and that's why there
> is no reputation at all.
> 
[De Zordo Patrick] 
??
> > Cheers!
> 
> Yes, have a beer...
> 
 [De Zordo Patrick] 
I will, I will..

> --
> Regards,
> Stephan


smime.p7s
Description: S/MIME cryptographic signature


AW: ot: accepting self certs into win pc?

2014-06-24 Thread Patrick De Zordo
Well, I'm reading what I see - and there is no testing system mentioned as far 
as I can see? Probably in an old post, some time ago?

If it is a test environment you could do what you want, that's true; but if you 
are just testing it would not be that big problem suppressing the certificate 
validity error.

Nothing else to amend from my side.

> -Ursprüngliche Nachricht-
> Von: dovecot [mailto:dovecot-boun...@dovecot.org] Im Auftrag von Reindl
> Harald
> Gesendet: Dienstag, 24. Juni 2014 17:08
> An: dovecot@dovecot.org
> Betreff: Re: ot: accepting self certs into win pc?
> 
> 
> 
> Am 24.06.2014 17:03, schrieb Patrick De Zordo:
> > Don't use self signed certs! - Buy some, or use free services! Your
> reputation will grow!
> 
> pfff you know what testing and private systems are?
> 
> in both cases there is no reputation that will grow and if it comes to the
> trustable question - depending on the userbase self signed ones may be
> more trustable than a unconditional trusted CA somewhere from turkey.
> sadly only if you remove all the corrupt CA's out of your clients
> 
> so until you asked for what usecase the certificate are your "buy some" is
> nonsense
> 
> >> -Ursprüngliche Nachricht-
> >> Von: dovecot [mailto:dovecot-boun...@dovecot.org] Im Auftrag von
> >> voy...@sbt.net.au
> >> Gesendet: Dienstag, 24. Juni 2014 15:29
> >> An: dovecot@dovecot.org
> >> Betreff: Re: ot: accepting self certs into win pc?
> >>
> >> On Wed, June 11, 2014 6:56 pm, mourik jan heupink - merit wrote:
> >>
> >>>> http://blog.frankleonhardt.com/2012/certificate-errors-on-internet-
> >>>> expl
> >>>> orer-9-and-how-to-stop-them/
> >>>>
> >>>> I didn't mention it in the post, but IIRC this did work for making
> >>>> some versions Outlook (and other Microsoft Mail things) happy at
> >>>> the
> >> same
> >>>> time.
> >>>
> >>> But do the above steps work for folks here..? I've tried them (IE
> >>> 11, win7, outlook 2013) but outlook keeps asking about (self signed)
> >>> imaps certificates.
> >>
> >>
> >> eezy, peezy, thanks!!
> >>
> >> the secret ingridient was 'run as the wind', oops, 'run as admin'
> >>
> >> invoked IE as admin, called https:/webmail, accept, bingo Outlook no
> >> longer asking, done
> >>
> >> thanks, Frank, thanks, guys'n'galls



smime.p7s
Description: S/MIME cryptographic signature


AW: ot: accepting self certs into win pc?

2014-06-24 Thread Patrick De Zordo
Don't use self signed certs! - Buy some, or use free services! Your reputation 
will grow!

Cheers!

> -Ursprüngliche Nachricht-
> Von: dovecot [mailto:dovecot-boun...@dovecot.org] Im Auftrag von
> voy...@sbt.net.au
> Gesendet: Dienstag, 24. Juni 2014 15:29
> An: dovecot@dovecot.org
> Betreff: Re: ot: accepting self certs into win pc?
> 
> On Wed, June 11, 2014 6:56 pm, mourik jan heupink - merit wrote:
> 
> >> http://blog.frankleonhardt.com/2012/certificate-errors-on-internet-expl
> >> orer-9-and-how-to-stop-them/
> >>
> >>
> >>
> >> I didn't mention it in the post, but IIRC this did work for making
> >> some versions Outlook (and other Microsoft Mail things) happy at the
> same
> >> time.
> >
> > But do the above steps work for folks here..? I've tried them (IE 11,
> > win7, outlook 2013) but outlook keeps asking about (self signed) imaps
> > certificates.
> 
> 
> eezy, peezy, thanks!!
> 
> the secret ingridient was 'run as the wind', oops, 'run as admin'
> 
> invoked IE as admin, called https:/webmail, accept,
> bingo Outlook no longer asking, done
> 
> thanks, Frank, thanks, guys'n'galls


smime.p7s
Description: S/MIME cryptographic signature


AW: Problem syncing mailboxes using doveadm sync

2014-06-18 Thread Patrick De Zordo
Would you really "sync" or just "backup"?
To help decide, are you changing messages on both servers or is the second one 
just a backup-server?

In case of backup you could use this command:
doveadm backup -u u...@example.com ssh backup.server.com doveadm dsync-server 
-u u...@example.com

Could this help you?

Cheers!

-
Mit freundlichen Grüßen / Distinti saluti / Kind regards
De Zordo Patrick
patr...@spamreducer.eu
Follow me on Skype: zorpat
Follow me on Facebook: https://www.facebook.com/patrick.dezordo
Follow me on GIThub: https://github.com/zorpat
Follow me on Twitter: https://twitter.com/PDZTECH

---
Please use S/MIME encryption when writing to me, it’s a big security benefit!
The Secure/Multipurpose Internet Mail Extensions (S/MIME) protocol to digitally 
sign or encrypt emails. S/MIME Encryption provides message integrity, 
authentication, privacy via data encryption, and non-repudiation via digital 
signatures. Most mail clients support S/MIME, such as Microsoft Outlook, 
Thunderbird, Apple Mail, Lotus Notes, and Mulberry Mail.
In detail:
- prevents tampering of email content
- prove message origin
- prevent exposure of email content
- flexible and secure communication
- easy to implement
---

> -Ursprüngliche Nachricht-
> Von: dovecot [mailto:dovecot-boun...@dovecot.org] Im Auftrag von
> Przemyslaw Orzechowski
> Gesendet: Mittwoch, 18. Juni 2014 07:28
> An: Dovecot Mailing List
> Betreff: Problem syncing mailboxes using doveadm sync
> 
> Hi
> command im using command bellow on destination server rtying to make
> keep it in sync after initialy doing doveadm backup -R
> 
> doveadm -Dv -o imapc_host=src.srv -o imapc_user=t...@domain.tld -
> opop3c_user=t...@domain.tld -o imapc_password='pass' -o
> pop3c_password='pass' -o mail_fsync=never -o mail_prefetch_count=20
> sync -f -1 -R -u t...@domain.tld imapc:
> 
> Im using dovecot on both source and destination server (source is dovecot
> 1.0.10 destination is 2.2.9)
> 
> Destination box is Ubuntu 14.04 LTS with dovecot installed using apt.
> 
> When i create new mail message on the serrver where i run this command its
> not propagated to the remote (old) server Is this command wrong ?


smime.p7s
Description: S/MIME cryptographic signature


AW: Converting mailboxes from one Maildir format to another

2014-06-12 Thread Patrick De Zordo

> -Ursprüngliche Nachricht-
> Von: dovecot [mailto:dovecot-boun...@dovecot.org] Im Auftrag von Patrick
> C
> Gesendet: Mittwoch, 11. Juni 2014 23:16
> An: dovecot@dovecot.org
> Betreff: Converting mailboxes from one Maildir format to another
> 
> I am currently running dovecot 2.0.9 on a CentOS 6 server with the following
> layout for mailboxes:
> 
> mail_location = maildir:~/Maildir
> 
> I would like to change the layout to this format to match the output of other
> software packages such as offlineimap, mbsync, etc:
> 
> mail_location = maildir:~/Maildir:LAYOUT=fs:INBOX=~/Maildir/INBOX
> 
> Is there a way to convert the mailbox layout for all mail accounts currently 
> on
> the server? I was looking at dsync, but there aren't any Maildir <--> Maildir
> examples.
> 

Hey yah,
try looking at this page: http://wiki2.dovecot.org/Migration/MailFormat
It helps a lot!

Cheers!

> I was also looking at potentially writing a script to manually rename
> directories/move files around to match the new format, but wasn't sure
> whether that would mess with UIDs or other dovecot internals.
> 
> 
> 
> 
> pat
> patrick...@gmail.com


AW: [Dovecot] imap-login killed with signal 11 in Dovecot 2.2.13 (feea8645c4d7)

2014-06-10 Thread Patrick De Zordo
Confirmed! - No killed sessions anymore.

Thanks!!



> -Ursprüngliche Nachricht-
> Von: dovecot [mailto:dovecot-boun...@dovecot.org] Im Auftrag von Timo
> Sirainen
> Gesendet: Montag, 9. Juni 2014 22:06
> An: dovecot@dovecot.org
> Betreff: Re: [Dovecot] imap-login killed with signal 11 in Dovecot 2.2.13
> (feea8645c4d7)
> 
> On 7.6.2014, at 13.15, Thomas Leuxner  wrote:
> 
> > Latest 2.2.13 HG feea8645c4d7 seems to unexpectedly kill imap-login
> sessions:
> >
> > Jun  7 11:56:10 nihlus dovecot: imap(t...@leuxner.net): Disconnected:
> > Logged out in=2203 out=851225 Jun  7 11:56:10 nihlus dovecot:
> > imap(t...@leuxner.net): Disconnected: Logged out in=316 out=2417 Jun  7
> > 11:56:10 nihlus dovecot: imap-login: Fatal: master:
> > service(imap-login): child 60505 killed with signal 11 (core not
> > dumped - add -D parameter to service imap-login { executable } Jun  7
> > 11:56:10 nihlus dovecot: imap-login: Fatal: master:
> > service(imap-login): child 60595 killed with signal 11 (core not
> > dumped - add -D parameter to service imap-login { executable }
> 
> Should be fixed by these:
> 
> http://hg.dovecot.org/dovecot-2.2/rev/7129fe8bc260
> http://hg.dovecot.org/dovecot-2.2/rev/5259f6320e52


Re: [Dovecot] imap-login killed with signal 11 in Dovecot 2.2.13

2014-06-07 Thread Patrick De Zordo
Same problem here!
Updated dovecot some minutes ago from xi.rename-it.nl..
Please resolve it very quick!

Having big problems!

Thanks,
Patrick.

> -Ursprüngliche Nachricht-
> Von: dovecot [mailto:dovecot-boun...@dovecot.org] Im Auftrag von
> Thomas Leuxner
> Gesendet: Samstag, 7. Juni 2014 17:29
> An: dovecot@dovecot.org
> Betreff: Re: [Dovecot] imap-login killed with signal 11 in Dovecot 2.2.13
> (feea8645c4d7)
> 
> * Thomas Leuxner  2014.06.07 12:15:
> 
> > Latest 2.2.13 HG feea8645c4d7 seems to unexpectedly kill imap-login
> sessions:
> 
> I can crash the process at will over a TLS connection with mutt, which I
can't
> when disabling TLS. So the culprit most-likely is this change:
> 
> http://hg.dovecot.org/dovecot-2.2/rev/09d3c9c6f0ad
> 
> It seems difficult to predict the imap-login process that will crash,
hence I
> struggle which one to connect GDB to...


Re: [Dovecot] General questions about TCP replication with dsync

2014-06-05 Thread Patrick De Zordo


> -Ursprüngliche Nachricht-
> Von: dovecot [mailto:dovecot-boun...@dovecot.org] Im Auftrag von James
> TD Smith
> Gesendet: Donnerstag, 5. Juni 2014 18:29
> An: dovecot@dovecot.org
> Betreff: Re: [Dovecot] General questions about TCP replication with dsync
> 
> On 2014-06-05 17:39:26(+0200), Patrick De Zordo wrote:
> > > > > > 2. Question (much more important):
> > > > > >
> > > > > > We are using sieve scripts for our users, they are replicated
> > > > > > to the replica-host but this errors appears in logs on every
> > > > > > synchronized
> > > message:
> > > > > >
> > > > > > ---8<-
> > > > > > 
> > > > > > -
> > > > > > dsync-server(em...@example.com): Error: Failed to access
> > > > > > mailbox
> > > > > > dovecot/sieve: Internal error occurred. Refer to server log
> > > > > > for more information.
> > > > > >
> > > > > > dsync-server(em...@example.com): Error:
> > > > > > stat(/var/vmail/example.com/email/.dovecot.sieve/tmp) failed:
> > > > > > Not a directory
> > > > > >
> > > > > > ---8<-
> > > > > > 
> > > > > > -
> > > > > >
> > > > > > So what’s going on there?
> > > > > >
> > > > > > This is strange and should not be, right?
> > > > > >
> > > > > > Any hints?
> > >
> > > It looks like it thinks the .dovecot.sieve file should be a Maildir.
> > > Are you using the Maildir++ format for your mail stores? That uses
> > > "." as a separator for mailbox names. You might want to try changing
> > > the "sieve" config option from ".dovecot.sieve" to something which
> > > doesn't contain dots and rename the files to match.
> > >
> >
> > I'm using "/" as separator ("separator = /" in configuration)..
> > SO it shouldn't be the problem..
> 
> That parameter controls how the mailbox names are presented over IMAP,
> not how they are stored on disk. If you run "doveadm mailbox list -u
> em...@example.com"
> you'll get a list like
> 
> INBOX
> Sent
> Drafts
> MailingLists/dovecot
> 
> etc, but if you look in /var/vmail/example.com/email you'll see something
> like
> 
> cur/
> new/
> tmp/
> .Sent/
> .Drafts/
> .MailingList.dovecot/
> 
> If you add LAYOUT=fs to the mail_location option it will store the mailboxes
> as a directory hierarchy. You'll need to convert all the mailboxes to the new
> layout, changing the sieve file name will be much less work.
> 

Absolutely TRUE!
In http://wiki2.dovecot.org/Pigeonhole/ManageSieve/Configuration there is this 
little very small paragraph:
" . Note: It is not wise to place this link inside your mail store, as it may 
be mistaken for a mail folder. Inside a maildir for instance, the default 
.dovecot.sieve would show up as phantom folder /dovecot/sieve in your IMAP 
tree."

But in the example configuration they use "sieve = ~/.dovecot.sieve", well 
probably no one is using Maildir? ;-)

DAMN!A day full of researches because of this little error..

Well thank you very much for pointing me on the right way!



> http://wiki2.dovecot.org/MailLocation/Maildir
> 
> > Is your sync up and running? With sieve scripts?
> 
> Yes, my sync works. I don't use sieve though.
> 
> James
> 
> --
> }---{


Re: [Dovecot] General questions about TCP replication with dsync

2014-06-05 Thread Patrick De Zordo

> -Ursprüngliche Nachricht-
> Von: dovecot [mailto:dovecot-boun...@dovecot.org] Im Auftrag von James
> TD Smith
> Gesendet: Donnerstag, 5. Juni 2014 17:34
> An: dovecot@dovecot.org
> Betreff: Re: [Dovecot] General questions about TCP replication with dsync
> 
> On 2014-06-04 19:53:19(+0200), Patrick De Zordo wrote:
> > > -Ursprüngliche Nachricht-
> > > Von: dovecot [mailto:dovecot-boun...@dovecot.org] Im Auftrag von
> > > Robert Schetterer
> > > Gesendet: Mittwoch, 4. Juni 2014 19:42
> > > An: dovecot@dovecot.org
> > > Betreff: Re: [Dovecot] General questions about TCP replication with
> > > dsync
> > >
> > > Am 04.06.2014 19:35, schrieb Patrick De Zordo:
> > > > Dovecot version: 2.2.9 (on Ubuntu 14.04 LTS)
> > > >
> > > > 1. Question:
> > > >
> > > > In logs I can see this errors on every sync (on the “slave” server
> > > > / server without changes which should be updated):
> > > >
> > > > ---8<-
> > > > -
> > > >
> > > > dsync-server(em...@example.com): Error:
> > > > net_connect_unix(/var/run/dovecot/replicator-doveadm) failed:
> > > > Permission  denied
> > > >
> > > > ---8<-
> > > > -
> > > >
> > > > Googling a bit gave me the information “This should be normal”..?
> > > >
> > > > Well ok, errors in logs are not nice to see, but can someone
> > > > confirm this is really ok? Timo?
> 
> I have a similar setup and have been getting the same errors about
> replicator-doveadm permissions on 2.2.12. I found this message in the list
> archives which say's its not important
> 
> http://www.dovecot.org/list/dovecot/2013-April/089559.html
> 
> and suggests changing the permissions on the socket. The right permissions
> would depend on which user(s) the doveadm-server process doing the sync
> is running as. From your questions below it looks like you are using virtual
> users with the vmail user owning the mailboxes, try
> 
> service replicator {
>   unix_listener replicator-doveadm {
> mode = 0660
> group = vmail
>   }
> }
> 

OK, thanks!
So I'm going on to read this in my logs.. ;-)

> > > > 2. Question (much more important):
> > > >
> > > > We are using sieve scripts for our users, they are replicated to
> > > > the replica-host but this errors appears in logs on every synchronized
> message:
> > > >
> > > > ---8<-
> > > > -
> > > > dsync-server(em...@example.com): Error: Failed to access mailbox
> > > > dovecot/sieve: Internal error occurred. Refer to server log for
> > > > more information.
> > > >
> > > > dsync-server(em...@example.com): Error:
> > > > stat(/var/vmail/example.com/email/.dovecot.sieve/tmp) failed: Not
> > > > a directory
> > > >
> > > > ---8<-
> > > > -
> > > >
> > > > So what’s going on there?
> > > >
> > > > This is strange and should not be, right?
> > > >
> > > > Any hints?
> 
> It looks like it thinks the .dovecot.sieve file should be a Maildir. Are you 
> using
> the Maildir++ format for your mail stores? That uses "." as a separator for
> mailbox names. You might want to try changing the "sieve" config option
> from ".dovecot.sieve" to something which doesn't contain dots and rename
> the files to match.
> 

I'm using "/" as separator ("separator = /" in configuration)..
SO it shouldn't be the problem..

Is your sync up and running? With sieve scripts?

> James
> 
> --
> }---{


Re: [Dovecot] What are the options for HA and\or replication and\or storage?

2014-06-05 Thread Patrick De Zordo
Well, we are trying to do the same, dovecot has this ability, it's called 
"dsync replication" (http://wiki2.dovecot.org/Replication)
It does his job, since it just sends incremental changes to the peer, so it's 
very fast and low bandwidth consuming..

But I am having some problems when sieve scripts are being used; I'm trying to 
understand what could cause the problem..
DRBD in sync configuration could be too slow, in async too dangerous..



> -Ursprüngliche Nachricht-
> Von: dovecot [mailto:dovecot-boun...@dovecot.org] Im Auftrag von Eliezer
> Croitoru
> Gesendet: Donnerstag, 5. Juni 2014 17:09
> An: dovecot@dovecot.org
> Betreff: [Dovecot] What are the options for HA and\or replication and\or
> storage?
> 
> I am considering couple options of converting a current service into a HA
> using multi servers or any other solutions.
> The point is that I am thinking about the options and which I am looking for.
> NFS can be a storage which has it's own pros and cons.
> There is the option of DRBD but as of now it's limited for two hosts.
> What options do exist out-there as a solution?
> 
> The main issues are that the current service is based on Maildir and is on one
> server with resierfs.
> The service is composed of one host with 50k users couple disks in raid6.
> On the same machine we have postfix as mailer.
> 
> I would like to hear about HA environment that I can use to replicate the
> boxes.
> 
> My basic research leaded me to smtp on one host or more and using lmtp to
> send the messages to dovecot o another host which will have a replicated
> host and will be used with storage system based on ISCSI or NFS.
> 
> Any other idea to enhance the current one or to replace it is more then just
> welcome.
> 
> Thanks,
> Eliezer


[Dovecot] Error with dsync in TCP replication

2014-06-05 Thread Patrick De Zordo
Hey guys,

again this question..

 

We are trying to get dsync replication over TCP working..

But we are having a bit of troubles..

 

Our configuration (just most important parts):

---8<---

# 2.2.13 (304d545927d2): /etc/dovecot/dovecot.conf

# OS: Linux 3.13.0-24-generic x86_64 Ubuntu 14.04 LTS ext4

doveadm_password = secret

first_valid_uid = 150

last_valid_uid = 150

lda_mailbox_autocreate = yes

lda_mailbox_autosubscribe = yes

mail_gid = mail

mail_location = maildir:/var/vmail/%d/%n

mail_plugins = " quota listescape zlib notify replication"

mail_uid = vmail

managesieve_notify_capability = mailto

managesieve_sieve_capability = fileinto reject envelope encoded-character
vacation subaddress comparator-i;ascii-numeric relational regex imap4flags
copy include variables body enotify environment mailbox date ihave duplicate

namespace inbox {

  inbox = yes

  location =

  mailbox Archiv {

auto = subscribe

special_use = \Archive

  }

  mailbox Archive {

auto = no

special_use = \Archive

  }

  mailbox Drafts {

auto = no

special_use = \Drafts

  }

  mailbox Entwürfe {

auto = no

special_use = \Drafts

  }

  mailbox Junk {

auto = subscribe

special_use = \Junk

  }

  mailbox Sent {

auto = subscribe

special_use = \Sent

  }

  mailbox "Sent Messages" {

auto = no

special_use = \Sent

  }

  mailbox Trash {

auto = no

special_use = \Trash

  }

  prefix =

  separator = /

}

plugin {

  mail_replica = tcp:mx2.example.com:999

  quota = dict:user::proxy::quota

  quota_rule = *:storage=10MB

  quota_rule2 = Trash:storage=+10%%

  quota_warning = storage=95%% quota-warning 95 %u

  quota_warning2 = storage=80%% quota-warning 80 %u

  sieve = ~/.dovecot.sieve

  sieve_dir = ~/sieve

  zlib_save = bz2

  zlib_save_level = 9

}

protocols = " imap sieve pop3"

replication_max_conns = 1

service aggregator {

  fifo_listener replication-notify-fifo {

mode = 0666

  }

  unix_listener replication-notify {

mode = 0666

  }

}

service doveadm {

  inet_listener {

port = 999

  }

}

service replicator {

  unix_listener replicator-doveadm {

mode = 0600

  }

}

protocol lda {

  mail_plugins = " quota listescape zlib notify replication quota sieve
listescape zlib"

}

protocol imap {

  mail_plugins = " quota listescape zlib notify replication imap_quota
listescape zlib"

}

protocol sieve {

  managesieve_max_line_length = 65536

}

---8<---

 

The problem:

 

After a user adds a sieve script with his mail application (in this case
Thunderbird with plugin):

1.   the script is saved in “/var/vmail/%d/%n/sieve/script_name” == OK

2.   this file (“/var/vmail/%d/%n/sieve/script_name”) is then symlinked
to “/var/vmail/%d/%n/.dovecot.sieve” == OK

 

Now the problem kicks in:

1.   On the secondary server (mail_replica server) the script is created
+ the same symlink == OK

2.   In logs (on secondary) there is shown this error every time a sync
is done:

---8<---

dsync-server(  u...@example.com): Error: Failed to
access mailbox dovecot/sieve: Internal error occurred. Refer to server log
for more information.

dsync-server(  u...@example.com): Error:
stat(/var/vmail/example.com/user/.dovecot.sieve/tmp) failed: Not a directory

---8<---

 

Issuing “doveadm replicator status '*'” on first server gives back:

username priority fast sync
full sync failed

u...@example.com none 00:03:36
23:11:51  y

 

Sync from master->secondary is interrupted but sync from secondary->master
is working..

 

Thanks for any hint!

 

-

Mit freundlichen Grüßen / Distinti saluti / Kind regards

De Zordo Patrick

patr...@spamreducer.eu

 


Re: [Dovecot] General questions about TCP replication with dsync

2014-06-04 Thread Patrick De Zordo


> -Ursprüngliche Nachricht-
> Von: dovecot [mailto:dovecot-boun...@dovecot.org] Im Auftrag von Robert
> Schetterer
> Gesendet: Mittwoch, 4. Juni 2014 19:42
> An: dovecot@dovecot.org
> Betreff: Re: [Dovecot] General questions about TCP replication with dsync
> 
> Am 04.06.2014 19:35, schrieb Patrick De Zordo:
> > Hi Guys,
> >
> > I would like to question why I see this errors in my logs.
> >
> >
> >
> > Let explain me!
> >
> >
> >
> > Dovecot version: 2.2.9 (on Ubuntu 14.04 LTS)
> >
> >
> >
> > I’ve configured our dovecot servers (2 servers) to do the TCP replication
> > with dsync.
> >
> > This is working flawless.
> >
> >
> >
> > 1. Question:
> >
> > In logs I can see this errors on every sync (on the “slave” server / server
> > without changes which should be updated):
> >
> > ---8<---
> > 
> > 
> >
> > dsync-server(em...@example.com): Error:
> > net_connect_unix(/var/run/dovecot/replicator-doveadm) failed:
> Permission
> > denied
> >
> > ---8<---
> > 
> > 
> >
> >
> >
> > Googling a bit gave me the information “This should be normal”..?
> >
> > Well ok, errors in logs are not nice to see, but can someone confirm this is
> > really ok? Timo?
> >
> >
> >
> > 2. Question (much more important):
> >
> > We are using sieve scripts for our users, they are replicated to the
> > replica-host but this errors appears in logs on every synchronized message:
> >
> > ---8<---
> > 
> > 
> >
> > dsync-server(em...@example.com): Error: Failed to access mailbox
> > dovecot/sieve: Internal error occurred. Refer to server log for more
> > information.
> >
> > dsync-server(em...@example.com): Error:
> > stat(/var/vmail/example.com/email/.dovecot.sieve/tmp) failed: Not a
> > directory
> >
> > ---8<---
> > 
> > 
> >
> >
> >
> > So what’s going on there?
> >
> > This is strange and should not be, right?
> >
> > Any hints?
> >
> >
> >
> > Thank you very much!
> >
> >
> >
> > -
> >
> > Mit freundlichen Grüßen / Distinti saluti / Kind regards
> >
> > De Zordo Patrick
> >
> > patr...@spamreducer.eu
> >
> >
> >
> 
> 2.2.9 is not recent, before debug you might upgrade
> 

Well, not so easy.. we are working on a productive server; this version ships 
as default for this distro..
I don't even know how to compile my own dovecot version..

> see
> http://hg.dovecot.org/dovecot-2.2/log?rev=replicator
> 
> also you missed to attach your dove conf
> 

Relevant config parts:
--- /etc/dovecot/conf.d/10-mail.conf ---
---8<---
mail_plugins = $mail_plugins notify replication
---8<---

--- /etc/dovecot/conf.d/99-replication.conf ---
---8<---
service aggregator {
  fifo_listener replication-notify-fifo {
mode = 0666
  }
  unix_listener replication-notify {
mode = 0666
  }
}
service replicator {
  unix_listener replicator-doveadm {
mode = 0600
  }
}
service doveadm {
  inet_listener {
port = 999
  }
}
doveadm_password = secret
replication_max_conns = 1
plugin {
  mail_replica = tcp:server2.example.com:999
}
---8<---


Thank you for any hint!





> Best Regards
> MfG Robert Schetterer
> 
> --
> [*] sys4 AG
> 
> http://sys4.de, +49 (89) 30 90 46 64
> Franziskanerstraße 15, 81669 München
> 
> Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
> Vorstand: Patrick Ben Koetter, Marc Schiffbauer
> Aufsichtsratsvorsitzender: Florian Kirstein


[Dovecot] General questions about TCP replication with dsync

2014-06-04 Thread Patrick De Zordo
Hi Guys,

I would like to question why I see this errors in my logs.

 

Let explain me!

 

Dovecot version: 2.2.9 (on Ubuntu 14.04 LTS)

 

I’ve configured our dovecot servers (2 servers) to do the TCP replication
with dsync.

This is working flawless.

 

1. Question:

In logs I can see this errors on every sync (on the “slave” server / server
without changes which should be updated):

---8<---



dsync-server(em...@example.com): Error:
net_connect_unix(/var/run/dovecot/replicator-doveadm) failed: Permission
denied

---8<---



 

Googling a bit gave me the information “This should be normal”..?

Well ok, errors in logs are not nice to see, but can someone confirm this is
really ok? Timo?

 

2. Question (much more important):

We are using sieve scripts for our users, they are replicated to the
replica-host but this errors appears in logs on every synchronized message:

---8<---



dsync-server(em...@example.com): Error: Failed to access mailbox
dovecot/sieve: Internal error occurred. Refer to server log for more
information.

dsync-server(em...@example.com): Error:
stat(/var/vmail/example.com/email/.dovecot.sieve/tmp) failed: Not a
directory

---8<---



 

So what’s going on there?

This is strange and should not be, right?

Any hints?

 

Thank you very much!

 

-

Mit freundlichen Grüßen / Distinti saluti / Kind regards

De Zordo Patrick

patr...@spamreducer.eu

 


Re: [Dovecot] Change to Maildir format (Was:Corrupted Mail?)

2014-05-30 Thread Patrick De Zordo


> -Ursprüngliche Nachricht-
> Von: dovecot [mailto:dovecot-boun...@dovecot.org] Im Auftrag von Arthur
> Dent
> Gesendet: Freitag, 30. Mai 2014 11:25
> An: dovecot@dovecot.org
> Betreff: Re: [Dovecot] Change to Maildir format (Was:Corrupted Mail?)
> 
> Well, with thanks to everyone on this list I have now successfully (I
> hope) switched from mbox to Maildir format. Moreover I am now using
> dovecot-lda to deliver.
> 
> I went step by step, and tested it with just one account before opening up
> the whole system.
> 

Great!

> I had to rewrite my procmail recipes twice because I first changed them
> to:
> | /usr/libexec/dovecot/deliver -d mark -m .MLists.Fedora/
> 
> but after testing with the Maildir format up and running I found that they had
> to be:
> | /usr/libexec/dovecot/deliver -d mark -m MLists.Fedora
> 
> I will now leave it running for a couple of days. I will keep an eye on the 
> logs,
> but I hope that I have now seen the last of the "Error: Next message
> unexpectedly corrupted ..." messages!
> 

Sure!

> Thanks again for all the help. Much appreciated!
> 
> Mark


Re: [Dovecot] Change to Maildir format (Was:Corrupted Mail?)

2014-05-28 Thread Patrick De Zordo


> -Ursprüngliche Nachricht-
> Von: dovecot [mailto:dovecot-boun...@dovecot.org] Im Auftrag von Arthur
> Dent
> Gesendet: Mittwoch, 28. Mai 2014 11:43
> An: dovecot@dovecot.org
> Betreff: [Dovecot] Change to Maildir format (Was:Corrupted Mail?)
> 
> I am seriously considering the change to Maildir format. I am however more
> than a little concerned that this could all go horribly wrong. This is what I 
> am
> planning. Does it look sane?
> 
> Checklist
> 
> 1) Stop the mail queue (essentially stop fetchmail)
> 2) Stop Dovecot
> 3) Backup all mbox files
> 4) Edit all procmail recipes (actually I will probably do this first - 
> working with
> copies - because this will be time-consuming) See below.
> 5) Convert mbox files to maildir using either mb2md or dsync (to be
> decided)
> 6) Change Dovecot config
>   Actually - As far as I can tell no configuration change is required.
> Dovecot should just recognise the directories as maildirs. Is this right?
> 7) Restart Dovecot
> 8) Restart Fetchmail
> 

This would be nice, yes, BUT never ever go to script this and let it run 
without manual assisting!

Since you are doing this the first time,
I would prefer to test this steps a) on a different server or at least b) with 
a testaccount.

Then you have to test all scripts and other special settings with this mailbox, 
till you can be sure it all went well.
Then "one-by-one" could be migrated.. (again, just 2-3 users..)
Recheck again..


> Have I missed anything?
> 
> Procmail scripts:
> =
> 
> I am quite concerned about this. I have a directory structure such as:
> 
> Home Inbox <-mbox
> Work Inbox <-mbox
> HobbyFile <-mbox
> Malware <-directory
>  L> Spam <-mbox
>  L> Virus <-mbox
> MLists <-directory
>  L> Fedora <-mbox
>  L> Dovecot <-mbox
>  L> Spamassassin <-mbox
>  L> ...etc...
> 
> My current procmail recipe for one example look like this:
>   :0:
>   * ^List-Id:.*users.lists.fedoraproject.org
>   $DESTDIR/MLists/Fedora
> 
> I'm guessing it would need to change to:
>   :0
>   * ^List-Id:.*users.lists.fedoraproject.org
>   $DESTDIR/.MLists.Fedora/
> 
> Is that right???
> (Note: remove locking colon ":" and use of "." and trailing "/" in path)

I'm not using procmail, but it seems that procmail is pasting the messages 
directly in to the maildirectory; this is *VERY* bad,
since every message should (or better have to) be delivered by dovecot himself 
into the maildirectory. (for example for indexing purpose, caching, ..)
Something like:
---8<---
:0 w
| /location/of/dovecot-lda -d $USER
---8<---


> 
> Please advise - I am rather nervous of making a rather big mess here!
> 
> Thanks
> 
> Mark


Re: [Dovecot] Corrupted Mail?

2014-05-27 Thread Patrick De Zordo

> -Ursprüngliche Nachricht-
> Von: dovecot [mailto:dovecot-boun...@dovecot.org] Im Auftrag von Arthur
> Dent
> Gesendet: Dienstag, 27. Mai 2014 19:27
> An: dovecot@dovecot.org
> Betreff: Re: [Dovecot] Corrupted Mail?
> 
> On Tue, 2014-05-27 at 16:45 +0200, Patrick De Zordo wrote:
> 
> >
> > You would *really* not change do Maildir format?
> > It's not so difficult to switch over.. and you will have working and simple
> mailfolders.. (also backup and restore would be a simple task)..
> >
> > So, why won't you change at all?
> 
> Well - the more I read about this, the more I think you're right.
> Perhaps I should convert to Maildir - but I'm terrified...
> 
> I have seen that there is a script - mb2md - that I can use, but what changes
> do I need to make elsewhere?
> 

I would prefer work with dsync (maybe in 2 steps), it preserves message UIDs.. 
and that's what you really want.

> I get my mail from a variety of ISP and online email accounts using 
> fetchmail. I
> guess there's no change needed there?
> 

Think it wouldn't change anything, it just gets mail from remote server and 
gives it to the local one..
Are all the messages available as a copy on the ISP side or are they purged on 
every fetch and so they are just available on your server locally?

> That feeds into procmail. I think I will have to change the mail procmail
> configuration file and ALL my procmail recipe rc files (I have
> many) - which filter into several different mboxs?
> 

Personally never use procmail.. working with sieve scripts.

> Within one of the procmail recipes I call spamassassin and clamscan.
> Will they be a problem?
> 

You could use amavis; it "glues" alltogether..
Are you using postfix as MTA?

> Then Dovecot. What changes do i need to make within Dovecot?
> 
> What about the clients? Do I need to configure squirrelmail, Evolution or
> iPad/iPhone email clients?
> 
> I archive old mail using archivemail. I think this can cope with maildir 
> format,
> but it archives to a mbox - which I guess is not a problem except when I want
> to retrieve something from the archive - but I think I can use Mutt for that?
> 

Are you working with virtualized server or bare metal?

> Is there anything else I should consider?
> 
> I have the day off tomorrow. I might have a go - what do you think?
> 
> Thanks
> 
> Mark
> 
> 


Re: [Dovecot] Corrupted Mail?

2014-05-27 Thread Patrick De Zordo


> -Ursprüngliche Nachricht-
> Von: dovecot [mailto:dovecot-boun...@dovecot.org] Im Auftrag von Arthur
> Dent
> Gesendet: Dienstag, 27. Mai 2014 16:29
> An: dovecot@dovecot.org
> Betreff: Re: [Dovecot] Corrupted Mail?
> 
> On Tue, 2014-05-27 at 16:09 +0200, Robert Schetterer wrote:
> > Am 27.05.2014 16:04, schrieb Arthur Dent:
> > > On Tue, 2014-05-27 at 15:44 +0200, Robert Schetterer wrote:
> > >> Am 27.05.2014 14:56, schrieb Arthur Dent:
> > >>> Hello All,
> > >>>
> > >>> I have a Dovecot v2.2.12 installation running on a Fedora 20 box
> > >>> which is the mailserver for my family. This means that it is
> > >>> serving only 4 accounts.
> > >>>
> > >>> I use fetchmail->procmail to feed Dovecot and I read my mail on
> > >>> clients such as Evolution on (another) Fedora 20 machine,
> > >>> iPad/iPhone or squirrelmail on the web (running on the same Fedora
> 20 server).
> > >>>
> > >>> The average mail throughput for the whole family is around a
> > >>> couple of hundred messages per day, but each (and every) day I get
> > >>> between 3 and
> > >>> 10 of the following messages:
> > >>>
> > >>> dovecot: imap(mark): Error: Next message unexpectedly corrupted in
> > >>> mbox file /home/mark/mail/MLists/Fail2Ban at 3407473: 1 Time(s)
> > >>>
> > >>> I have googled, but with little success. What I have found seemed
> > >>> to suggest that removing the .index files and allowing Dovecot to
> > >>> rebuild them will solve this. I did:
> > >>> find /home -type f -name "dovecot.index.*" -exec rm -f {} \; but
> > >>> it has made no difference.
> > >>>
> > >>> Can anyone help me solve this please?
> > >>
> > >> at this small setup simply use maildir as format and use getmail to
> > >> fetch, sieve may do sorting
> > >>
> > >> see
> > >> https://sys4.de/de/blog/2013/04/12/abholdienst-fur-mail/
> > >>
> > >> sorry german but setup should speak for its own
> > >>
> > >> getmail does also deliver into maildir directly ( without dovecot
> > >> deliver ) if you dont need to sort through sieve
> > >
> > > Well thanks - but I have been using an mbox setup for about 10
> > > years. It is only since I upgraded to F20 that I have been
> > > experiencing this problem. I may look at switching to maildir for
> > > the future, but for now that's too big a job...
> > >
> > > Any other ideas?
> > >
> > > Thanks
> > >
> > > Mark
> > >
> >
> > http://wiki2.dovecot.org/MboxProblems
> 
> OK - Unless I'm missing something, all that page (which I'd already
> read) tells me is that I may have to delete the dovecot.index file(s) - which
> I've don (several times). I still have the same problem. Every single day.
> 
> Anything else?

You would *really* not change do Maildir format?
It's not so difficult to switch over.. and you will have working and simple 
mailfolders.. (also backup and restore would be a simple task)..

So, why won't you change at all?


Re: [Dovecot] Strange behavior on with "listescape" and "lda_mailbox_autocreate" - double entries

2014-05-09 Thread Patrick De Zordo

OK,
now I've installed trusty and  2.2.9; problem was resolved!

Thank you very much!
Vielen Dank!


Am 08.05.2014 19:21, schrieb Robert Schetterer:

Am 08.05.2014 17:32, schrieb Patrick De Zordo:

Dear Robert, hallo Robert (ich spreche Deutsch),

--- dovecot --version ---
2.0.19

thats old, you should upgrade minimum 2.1.17

or go trusty, if possible, it has

2.2.9

or use repo

http://xi.rename-it.nl/debian/dists/testing-auto/

sorry i just have no time to compare your setting to my listescape
setup, but perhaps others may do





System: Ubuntu 12.04.4

--- dovecot -n -
# 2.0.19: /etc/dovecot/dovecot.conf
# OS: Linux 3.8.0-29-generic x86_64 Ubuntu 12.04.4 LTS ext4
auth_mechanisms = plain login
dict {
   quota = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
}
first_valid_uid = 150
last_valid_uid = 150
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
mail_gid = mail
mail_location = maildir:/var/vmail/%d/%n
mail_plugins = " quota listescape"
mail_uid = vmail
namespace {
   inbox = yes
   location =
   prefix =
   separator = /
   subscriptions = yes
   type = private
}
passdb {
   args = /etc/dovecot/dovecot-sql.conf.ext
   driver = sql
}
plugin {
   autocreate = Trash
   autocreate2 = Sent
   autocreate3 = Drafts
   autosubscribe = Trash
   autosubscribe2 = Sent
   autosubscribe3 = Drafts
   quota = dict:user::proxy::quota
   quota_rule = *:storage=10MB
   quota_rule2 = Trash:storage=+10%%
   quota_warning = storage=95%% quota-warning 95 %u
   quota_warning2 = storage=80%% quota-warning 80 %u
   sieve = ~/.dovecot.sieve
   sieve_dir = ~/sieve
}
postmaster_address = postmas...@xx.com
protocols = " imap pop3"
service auth {
   unix_listener /var/spool/postfix/private/auth {
 group = postfix
 mode = 0660
 user = postfix
   }
   unix_listener auth-userdb {
 group = mail
 mode = 0600
 user = vmail
   }
}
service dict {
   unix_listener dict {
 group = mail
 mode = 0660
 user = vmail
   }
}
service quota-warning {
   executable = script /usr/local/bin/quota-warning.sh
   unix_listener quota-warning {
 user = vmail
   }
   user = vmail
}
ssl_cert = 
Am 08.05.2014 13:43, schrieb Patrick De Zordo:

Hello Guys,
we are using Dovecot since years; all working flawless but one strange
behavior:

Let me explain..

- we have enabled the "listescape" plugin in "15-lda.conf",
"10-mail.conf" and "20-imap.conf".
- we use the following default namespace in "10-mail.conf":
--- 10-mail.conf -
namespace {
type = private
prefix =
separator = /
inbox = yes
subscriptions = yes
}




- we use a sieve script that automatically generates folders in the
following form (example):



".INBOX.2014.05.patrick.incoming" for user "patr...@xx.com"
".INBOX.2014.05.patrick.outgoing" for user "patr...@xx.com"
".INBOX.2014.05.p\2edezordo.incoming" for user "p.dezo...@xx.com"




This is ok, but the automatically generated "subscriptions"-file of the
user contains double lines (the second line is something strange?!);
the second one should not be created, its totally wrong..!

--- subscriptions -
Trash
Sent
INBOX.2014.05.patrick.incoming
INBOX.2014.05.patrick.outgoing
INBOX.2014.05.p\2edezordo.incoming
INBOX\2e2014\2e05\2ep\5c2edezordo\2eincoming <- this line!?!?!?




Have you any ideas whats going on?
Could this be a bug, or misconfiguration?

Thanks in advance!!

Greeting from Italy!
Patrick.

which version of dove
listescape had bugs in the past

i.e

http://hg.dovecot.org/dovecot-2.1/rev/63af3274fb6f
http://hg.dovecot.org/dovecot-2.2/rev/63af3274fb6f
http://hg.dovecot.org/dovecot-2.2/rev/fce84463f508

perhaps reread

http://wiki2.dovecot.org/Plugins/Listescape

post complete dove conf

Best Regards
MfG Robert Schetterer




Best Regards
MfG Robert Schetterer



Re: [Dovecot] Strange behavior on with "listescape" and "lda_mailbox_autocreate" - double entries

2014-05-08 Thread Patrick De Zordo

I'll try this night to get trusty and repeat the setup.. ;-)



Am 08.05.2014 19:21, schrieb Robert Schetterer:

Am 08.05.2014 17:32, schrieb Patrick De Zordo:

Dear Robert, hallo Robert (ich spreche Deutsch),

--- dovecot --version ---
2.0.19

thats old, you should upgrade minimum 2.1.17

or go trusty, if possible, it has

2.2.9

or use repo

http://xi.rename-it.nl/debian/dists/testing-auto/

sorry i just have no time to compare your setting to my listescape
setup, but perhaps others may do





System: Ubuntu 12.04.4

--- dovecot -n -
# 2.0.19: /etc/dovecot/dovecot.conf
# OS: Linux 3.8.0-29-generic x86_64 Ubuntu 12.04.4 LTS ext4
auth_mechanisms = plain login
dict {
   quota = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
}
first_valid_uid = 150
last_valid_uid = 150
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
mail_gid = mail
mail_location = maildir:/var/vmail/%d/%n
mail_plugins = " quota listescape"
mail_uid = vmail
namespace {
   inbox = yes
   location =
   prefix =
   separator = /
   subscriptions = yes
   type = private
}
passdb {
   args = /etc/dovecot/dovecot-sql.conf.ext
   driver = sql
}
plugin {
   autocreate = Trash
   autocreate2 = Sent
   autocreate3 = Drafts
   autosubscribe = Trash
   autosubscribe2 = Sent
   autosubscribe3 = Drafts
   quota = dict:user::proxy::quota
   quota_rule = *:storage=10MB
   quota_rule2 = Trash:storage=+10%%
   quota_warning = storage=95%% quota-warning 95 %u
   quota_warning2 = storage=80%% quota-warning 80 %u
   sieve = ~/.dovecot.sieve
   sieve_dir = ~/sieve
}
postmaster_address = postmas...@xx.com
protocols = " imap pop3"
service auth {
   unix_listener /var/spool/postfix/private/auth {
 group = postfix
 mode = 0660
 user = postfix
   }
   unix_listener auth-userdb {
 group = mail
 mode = 0600
 user = vmail
   }
}
service dict {
   unix_listener dict {
 group = mail
 mode = 0660
 user = vmail
   }
}
service quota-warning {
   executable = script /usr/local/bin/quota-warning.sh
   unix_listener quota-warning {
 user = vmail
   }
   user = vmail
}
ssl_cert = 
Am 08.05.2014 13:43, schrieb Patrick De Zordo:

Hello Guys,
we are using Dovecot since years; all working flawless but one strange
behavior:

Let me explain..

- we have enabled the "listescape" plugin in "15-lda.conf",
"10-mail.conf" and "20-imap.conf".
- we use the following default namespace in "10-mail.conf":
--- 10-mail.conf -
namespace {
type = private
prefix =
separator = /
inbox = yes
subscriptions = yes
}




- we use a sieve script that automatically generates folders in the
following form (example):



".INBOX.2014.05.patrick.incoming" for user "patr...@xx.com"
".INBOX.2014.05.patrick.outgoing" for user "patr...@xx.com"
".INBOX.2014.05.p\2edezordo.incoming" for user "p.dezo...@xx.com"




This is ok, but the automatically generated "subscriptions"-file of the
user contains double lines (the second line is something strange?!);
the second one should not be created, its totally wrong..!

--- subscriptions -
Trash
Sent
INBOX.2014.05.patrick.incoming
INBOX.2014.05.patrick.outgoing
INBOX.2014.05.p\2edezordo.incoming
INBOX\2e2014\2e05\2ep\5c2edezordo\2eincoming <- this line!?!?!?




Have you any ideas whats going on?
Could this be a bug, or misconfiguration?

Thanks in advance!!

Greeting from Italy!
Patrick.

which version of dove
listescape had bugs in the past

i.e

http://hg.dovecot.org/dovecot-2.1/rev/63af3274fb6f
http://hg.dovecot.org/dovecot-2.2/rev/63af3274fb6f
http://hg.dovecot.org/dovecot-2.2/rev/fce84463f508

perhaps reread

http://wiki2.dovecot.org/Plugins/Listescape

post complete dove conf

Best Regards
MfG Robert Schetterer




Best Regards
MfG Robert Schetterer



Re: [Dovecot] Strange behavior on with "listescape" and "lda_mailbox_autocreate" - double entries

2014-05-08 Thread Patrick De Zordo

Dear Robert, hallo Robert (ich spreche Deutsch),

--- dovecot --version ---
2.0.19


System: Ubuntu 12.04.4

--- dovecot -n -
# 2.0.19: /etc/dovecot/dovecot.conf
# OS: Linux 3.8.0-29-generic x86_64 Ubuntu 12.04.4 LTS ext4
auth_mechanisms = plain login
dict {
  quota = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
}
first_valid_uid = 150
last_valid_uid = 150
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
mail_gid = mail
mail_location = maildir:/var/vmail/%d/%n
mail_plugins = " quota listescape"
mail_uid = vmail
namespace {
  inbox = yes
  location =
  prefix =
  separator = /
  subscriptions = yes
  type = private
}
passdb {
  args = /etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}
plugin {
  autocreate = Trash
  autocreate2 = Sent
  autocreate3 = Drafts
  autosubscribe = Trash
  autosubscribe2 = Sent
  autosubscribe3 = Drafts
  quota = dict:user::proxy::quota
  quota_rule = *:storage=10MB
  quota_rule2 = Trash:storage=+10%%
  quota_warning = storage=95%% quota-warning 95 %u
  quota_warning2 = storage=80%% quota-warning 80 %u
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
}
postmaster_address = postmas...@xx.com
protocols = " imap pop3"
service auth {
  unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
  }
  unix_listener auth-userdb {
group = mail
mode = 0600
user = vmail
  }
}
service dict {
  unix_listener dict {
group = mail
mode = 0660
user = vmail
  }
}
service quota-warning {
  executable = script /usr/local/bin/quota-warning.sh
  unix_listener quota-warning {
user = vmail
  }
  user = vmail
}
ssl_cert = 
Am 08.05.2014 13:43, schrieb Patrick De Zordo:

Hello Guys,
we are using Dovecot since years; all working flawless but one strange
behavior:

Let me explain..

- we have enabled the "listescape" plugin in "15-lda.conf",
"10-mail.conf" and "20-imap.conf".
- we use the following default namespace in "10-mail.conf":
--- 10-mail.conf -
namespace {
   type = private
   prefix =
   separator = /
   inbox = yes
   subscriptions = yes
}



- we use a sieve script that automatically generates folders in the
following form (example):


".INBOX.2014.05.patrick.incoming" for user "patr...@xx.com"
".INBOX.2014.05.patrick.outgoing" for user "patr...@xx.com"
".INBOX.2014.05.p\2edezordo.incoming" for user "p.dezo...@xx.com"



This is ok, but the automatically generated "subscriptions"-file of the
user contains double lines (the second line is something strange?!);
the second one should not be created, its totally wrong..!

--- subscriptions -
Trash
Sent
INBOX.2014.05.patrick.incoming
INBOX.2014.05.patrick.outgoing
INBOX.2014.05.p\2edezordo.incoming
INBOX\2e2014\2e05\2ep\5c2edezordo\2eincoming <- this line!?!?!?



Have you any ideas whats going on?
Could this be a bug, or misconfiguration?

Thanks in advance!!

Greeting from Italy!
Patrick.

which version of dove
listescape had bugs in the past

i.e

http://hg.dovecot.org/dovecot-2.1/rev/63af3274fb6f
http://hg.dovecot.org/dovecot-2.2/rev/63af3274fb6f
http://hg.dovecot.org/dovecot-2.2/rev/fce84463f508

perhaps reread

http://wiki2.dovecot.org/Plugins/Listescape

post complete dove conf

Best Regards
MfG Robert Schetterer



[Dovecot] Strange behavior on with "listescape" and "lda_mailbox_autocreate" - double entries

2014-05-08 Thread Patrick De Zordo

Hello Guys,
we are using Dovecot since years; all working flawless but one strange 
behavior:


Let me explain..

- we have enabled the "listescape" plugin in "15-lda.conf", 
"10-mail.conf" and "20-imap.conf".

- we use the following default namespace in "10-mail.conf":
--- 10-mail.conf -
namespace {
  type = private
  prefix =
  separator = /
  inbox = yes
  subscriptions = yes
}


- we use a sieve script that automatically generates folders in the 
following form (example):


".INBOX.2014.05.patrick.incoming" for user "patr...@xx.com"
".INBOX.2014.05.patrick.outgoing" for user "patr...@xx.com"
".INBOX.2014.05.p\2edezordo.incoming" for user "p.dezo...@xx.com"


This is ok, but the automatically generated "subscriptions"-file of the 
user contains double lines (the second line is something strange?!);

the second one should not be created, its totally wrong..!

--- subscriptions -
Trash
Sent
INBOX.2014.05.patrick.incoming
INBOX.2014.05.patrick.outgoing
INBOX.2014.05.p\2edezordo.incoming
INBOX\2e2014\2e05\2ep\5c2edezordo\2eincoming <- this line!?!?!?


Have you any ideas whats going on?
Could this be a bug, or misconfiguration?

Thanks in advance!!

Greeting from Italy!
Patrick.