Re: Compiler error

2023-12-06 Thread Xavier Humbert

Le 06/12/2023 10:57, Goetz Schultz a écrit :

Hi Xavier,

tarball, direct downloaded from the dovecot site,
Was not a problem prior to FBSD14 - so I wonder if there is a compiler 
switch to be set.


Thanks and regards

  Goetz R Schultz

>8
Quis custodiet ipsos custodes?
  /"\
  \ /  ASCII Ribbon Campaign
   X   against HTML e-mail
  / \
8<


In ports, Dovecot is up-to-date, and compiles fine :

[root@numenor ~]# pkg info dovecot
dovecot-2.3.21_1
Name   : dovecot
Version    : 2.3.21_1



On 06/12/2023 09:48, Xavier Humbert wrote:

Le 06/12/2023 10:44, Goetz Schultz a écrit :

Hi,

I have upgraded my system to FreeBSD14 and tried to recompile 
dovecot. The following error is thrown now (It did compile on FBSD13):



test-mail-index-transaction-update.c:650:36: error: incompatible 
pointer to integer conversion passing 'char *(*)(int, int)' to 
parameter of type 'time_t' (aka 'long') [-Wint-conversion]
    mail_index_update_day_headers(t, tests[i].now + 
timezone);

^~~



(t, tests[i].now + timezone);
    ^~~


Is there a patch or something like that to compensate?


Hi Goetz,

Are you installing manually from tarball or from ports (cd 
/usr/ports/mail/dovecot && make install) ?


Regards,

Xavier




--
Xavier HUMBERT - Unix/Win/MacOSX Sysadmin/Network Engineer
https://www.amdh.fr

___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: Compiler error

2023-12-06 Thread Xavier Humbert

Le 06/12/2023 10:44, Goetz Schultz a écrit :

Hi,

I have upgraded my system to FreeBSD14 and tried to recompile dovecot. 
The following error is thrown now (It did compile on FBSD13):



test-mail-index-transaction-update.c:650:36: error: incompatible 
pointer to integer conversion passing 'char *(*)(int, int)' to 
parameter of type 'time_t' (aka 'long') [-Wint-conversion]
    mail_index_update_day_headers(t, tests[i].now + 
timezone);

^~~



(t, tests[i].now + timezone);
    ^~~


Is there a patch or something like that to compensate?


Hi Goetz,

Are you installing manually from tarball or from ports (cd 
/usr/ports/mail/dovecot && make install) ?


Regards,

Xavier

--
Xavier HUMBERT - Unix/Win/MacOSX Sysadmin/Network Engineer
https://www.amdh.fr

___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: Roundcube

2023-09-12 Thread Xavier Humbert

Hi Joe,

The only issue I had, is that for cryptic reasons (FreeBSD 13-STABLE) 
"localhost" did not resolve, I had too replace it with "127.0.0.1"

But YMMV

Regards,

Xavier

Le 9/7/23 23:00, joe a a écrit :
Any known issues with installing/running roundcube and dovecot on the 
same server?

___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


--
Xavier HUMBERT 
2 rue des Patureaux
54460 AINGERAY / FRANCE
Tél  +33 6 71 17 29 07
Dom  +33 9 51 00 37 63



OpenPGP_signature.asc
Description: OpenPGP digital signature
___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: Could not override "mail_location" with "userdb_mail" statment in "/etc/passwd"

2023-02-17 Thread Xavier
> Try adding both
> 

> skip=notfound
> 

> and
> 

> result_failure = continue-ok
> 

> to ignore the not found error, to the override db.

Hi Aki,hi everyone,

Excuse me for this late answer.

It still doesn't work ...

I've try to reproduce this in a fresh new lab environnement (same distro, same 
Dovecot version, fresh/standard Dovecot config files...) and i got exactly the 
same problem.

I've now 2 tests users :

"testm2m" and "testm1m"

testm2m is declared in "/etc/passwd" and "/etc/dovecot/dovecot_override"
testm1m is declared only in "/etc/passwd"

Content of "/etc/passwd" :

8<---
testm2m:x:1001:1001::/home/testm2m:/bin/false
testm1m:x:1002:1002::/home/testm1m:/bin/false
8<---

Content of "/etc/dovecot/dovecot_override"

8<---
testm2m:::userdb_mail=maildir:~/Maildir
8<---

Here is an extract of "doveconf -n" output :

8<---
# 2.2.22 (fe789d2): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.13 (7b14904)
# OS: Linux 4.4.0-186-generic x86_64 Ubuntu 16.04.7 LTS
auth_debug = yes
mail_location = mbox:~/mail:INBOX=/var/mail/%u
.
.
.
passdb {
  driver = pam
}
userdb {
  driver = passwd
  result_success = continue-ok
}
userdb {
  args = /etc/dovecot/dovecot_override
  driver = passwd-file
  result_failure = continue-ok
  skip = notfound
}
8<---

When i try an "doveadm auth login testm2m" i got this output :

8<---
passdb: testm2m auth succeeded
extra fields:
  user=testm2m

userdb extra fields:
  testm2m
  system_groups_user=testm2m
  uid=1001
  gid=1001
  home=/home/testm2m
  mail=maildir:~/Maildir
8<---

It's seem to be OK (mail=maildir:~/Maildir)

But when i try "doveadm auth login testm1m" i got this :

8<---
passdb: testm1m auth succeeded
extra fields:
  user=testm1m

Error: Authenticated user not found from userdb, auth lookup id=3039428609 
(client-pid=1760 client-id=1)
Error: userdb lookup failed: Internal error occurred. Refer to server log for 
more information.
8<---

It's seem that the user authentication is OK but not the userdb lookup ...

I got this in the log :

8<---
Feb 17 12:18:43 ubuntu dovecot: auth: Debug: Loading modules from directory: 
/usr/lib/dovecot/modules/auth
Feb 17 12:18:43 ubuntu dovecot: auth: Debug: Wrote new auth token secret to 
/var/run/dovecot/auth-token-secret.dat
Feb 17 12:18:43 ubuntu dovecot: auth: Debug: passwd-file 
/etc/dovecot/dovecot_override: Read 1 users in 0 secs
Feb 17 12:18:43 ubuntu dovecot: auth: Debug: auth client connected (pid=1760)
Feb 17 12:18:43 ubuntu dovecot: auth: Debug: client in: 
AUTH#0111#011PLAIN#011service=doveadm#011resp=
Feb 17 12:18:43 ubuntu dovecot: auth-worker(1762): Debug: Loading modules from 
directory: /usr/lib/dovecot/modules/auth
Feb 17 12:18:43 ubuntu dovecot: auth-worker(1762): Debug: passwd-file 
/etc/dovecot/dovecot_override: Read 1 users in 0 secs
Feb 17 12:18:43 ubuntu dovecot: auth-worker(1762): Debug: pam(testm1m): lookup 
service=dovecot
Feb 17 12:18:43 ubuntu dovecot: auth-worker(1762): Debug: pam(testm1m): #1/1 
style=1 msg=Password:
Feb 17 12:18:43 ubuntu dovecot: auth: Debug: client passdb out: 
OK#0111#011user=testm1m
Feb 17 12:18:43 ubuntu dovecot: auth: Debug: master in: 
REQUEST#0113039428609#0111760#0111#0114f7cc8989b7b02f678d5f08ab1d66b79#011session_pid=1760
Feb 17 12:18:43 ubuntu dovecot: auth-worker(1762): Debug: pam(testm1m): lookup
Feb 17 12:18:43 ubuntu dovecot: auth: Debug: passwd-file(testm1m): lookup: 
user=testm1m file=/etc/dovecot/dovecot_override
Feb 17 12:18:43 ubuntu dovecot: auth: passwd-file(testm1m): unknown user
Feb 17 12:18:43 ubuntu dovecot: auth: Debug: master userdb out: 
NOTFOUND#0113039428609
8<---

If anyone has an idea ...

Thanks.

/Xavier

publickey - xavier-mlist@proton.me - 0xC617DF73.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Re: Could not override "mail_location" with "userdb_mail" statment in "/etc/passwd"

2023-02-13 Thread Xavier
> You need to use passwd-file driver. I would recommend adding secondary userdb 
> for overrides in a separate file instead of modifying /etc/passwd.
>
> userdb {
> driver = passwd
> result_success = continue-ok
> }
>
> userdb {
> driver = passwd-file
> args = /etc/dovecot/overrides
> }
>
> and put in overrides
>
> testm2m_mydomain.tld:::userdb_mail=maildir:~/Maildir

Hi Aki,

Thanks for your answer !

I've just gived a try and it works partially :

- the "userdb_mail=maildir:~/Maildir" is well taken into account for my user in 
"/etc/dovecot/overrides" (testm2m_mydomain.tld)

BUT

- all other accounts (located in "/etc/passwd" and not in 
"/etc/dovecot/overrides") could not connect anymore to the Dovecot server 
(POP/IMAP...). I got this kind of message in mail mail.log :

8<--
Feb 13 21:58:14 mail dovecot: imap: Error: Authenticated user not found from 
userdb, auth lookup id=2769158145 (client-pid=27095 client-id=1)
Feb 13 21:58:14 mail dovecot: imap-login: Internal login failure (pid=27095 
id=1) (internal failure, 1 successful auths): user=, 
method=PLAIN, rip=x.x.x.x, lip=y.y.y.y, mpid=27096, secured, 
session=
8<--

Any idea ?

Thanks for your help !

/Xavier

publickey - xavier-mlist@proton.me - 0xC617DF73.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Could not override "mail_location" with "userdb_mail" statment in "/etc/passwd"

2023-02-13 Thread Xavier
Hi,
** Using Dovecot 2.2.22 and Postfix 3.1.0 **

I plan to migrate all accounts on my server from mbox to maildir storage but 
before i want to make some tests on dedicated accounts. To do so i want to 
overide the general "mail_location" ( mail_location = 
mbox:~/mail:INBOX=/var/mail/%u ) with "maildir:~/Maildir" only for some test 
accounts.

To do so i modified my "/etc/passwd" file using something like that :

testm2m_mydomain.tld:x:2122:2122::/home/mail/testm2m_mydomain.tld:/bin/false:userdb_mail=maildir:~/Maildir
Also tried
testm2m_mydomain.tld:x:2122:2122::/home/mail/testm2m_mydomain.tld:/bin/false::userdb_mail=maildir:~/Maildir

And as mentioned in the doc (https://wiki.dovecot.org/LDA/Postfix) i added  -d 
"$USER" in my Postfix "mailbox_command" but it don't seem to work (my new 
mail_location for this test user is is not taken into account).

When i try to make an "doveadm user testm2m_mydomain.tld" i get this :

8<
field   value
uid     2122
gid     2122
home    /home/mail/testm2m_mydomain.tld
mail    mbox:~/mail:INBOX=/var/mail/testm2m_mydomain.tld
system_groups_user      testm2m_mydomain.tld
8<

My modification is not taken into account ...

Any help is welcome !

/Xavier

publickey - xavier-mlist@proton.me - 0xC617DF73.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Re: Re: Exporting a mailbox over IMAP.

2021-10-04 Thread Xavier Morel
I'd seen them around yes, but that would require mounting a local
dovecot to make the mailboxes available over IMAP no? And I was kinda
hoping to avoid doing that, as as noted in the initial message I know
very little about dovecot.


Exporting a mailbox over IMAP.

2021-10-03 Thread Xavier Morel
_next=13 subs=yes last_change=0 last_subs=0

So it looks like it can see both sides of the sync, sees that they
diverge (because they were created independently so the folders of the
mailboxes have the same names but different GUIDs), then it tries to
create the "missing" folders (by guid) which I expect fails because
there's already a folder with that name? Something like that?

Anyway that's where I'm stuck so far, I've got no idea whether `sync` is
even the right direction but I don't really know what to try.

NOTES: the maildir I'm working on right now has 41 messages in it:

$ ls some/folder/backup/mail/domain/\*/cur | wc -l
41

though the uidlist has 45 lines (which is 3 more than I'd have expected):

$ wc -l some/folder/backup/mail/domain/\*/dovecot-uidlist
45 some/folder/backup/mail/domain/\*/dovecot-uidlist

Xavier

unsubscrib

2019-08-27 Thread Carlos Xavier via dovecot
unsubscrib

Bug in logging in debug mode

2018-11-28 Thread Xavier
Hello,

This is dovecot 2.3.4 (0ecbaf23d)

If you set "mail_debug = yes" in 10.logging.conf, there's a bug in
logging, which breaks log parsers :

> 2018-11-29 00Debug: :41:57 lda(xavier): Effective uid=501, gid=20, 
> home=/home/xavier
   
Regards,

Xavier

-- 
Xavier Humbert - sysadmin & network engineer


Re: Header DATE field not returned when placed after MIME section

2018-06-06 Thread Xavier R. Guérin
> On Jun 6, 2018, at 1:41 PM, Timo Sirainen  wrote:
> 
> On 2 Jun 2018, at 1.03, Xavier Guerin  wrote:
>> 
>> Hello,
>> 
>> I am using Dovecot 2.2.34p0 on OpenBSD 6.3 stable.
>> 
>> I am writting an application using the vmime (http://www.vmime.org)
>> library (x-ref issue: https://github.com/kisli/vmime/issues/199).
>> 
>> I noticed through testing over my own e-mail server that in some
>> situations the DATE field is not returned upon ENVELOPE or
>> HEADER.FIELDS request.
>> 
>> The e-mails at fault happen to have the DATE field at the very end of
>> the header, after the MIME section.
> 
> Can you easily reproduce this with doveadm? I can't, tested with current 
> master and v2.2.34. :
> 
> % cat << EOF | doveadm save -u tss
> Delivered-To:
> Received:
> Return-Path:
> Delivered-To:
> DKIM-Signature:
> From:
> To:
> Message-ID:
> Subject:
> MIME-Version: 1.0
> Content-Type: text/html;charset=UTF-8
> Content-Transfer-Encoding: 7bit
> Date: Fri, 01 Jun 2018 17:44:44 -0400
> 
> body
> EOF
> 
> % doveadm fetch -u tss hdr.date mailbox inbox '*'
> hdr.date: Fri, 01 Jun 2018 17:44:44 -0400
> 
> % doveadm fetch -u tss imap.envelope mailbox inbox '*'
> imap.envelope: "Fri, 01 Jun 2018 17:44:44 -0400" "" NIL NIL NIL NIL NIL NIL 
> NIL ""
> 
> I tested also with your example 2 mail, but it also worked. Maybe there's 
> something else special in those mails. If you can reproduce it with the above 
> commands, send me the exact mail as attachment that you used?

I reproduced your experiment and it does work. I double checked the raw content 
of the message and it turns out that the Date field has actually been omitted.

I originally used “Evolution” to check the message source and apparently this 
tool shows the Date field even if it is missing.

I believe this situation will have to be handled by the library I am using.

Thanks !

Header DATE field not returned when placed after MIME section

2018-06-01 Thread Xavier Guerin
Hello,

I am using Dovecot 2.2.34p0 on OpenBSD 6.3 stable.

I am writting an application using the vmime (http://www.vmime.org)
library (x-ref issue: https://github.com/kisli/vmime/issues/199).

I noticed through testing over my own e-mail server that in some
situations the DATE field is not returned upon ENVELOPE or
HEADER.FIELDS request.

The e-mails at fault happen to have the DATE field at the very end of
the header, after the MIME section.

Example 1:

Delivered-To: 
Received: 
Return-Path:
Delivered-To: 
DKIM-Signature: 
From: 
To: 
Message-ID:
Subject:
MIME-Version: 1.0
Content-Type: text/html;charset=UTF-8
Content-Transfer-Encoding: 7bit
Date: Fri, 01 Jun 2018 17:44:44 -0400

Example 2:

Return-Path:
Delivered-To: 
Received: 
Delivered-To:
DKIM-Signature:
From: 
Reply-To: 
To: 
Subject: 
MIME-Version: 1.0
Content-Type: multipart/mixed; 
boundary="=_Part_338_1573405959.1527768044781"
X-Mailer: EMail_2.0
Date: Fri, 01 Jun 2018 17:36:01 -0400

Thanks in advance for the insight,


Re: [Dovecot] Dovecot + NFS + FreeBSD breakage ?

2014-06-04 Thread Xavier Beaudouin
Replying to myself.

After bumping myself ports to 2.2.13 (and pigeonhole to last version), this has 
been fixed.

Xavier
Le 4 juin 2014 à 10:22, Xavier Beaudouin  a écrit :

> Hi,
> 
> I am trying to update my old mails servers from dovecot 2.1.15 to 2.2.12 
> (freebsd ports) and upgrade to FreeBSD 10.0-P3.
> 
> My mail storage are on NFS with index also.
> 
> On 2.1.15 everything is ok, and in 10-mail.conf I have the good things to be 
> added as wiki tell me (eg http://wiki2.dovecot.org/NFS).
> 
> BUT, when I try a single connection  like :
> 
> $ telnet ::1 110
> Trying ::1...
> Connected to localhost.
> Escape character is '^]'.
> +OK Dovecot ready.
> user test@domain
> +OK
> pass thebloodypass
> Connection closed by foreign host.
> 
> Looking the log :
> 
> Jun  4 10:09:10 mail03 dovecot: master: Dovecot v2.2.12 starting up for imap, 
> pop3, lmtp
> Jun  4 10:09:20 mail03 dovecot: pop3-login: Login: user=, 
> method=PLAIN, rip=::1, lip=::1, mpid=5540, secured, 
> session=<7x47Jf76IQAB>
> Jun  4 10:09:20 mail03 dovecot: pop3(k...@oav.net): Fatal: nfs flush requires 
> mail_fsync=always
> 
> This is very strange since :
> 
> # doveconf -n | grep -E 'sync|nfs'
> mail_fsync = always
> mail_nfs_index = yes
> mail_nfs_storage = yes
> 
> 
> So either there is some breakage somewhere or something that is buggy 
> somewhere...
> 
> Here is my doveconf -n :
> 
> # 2.2.12: /usr/local/etc/dovecot/dovecot.conf
> # OS: FreeBSD 10.0-RELEASE-p3 amd64  
> auth_cache_size = 1 M
> auth_mechanisms = plain login digest-md5 cram-md5
> auth_username_chars = 
> abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@%
> auth_verbose = yes
> disable_plaintext_auth = no
> dotlock_use_excl = no
> lda_mailbox_autocreate = yes
> lda_mailbox_autosubscribe = yes
> lmtp_rcpt_check_quota = yes
> lmtp_save_to_detail_mailbox = yes
> lock_method = dotlock
> mail_debug = yes
> mail_fsync = always
> mail_location = maildir:~/Maildir:INDEX=/index/%d/%1n/%n
> mail_nfs_index = yes
> mail_nfs_storage = yes
> mail_plugins = quota trash mail_log notify zlib fts fts_lucene
> mailbox_list_index = yes
> 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
> mmap_disable = yes
> namespace inbox {
>  inbox = yes
>  location = 
>  mailbox Drafts {
>auto = subscribe
>special_use = \Drafts
>  }
>  mailbox Sent {
>auto = subscribe
>special_use = \Sent
>  }
>  mailbox Trash {
>auto = subscribe
>special_use = \Trash
>  }
>  mailbox badh {
>auto = subscribe
>special_use = \Junk
>  }
>  mailbox spam {
>auto = subscribe
>special_use = \Junk
>  }
>  prefix = 
> }
> passdb {
>  args = /usr/local/etc/dovecot/dovecot-ldap.conf.ext
>  driver = ldap
> }
> plugin {
>  fts = lucene
>  fts_lucene = whitespace_chars=@.+
>  mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename
>  mail_log_fields = uid box msgid size
>  quota = maildir
>  quota_grace = 10%%
>  quota_rule2 = Trash:storage=+10%%
>  quota_rule3 = spam:storage=+20%%
>  trash = /usr/local/etc/dovecot/dovecot-trash.conf
>  zlib_save = bz2
>  zlib_save_level = 9
> }
> service auth {
>  unix_listener /var/spool/postfix/private/auth {
>group = wheel
>mode = 0666
>user = postfix
>  }
> }
> service lmtp {
>  inet_listener lmtp {
>port = 24
>  }
> }
> 
> ssl_ca =  ssl_cert =  ssl_key =  ssl_prefer_server_ciphers = yes
> submission_host = server:25
> userdb {
>  args = /usr/local/etc/dovecot/dovecot-ldap.conf.ext
>  driver = ldap
> }
> verbose_proctitle = yes
> protocol lmtp {
>  mail_plugins = quota trash mail_log notify zlib fts fts_lucene sieve
> }
> protocol lda {
>  mail_plugins = quota trash mail_log notify zlib fts fts_lucene sieve
> }
> protocol imap {
>  mail_plugins = quota trash mail_log notify zlib fts fts_lucene imap_quota 
> imap_zlib
> }
> protocol pop3 {
>  mail_plugins = quota trash mail_log notify zlib fts fts_lucene
> }
> 
> 
> NFS mounts on freebsd :
> 
> 172.31.0.1:/vol/mail/data on /mail (nfs, noatime)
> 172.31.0.1:/vol/mail/index/tmp on /index (nfs, noatime)
> 
> NFS server is also a FreeBSD (with ZFS).
> 
> I can give ssh accesss to this box.
> 
> Regards,
> Xavier



signature.asc
Description: Message signed with OpenPGP using GPGMail


[Dovecot] Dovecot + NFS + FreeBSD breakage ?

2014-06-04 Thread Xavier Beaudouin
Hi,

I am trying to update my old mails servers from dovecot 2.1.15 to 2.2.12 
(freebsd ports) and upgrade to FreeBSD 10.0-P3.

My mail storage are on NFS with index also.

On 2.1.15 everything is ok, and in 10-mail.conf I have the good things to be 
added as wiki tell me (eg http://wiki2.dovecot.org/NFS).

BUT, when I try a single connection  like :

$ telnet ::1 110
Trying ::1...
Connected to localhost.
Escape character is '^]'.
+OK Dovecot ready.
user test@domain
+OK
pass thebloodypass
Connection closed by foreign host.

Looking the log :

Jun  4 10:09:10 mail03 dovecot: master: Dovecot v2.2.12 starting up for imap, 
pop3, lmtp
Jun  4 10:09:20 mail03 dovecot: pop3-login: Login: user=, 
method=PLAIN, rip=::1, lip=::1, mpid=5540, secured, 
session=<7x47Jf76IQAB>
Jun  4 10:09:20 mail03 dovecot: pop3(k...@oav.net): Fatal: nfs flush requires 
mail_fsync=always

This is very strange since :

# doveconf -n | grep -E 'sync|nfs'
mail_fsync = always
mail_nfs_index = yes
mail_nfs_storage = yes


So either there is some breakage somewhere or something that is buggy 
somewhere...

Here is my doveconf -n :

# 2.2.12: /usr/local/etc/dovecot/dovecot.conf
# OS: FreeBSD 10.0-RELEASE-p3 amd64  
auth_cache_size = 1 M
auth_mechanisms = plain login digest-md5 cram-md5
auth_username_chars = 
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@%
auth_verbose = yes
disable_plaintext_auth = no
dotlock_use_excl = no
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
lmtp_rcpt_check_quota = yes
lmtp_save_to_detail_mailbox = yes
lock_method = dotlock
mail_debug = yes
mail_fsync = always
mail_location = maildir:~/Maildir:INDEX=/index/%d/%1n/%n
mail_nfs_index = yes
mail_nfs_storage = yes
mail_plugins = quota trash mail_log notify zlib fts fts_lucene
mailbox_list_index = yes
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
mmap_disable = yes
namespace inbox {
  inbox = yes
  location = 
  mailbox Drafts {
auto = subscribe
special_use = \Drafts
  }
  mailbox Sent {
auto = subscribe
special_use = \Sent
  }
  mailbox Trash {
auto = subscribe
special_use = \Trash
  }
  mailbox badh {
auto = subscribe
special_use = \Junk
  }
  mailbox spam {
auto = subscribe
special_use = \Junk
  }
  prefix = 
}
passdb {
  args = /usr/local/etc/dovecot/dovecot-ldap.conf.ext
  driver = ldap
}
plugin {
  fts = lucene
  fts_lucene = whitespace_chars=@.+
  mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename
  mail_log_fields = uid box msgid size
  quota = maildir
  quota_grace = 10%%
  quota_rule2 = Trash:storage=+10%%
  quota_rule3 = spam:storage=+20%%
  trash = /usr/local/etc/dovecot/dovecot-trash.conf
  zlib_save = bz2
  zlib_save_level = 9
}
service auth {
  unix_listener /var/spool/postfix/private/auth {
group = wheel
mode = 0666
user = postfix
  }
}
service lmtp {
  inet_listener lmtp {
port = 24
  }
}

ssl_ca = 

signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [Dovecot] Unable to use dovecot-antispam plugin

2013-09-14 Thread Xavier Claude
I've finally found the issue, dspam was not configured properly.
-- 
Xavier Claude
claude.xav...@gmail.com


Re: [Dovecot] Unable to use dovecot-antispam plugin

2013-08-07 Thread Xavier Claude
Le mercredi 31 juillet 2013 08:51:11 Steffen Kaiser a écrit :
> 
> To narrow down the problem, could you:
> 
> a) add "Drafts" to antispam_spam and try again with Drafts,&

I've added it and I have the same behaviour as with the Spam directory.

> a) disable antispam and try to move a message to Spam again.

If I disable the plugin I can move a mail in the Spam directory.

> 
> The config looks fine. Do you have no error in the logs or in syslog? I
> wonder if your client moves the message to Spam at all ... .

I don't see anything in the logs.  

Regards,
-- 
Xavier Claude
claude.xav...@gmail.com


Re: [Dovecot] Unable to use dovecot-antispam plugin

2013-07-30 Thread Xavier Claude
Le lundi 29 juillet 2013 08:51:17 Steffen Kaiser a écrit : 
> On Sat, 27 Jul 2013, Xavier Claude wrote:
> 
> > 2.1.7), but it's not working, each time I put a mail in the "Spam"
> 
> Turn on logging and the mail_log plugin:
> 
> http://wiki2.dovecot.org/Logging
> http://wiki2.dovecot.org/Plugins/MailLog

Thank you it shows that there is no action when I try to move the mail to the 
Spam directory. Here is the results when I move the mail from the Inbox to the 
Draft directory  and back to the Inbox : 

Jul 30 22:01:46 twoflowers dovecot: imap(xavier): copy from INBOX: box=Drafts, 
uid=7, msgid=<20130717220057.586dd...@linux-s4x4.site>, size=753
Jul 30 22:01:46 twoflowers dovecot: imap(xavier): delete: box=INBOX, uid=9, 
msgid=<20130717220057.586dd...@linux-s4x4.site>, size=753
Jul 30 22:01:47 twoflowers dovecot: imap(xavier): expunge: box=Drafts, uid=6, 
msgid=<20130717220057.586dd...@linux-s4x4.site>, size=753
Jul 30 22:01:51 twoflowers dovecot: imap(xavier): copy from Drafts: box=INBOX, 
uid=11, msgid=<20130717220057.586dd...@linux-s4x4.site>, size=753
Jul 30 22:01:51 twoflowers dovecot: imap(xavier): delete: box=Drafts, uid=7, 
msgid=<20130717220057.586dd...@linux-s4x4.site>, size=75

But when I move the mail to the spam directory, there is nothing in the log.

> 
> > folder, it is send in its original folder. What bother me the most is
> 
> What was the "original folder"? Maybe Junk? try to turn off Junk filtering
> by the mail client. With mail_log enabled you'll see many actions of your
> client.

The original folder was the Inbox. It's a dedicated mail account to test the 
antispam plugin, so there is no filtering by the client.

Here is my config with the logging enabled :

# 2.1.7: /etc/dovecot/dovecot.conf
# OS: Linux 3.2.14-std-ipv6-64 x86_64 Debian 7.1 
mail_debug = yes
mail_location = maildir:~/Maildir
mail_plugins = " mail_log notify"
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
namespace inbox {
  inbox = yes
  location = 
  mailbox Drafts {
special_use = \Drafts
  }
  mailbox Junk {
special_use = \Junk
  }
  mailbox Sent {
special_use = \Sent
  }
  mailbox "Sent Messages" {
special_use = \Sent
  }
  mailbox Trash {
special_use = \Trash
  }
  prefix = 
}
passdb {
  driver = pam
}
plugin {
  antispam_allow_append_to_spam = yes
  antispam_backend = dspam
  antispam_debug_target = syslog
  antispam_dspam_args = 
--user;%Lu;--deliver=spam,innocent;--source=error;--signature=%%s
  antispam_dspam_binary = /usr/bin/dspam
  antispam_dspam_notspam = --class=innocent
  antispam_dspam_result_header = X-DSPAM-Result
  antispam_dspam_spam = --class=spam
  antispam_signature = X-DSPAM-Signature
  antispam_signature_missing = error
  antispam_spam = SPAM;Spam
  antispam_trash = trash;Trash;Deleted Items; Deleted Messages
  mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename
  mail_log_fields = uid box msgid size
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
}
protocols = " imap sieve"
service auth {
  unix_listener /var/spool/postfix/private/auth {
mode = 0666
  }
}
ssl_cert = 

[Dovecot] Unable to use dovecot-antispam plugin

2013-07-27 Thread Xavier Claude
Hello everybody,

I'm trying to use the Dovecot antispam on Debian Wheezy (dovecot version 
2.1.7), but it's not working, each time I put a mail in the "Spam" folder, it 
is send in its original folder. What bother me the most is that I don't see 
anything in the log. Here is my dovecot config related to the antispam plugin :

plugin {
  antispam_allow_append_to_spam = yes
  antispam_backend = dspam
  antispam_debug_target = syslog
  antispam_dspam_args = 
--user;%Lu;--deliver=spam,innocent;--source=error;--signature=%%s
  antispam_dspam_binary = /usr/bin/dspam
  antispam_dspam_notspam = --class=innocent
  antispam_dspam_result_header = X-DSPAM-Result
  antispam_dspam_spam = --class=spam
  antispam_signature = X-DSPAM-Signature
  antispam_signature_missing = error
  antispam_spam = SPAM;Spam
  antispam_trash = trash;Trash;Deleted Items; Deleted Messages
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
}

protocol imap {
  mail_plugins = " antispam"
}

And in the log, the only thing I see is the plugin initialization :

Jul 27 13:18:05 twoflowers imap: antispam: plugin initialising (2.0-notgit)
Jul 27 13:18:05 twoflowers imap: antispam: "SPAM" is exact match spam folder
Jul 27 13:18:05 twoflowers imap: antispam: "Spam" is exact match spam folder
Jul 27 13:18:05 twoflowers imap: antispam: no unsure folders
Jul 27 13:18:05 twoflowers imap: antispam: "trash" is exact match trash folder
Jul 27 13:18:05 twoflowers imap: antispam: "Trash" is exact match trash folder
Jul 27 13:18:05 twoflowers imap: antispam: "Deleted Items" is exact match trash 
folder
Jul 27 13:18:05 twoflowers imap: antispam: " Deleted Messages" is exact match 
trash folder
Jul 27 13:18:05 twoflowers imap: antispam: allowing APPEND to spam folders
Jul 27 13:18:05 twoflowers imap: antispam: dspam binary set to /usr/bin/dspam
Jul 27 13:18:05 twoflowers imap: antispam: dspam result set to X-DSPAM-Result
Jul 27 13:18:05 twoflowers imap: antispam: dspam extra arg --user
Jul 27 13:18:05 twoflowers imap: antispam: dspam extra arg xavier
Jul 27 13:18:05 twoflowers imap: antispam: dspam extra arg 
--deliver=spam,innocent
Jul 27 13:18:05 twoflowers imap: antispam: dspam extra arg --source=error
Jul 27 13:18:05 twoflowers imap: antispam: dspam extra arg --signature=%s
Jul 27 13:18:05 twoflowers imap: antispam: signature header line is 
"X-DSPAM-Signature"

Thank you for your help.
-- 
Xavier Claude
claude.xav...@gmail.com


[Dovecot] How to activate antispam plugin

2012-10-28 Thread Xavier Claude
Hello,

I'm using dovecot 2.1.7 from the Debian backports package and I'm 
trying to get working the antispam plugin with dspam. I have followed the 
documentation http://wiki2.dovecot.org/Plugins/Antispam but it does not seem to 
work. The /var/log/dspam folder is empty even after I put mail in the Spam 
folder.

How can I see if the plugin is working and what config option am I 
missing ?

Thank in advance for your help. Here is my config from dovecot -n:

# 2.1.7: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-xenU-6887-i386 i686 Debian 6.0.6 
mail_location = maildir:~/Maildir
namespace inbox {
  inbox = yes
  location = 
  prefix = 
}
passdb {
  driver = pam
}
plugin {
  antispam_backend = dspam
  antispam_dspam_args = --mode=teft;--deliver=;--user;%u
  antispam_dspam_binary = /usr/bin/dspam
  antispam_signature = X-DSPAM-Signature
  antispam_signature_missing = move
  antispam_spam = Spam
  antispam_trash = trash;Corbeille;Trash;Deleted Items; Deleted Messages
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
}
protocols = " imap pop3"
service auth {
  unix_listener /var/spool/postfix/private/auth {
mode = 0666
  }
}
ssl_cert = 

[Dovecot] dsync mirror and sieve ?

2012-09-07 Thread Xavier Beaudouin
Hi there,

I am currently doing some extensive test with dsync, but it appear that :

dsync -u  maildir:/path/to/new/Maildir 

doesn't seems to sync sieves rules.

Is there a good way to sync sieves as well ? :p

Regards,
Xavier


[Dovecot] Dovecot mailstorage migration uppon logging / delivery with dsync

2012-07-05 Thread Xavier Beaudouin

Hi there,

I have a pretty standard setup with "simple" dovecot 2,0 configuration 
(eg /var/mailboxes on NFS with old netapp) and local ldap directory and 
Maildir.


I wanted to find a good way to migrate from NFS old netapp to NFS new 
server (this one is not a netapp !).


There 3 kind way (according to my own experience)

- rsync old spool to new spool being patient stop services and then 
doing last rsync and mount /var/mailboxes mount point from old netapp to 
new nfs server).
- doing imap_login (and other stuff like this) doing an rsync per box 
AFTER doing the first rsync with all boxes...
- using dsync to fetch the maildir stuff from old server to new one, 
doing a simple flag, and doing "au fil de l'eau" migration.


The last one seems to me a good idea, but I cannot figure host to make 
this correctly.


Any hints or do someone here has already done this kind of stuff?

Kind regards,

--
Xavier Beaudouin


[Dovecot] Sieve fileinto and year/month folders.

2012-03-28 Thread Xavier Beaudouin

Hi there,

I am trying to move from lmtpd (lmtpd.sf.net) to dovecot sieve.

One thing used by some of powerusers are archiving mail automatically 
with autocreated folders based on year + month.


Is there any good way to make that with sieve...

One example

require "fileinto";

if address :is ["From", "To"] "dovecot@dovecot.org" {
   fileinto "INBOX.mls.%Y.%m.dovecot";
}

This will fill any mails into INBOX.mls.2012.03.dovecot uppon receiving...

I don't know if some sieve guru can tell me how to do that... ?

Kind regards,

Xavier


[Dovecot] lmtp panic in proxy lmtp director

2011-12-05 Thread Xavier Pons
Hi, we are getting some  core dumps with signal 6 in ltmp on a dovecot 
director proxy server,

like this:

Dec  5 14:31:51 sproxy1 dovecot: lmtp(2): Panic: file lmtp-proxy.c: 
line 376 (lmtp_proxy_output_timeout): assertion failed: 
(proxy->data_input->eof)
Dec  5 14:31:51 sproxy1 dovecot: lmtp(2): Error: Raw backtrace: 
/usr/lib64/dovecot/libdovecot.so.0() [0x363323d99a] -> 
/usr/lib64/dovecot/libdovecot.so.0() [0x363323d9e6] -> 
/usr/lib64/dovecot/libdovecot.so.0(i_error+0) [0x3633216f8f] -> 
dovecot/lmtp() [0x406e57] -> 
/usr/lib64/dovecot/libdovecot.so.0(io_loop_handle_timeouts+0xd4) 
[0x3633248ff4] -> 
/usr/lib64/dovecot/libdovecot.so.0(io_loop_handler_run+0x5b) 
[0x3633249bdb] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_run+0x28) 
[0x3633248c58] -> 
/usr/lib64/dovecot/libdovecot.so.0(master_service_run+0x13) 
[0x3633236fc3] -> dovecot/lmtp(main+0x154) [0x403f84] -> 
/lib64/libc.so.6(__libc_start_main+0xfd) [0x373cc1ec5d] -> 
dovecot/lmtp() [0x403d69]
Dec  5 14:31:51 sproxy1 abrt[30067]: saved core dump of pid 2 
(/usr/libexec/dovecot/lmtp) to 
/var/spool/abrt/ccpp-1323091911-2.new/coredump (1368064 bytes)
Dec  5 14:31:51 sproxy1 dovecot: master: Error: service(lmtp): child 
2 killed with signal 6 (core dumped)


we have something misconfigured  or it's a bug on this dovecot version?

our doveconf -n is:
# 2.0.15: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-71.29.1.el6.x86_64 x86_64 CentOS Linux release 6.0 
(Final)

auth_cache_size = 3 k
auth_cache_ttl = 15 mins
auth_verbose = yes
base_dir = /var/run/dovecot/
default_client_limit = 3
default_process_limit = 5000
director_doveadm_port = 990
director_mail_servers = 10.80.82.21 10.80.82.22
director_servers = 10.80.82.11 10.80.82.12
doveadm_proxy_port = 24245
lmtp_proxy = yes
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

passdb {
  args = proxy=y nopassword=y starttls=any-cert
  driver = static
}
postmaster_address = xavier.p...@uib.es
protocols = imap pop3 lmtp sieve
service auth {
  client_limit = 27048
  unix_listener /var/spool/postfix/private/auth {
mode = 0666
  }
  unix_listener auth-userdb {
group = dovecot
mode = 0660
  }
}
service director {
  fifo_listener login/proxy-notify {
mode = 0666
  }
  inet_listener {
port = 991
  }
  inet_listener director-doveadm {
port = 990
  }
  unix_listener director-userdb {
mode = 0660
  }
  unix_listener login/director {
mode = 0666
  }
}
service doveadm {
  inet_listener {
port = 24245
  }
}
service imap-login {
  executable = imap-login director
  inet_listener imap {
port = 143
  }
  inet_listener imaps {
port = 993
ssl = yes
  }
}
service lmtp {
  inet_listener lmtp {
port = 30025
  }
}
service managesieve-login {
  executable = managesieve-login director
}
service pop3-login {
  executable = pop3-login director
  inet_listener pop3 {
port = 110
  }
  inet_listener pop3s {
port = 995
ssl = yes
  }
}
ssl = required
ssl_cert = 

Re: [Dovecot] Help with Trash setup

2011-06-05 Thread Xavier Maillard
Hi,

On Sun, 5 Jun 2011 13:08:00 -0300, Ivan Rodrigues  
wrote:
> Folks,
> 
> I'm trying to setup a mail server just to store my mail, i use fetchmail to
> retrieve my messages and I want to configure the trash can, can you guys
> please help me with this mater?

I am not an expert (and I do not use this plugin) but:

> mail_plugins: delete_to_trash
 ^^^

shouldn't it be *deleted_to_trash* ?

/Xavier


Re: [Dovecot] Virtual mailboxes and subfolders

2010-12-02 Thread François-Xavier Payet

Le 2 déc. 2010 à 18:55, Timo Sirainen a écrit :

> On Thu, 2010-12-02 at 10:51 +0100, François-Xavier Payet wrote:
>> Hello again,
>> I'd like to know if there is a way to have subfolders in virtual 
>> mailbox?
>> 
>> In my virtual namespaces, I have some virtual maiboxes named like this 
>> :
>>Mailbox
>>Mailbox.SubMailbox
>> 
>> (the separator is '.')
> 
> So you have virtual/Mailbox/dovecot-virtual and
> virtual/Mailbox/SubMailbox/dovecot-virtual files?

In fact, I had virtual/Mailbox/dovecot-virtual and 
virtual/Mailbox.SubMailbox/dovecot-virtual, I thought subfolder should be named 
with the separator. It is working with your hierarchy, thanks!

> 
>> But when I try to access the submailbox, depending on my client, it 
>> either :
>>   - Tells me the mailbox doesn't exists (Roundcube)
>>   - Don't show me any error, but don't display any mail in the mailbox 
>> (Apple Mail.app)
> 
> Try talking IMAP protocol directly:
> 
> a login user pass
> b select Mailbox.SubMailbox
> 
> What is the error message? If it's simply "Mailbox doesn't exist", does
> this then show it:
> 
> c list "" *
> 
>> namespace:
>>   type: private
>>   separator: .
>>   location: virtual:/var/vmail/%d/%n/Maildir/virtual:INDEX=MEMORY
>>   inbox: yes
>>   list: yes
>>   subscriptions: yes
> 
> So you use virtual namespace as the only visible namespace? .. That's
> interesting.
> 

Yes, only my virtual namespace is visible and is copying messages to the real 
maildir. I do that so that I can, in each mailbox, see all complete mail 
threads, even for the mails not in this mailbox (typically, the mail sent by me)



[Dovecot] Virtual mailboxes and subfolders

2010-12-02 Thread François-Xavier Payet

Hello again,
I'd like to know if there is a way to have subfolders in virtual 
mailbox?


In my virtual namespaces, I have some virtual maiboxes named like this 
:

   Mailbox
   Mailbox.SubMailbox

(the separator is '.')

But when I try to access the submailbox, depending on my client, it 
either :

  - Tells me the mailbox doesn't exists (Roundcube)
  - Don't show me any error, but don't display any mail in the mailbox 
(Apple Mail.app)


So I'd like to know if this is because I can't make subfolders of 
virtual mailboxes, or if I'm doing something wrong.


Thanks.

François-Xavier Payet

dovecot -n :

# 1.2.15: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-bpo.5-amd64 x86_64 Debian 5.0.7
log_timestamp: %Y-%m-%d %H:%M:%S
protocols: imaps managesieve
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(managesieve): /usr/lib/dovecot/managesieve-login
mail_privileged_group: mail
mbox_write_locks: fcntl dotlock
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(managesieve): /usr/lib/dovecot/managesieve
mail_plugins(default): virtual
mail_plugins(imap): virtual
mail_plugins(managesieve):
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(managesieve): /usr/lib/dovecot/modules/managesieve
namespace:
  type: private
  separator: .
  location: virtual:/var/vmail/%d/%n/Maildir/virtual:INDEX=MEMORY
  inbox: yes
  list: yes
  subscriptions: yes
namespace:
  type: private
  separator: .
  prefix: RealMail.
  location: maildir:/var/vmail/%d/%n/Maildir
  hidden: yes
  list: no
  subscriptions: yes
lda:
  log_path: /var/vmail/dovecot-deliver.log
  auth_socket_path: /var/run/dovecot/auth-master
  postmaster_address: f...@da-foux-server.tfdn.org
  mail_plugins: sieve virtual
auth default:
  mechanisms: plain login
  passdb:
driver: sql
args: /etc/dovecot/dovecot-sql.conf
  userdb:
driver: passwd
  userdb:
driver: static
args: uid=5000 gid=5000 home=/var/vmail/%d/%n allow_all_users=yes
  socket:
type: listen
client:
  path: /var/spool/postfix/private/auth
  mode: 432
  user: postfix
  group: postfix
master:
  path: /var/run/dovecot/auth-master
  mode: 384
  user: vmail
plugin:
  sieve: /var/vmail/%d/%n/sieve
  sieve_dir: /var/vmail/%d/%n/.sieve



Re: [Dovecot] All messages in double in a virtual mailbox.

2010-12-02 Thread François-Xavier Payet
I thought the  '!Mailbox' was only to specify where the mail would be 
saved, but not that the mailbox would be included, sorry for my 
misunderstanding.


Your solution solved everything, thanks a lot.

François-Xavier Payet

On Thu, 2 Dec 2010 06:42:33 +, Timo Sirainen wrote:


On 1.12.2010, at 21.15, François-Xavier Payet wrote:

Hello, I've got some virtual maiboxes that are configured as follows 
:

!RealMail.Sent RealMail.Sent all In all those mailboxes, all the
messages appears in double. I don't think it's the expected 
behaviour,

but I perhaps missed something.
!RealMail.Sent that already includes that mailbox. So when you give 
it

again without '!' it gets duplicated.


[Dovecot] All messages in double in a virtual mailbox.

2010-12-01 Thread François-Xavier Payet

Hello,
I've got some virtual maiboxes that are configured as follows :

!RealMail.Sent
RealMail.Sent
  all

In all those mailboxes, all the messages appears in double. I don't 
think it's the expected behaviour, but I perhaps missed something.


Here's my dovecot -n :

# 1.2.15: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-bpo.5-amd64 x86_64 Debian 5.0.7
log_timestamp: %Y-%m-%d %H:%M:%S
protocols: imaps managesieve
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(managesieve): /usr/lib/dovecot/managesieve-login
mail_privileged_group: mail
mbox_write_locks: fcntl dotlock
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(managesieve): /usr/lib/dovecot/managesieve
mail_plugins(default): virtual
mail_plugins(imap): virtual
mail_plugins(managesieve):
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(managesieve): /usr/lib/dovecot/modules/managesieve
namespace:
  type: private
  separator: .
  location: virtual:/var/vmail/%d/%n/Maildir/virtual
  inbox: yes
  list: yes
  subscriptions: yes
namespace:
  type: private
  separator: .
  prefix: RealMail.
  location: maildir:/var/vmail/%d/%n/Maildir
  hidden: yes
  list: no
  subscriptions: yes
lda:
  log_path: /var/vmail/dovecot-deliver.log
  auth_socket_path: /var/run/dovecot/auth-master
  postmaster_address: f...@da-foux-server.tfdn.org
  mail_plugins: sieve virtual
auth default:
  mechanisms: plain login
  passdb:
driver: sql
args: /etc/dovecot/dovecot-sql.conf
  userdb:
driver: passwd
  userdb:
driver: static
args: uid=5000 gid=5000 home=/var/vmail/%d/%n allow_all_users=yes
  socket:
type: listen
client:
  path: /var/spool/postfix/private/auth
  mode: 432
  user: postfix
  group: postfix
master:
  path: /var/run/dovecot/auth-master
  mode: 384
  user: vmail
plugin:
  sieve: /var/vmail/%d/%n/sieve
  sieve_dir: /var/vmail/%d/%n/.sieve

Thanks for your help
François-Xavier Payet


[Dovecot] Expunged GUID mismatch for UID error

2010-09-23 Thread Xavier Pons

 Hi,
we have upgraded from v2.0.1 to v2.0.3 yesterday, trying to solve the 
"dovecot-uidlist: Duplicate file entry"
errors. Now, at the moment, we don't get these errors, but when I try to 
expunge mails from my trash folder I

get a lot of errors:

Sep 23 14:24:51 imap1 dovecot: imap(user): Error: Mailbox Trash: 
Expunged GUID mismatch for UID 20193: 442b5ef0c3d3bf3cf4cb619944dce8e4 
vs 0431b9bee05471199fabbc05af3a87a5

(with different GUIDs, and UIDs)

and the mails are not expunged from Trash mailbox.
Also, I have tried with "doveadm force-resync -u user Trash" and 
"doveadm expunge -u user mailbox Trash ALL"

but not resolve the problem...

Thanks

Xavier Pons


Re: [Dovecot] pigeonhole and utf-8 error

2010-08-19 Thread Xavier Pons

 El 19/08/2010 6:18, Pascal Volk escribió:

On 08/18/2010 04:22 PM Timo Sirainen wrote:

Oh. The code has been buggy since v1.1. I think it also caused some
search results to be broken. Added the fix for v1.1, v1.2 and v2.0 code
trees.

http://hg.dovecot.org/dovecot-2.0/rev/8c46bf2c5176

Hm, didn't solve the problem.

master: Info: Dovecot v2.0.0 (706f30fa4028) starting up
lmtp(…): Error: …: sieve: msgid=<…>: failed to store into mailbox '→FølЀ®←': 
mailbox name not utf-8: →FølЀ®←


Regards,
Pascal

Hi,
I have tried the patch, and now it's working ok in our systems.
Recognize correctly the utf8 folder name in filter file:

Aug 19 08:59:37 imap2 dovecot: lmtp(29758, xavier): 
xVuVA1nWbEw+dAAAnkSxNQ: sieve: msgid=<4c6cd613.9060...@uib.es>: stored 
mail into mailbox 'atenci&APM-'



Thanks

Xavier


--
xavier.p...@uib.es
telef.: 917172888
Centre de Tecnologies de la Informació
Universitat Illes Balears




Re: [Dovecot] pigeonhole and utf-8 error

2010-08-18 Thread Xavier Pons

 El 18/08/2010 10:49, William Blunn escribió:

On 18/08/2010 08:38, Xavier Pons wrote:

 El 17/08/2010 18:57, Timo Sirainen escribió:

On Tue, 2010-08-17 at 09:35 +0200, Xavier Pons wrote:


>Aug 17 09:22:40 imap1 dovecot: lmtp(19629,miel): Error:
kea6K484akytTAAAJBW4rA: sieve: msgid=
><1099311971.505.1282029699154.javamail.open-xcha...@o.uib.es>: failed
to store into mailbox 'atenció':>mailbox name not utf-8: atenció

dovecot it's working without problem on this folder.
I suppose it's a misconfiguration, but I don't find where...

I guess you wrote the script with ISO-8859-x charset or something
instead of UTF-8.




my default system LANG is 'en_US.UTF-8'.
Also, I have tried to edit this filter with  'vi "+set 
encoding=utf-8" sievefilter' , and
the folder name it's correctly writed/displayed, but when it's 
executed from dovecot lmtp

give me this error.


To do an acid test, try viewing your filter using "cat -A".

If you get a sequence like "atenciM-s", then your character ó is 
represented by byte 0xF3 and it's ISO-8859-1 (or 2/3/9/10/13/14/15/16).


If you get a sequence like "atenciM-CM-3", then your character ó is 
represented by bytes 0xC3, 0xB3 and it's UTF-8.


Bill


the result of a 'cat -A' of the filter file get me a representation of  
"atenciM-CM-32"

then I could suppose it's correctly encoded in UTF-8, it's right?
and if it is, I don't know why  dovecot lmtp gives me "mailbox name not 
utf-8" ...


Xavier



Re: [Dovecot] pigeonhole and utf-8 error

2010-08-18 Thread Xavier Pons

 El 17/08/2010 18:57, Timo Sirainen escribió:

On Tue, 2010-08-17 at 09:35 +0200, Xavier Pons wrote:


  >Aug 17 09:22:40 imap1 dovecot: lmtp(19629,miel): Error:
kea6K484akytTAAAJBW4rA: sieve: msgid=
  ><1099311971.505.1282029699154.javamail.open-xcha...@o.uib.es>: failed
to store into mailbox 'atenció':>mailbox name not utf-8: atenció

dovecot it's working without problem on this folder.
I suppose it's a misconfiguration, but I don't find where...

I guess you wrote the script with ISO-8859-x charset or something
instead of UTF-8.




my default system LANG is 'en_US.UTF-8'.
Also, I have tried to edit this filter with  'vi "+set encoding=utf-8" 
sievefilter' , and
the folder name it's correctly writed/displayed, but when it's executed 
from dovecot lmtp

give me this error.

I'm using dovecot with default mUTF-7 encoding, and in the pigeonhole 
configuration I didn't

see nothing related to encoding charset .
Could I configure dovecot to work with UTF-8 instead mUTF-7? this could 
help to resolve this
problem? Nowadays  It's recommended to use UTF-8 for non-english 
configurations?


thanks

Xavier



[Dovecot] pigeonhole and utf-8 error

2010-08-17 Thread Xavier Pons

 Hi,
now, I'm working with the last version of dovecot and pigeonhole sieve,
and when apply a sieve filter on a new message, and it try to move this 
mail to a folder with special character

like accent give me the error 'mailbox name not utf-8: ...'

>Aug 17 09:22:40 imap1 dovecot: lmtp(19629,miel): Error: 
kea6K484akytTAAAJBW4rA: sieve: msgid=
><1099311971.505.1282029699154.javamail.open-xcha...@o.uib.es>: failed 
to store into mailbox 'atenció': >mailbox name not utf-8: atenció


dovecot it's working without problem on this folder.
I suppose it's a misconfiguration, but I don't find where...

Xavier




Re: [Dovecot] pigeonhole

2010-08-16 Thread Xavier Pons

 El 17/08/2010 3:04, Stephan Bosch escribió:

Xavier Pons wrote:

 Hi,
I'm trying to compile the last mercurial release of 
dovecot-pigeonhole 2.0 and get this error:


gcc -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes 
-Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 
-Wbad-function-cast -Wstrict-aliasing=2 -I/usr/kerberos/include -o 
.libs/sievec sievec.o -Wl,--export-dynamic  
../../src/lib-sieve/.libs/libdovecot-sieve.so 
../../src/lib-sieve-tool/.libs/libsieve-tool.a 
./debug/.libs/libsieve_ext_debug.a 
/root/dovecot/dovecot-hg/dovecot-2.0/src/lib-storage/.libs/libdovecot-storage.so 
/root/dovecot/dovecot-hg/dovecot-2.0/src/lib-lda/.libs/libdovecot-lda.so 
/root/dovecot/dovecot-hg/dovecot-2.0/src/lib-dovecot/.libs/libdovecot.so 
-ldl -lrt  -Wl,--rpath -Wl,/usr/lib/dovecot
../../src/lib-sieve/.libs/libdovecot-sieve.so: undefined reference to 
`sieve_stringlist_get_length'
../../src/lib-sieve/.libs/libdovecot-sieve.so: undefined reference to 
`sieve_stringlist_read_all'
../../src/lib-sieve/.libs/libdovecot-sieve.so: undefined reference to 
`sieve_single_stringlist_create_cstr'

collect2: ld returned 1 exit status
make[4]: *** [sievec] Error 1

any idea? 

Did you rerun ./autogen.sh and ./configure ?

Regards,

Stephan.


Thanks!

the rerunning of ./autogen.sh does the job!
I'm compiling with the recent  dovecot v2.0 .



Xavier




[Dovecot] pigeonhole

2010-08-16 Thread Xavier Pons

 Hi,
I'm trying to compile the last mercurial release of dovecot-pigeonhole 
2.0 and get this error:


gcc -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes 
-Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 
-Wbad-function-cast -Wstrict-aliasing=2 -I/usr/kerberos/include -o 
.libs/sievec sievec.o -Wl,--export-dynamic  
../../src/lib-sieve/.libs/libdovecot-sieve.so 
../../src/lib-sieve-tool/.libs/libsieve-tool.a 
./debug/.libs/libsieve_ext_debug.a 
/root/dovecot/dovecot-hg/dovecot-2.0/src/lib-storage/.libs/libdovecot-storage.so 
/root/dovecot/dovecot-hg/dovecot-2.0/src/lib-lda/.libs/libdovecot-lda.so 
/root/dovecot/dovecot-hg/dovecot-2.0/src/lib-dovecot/.libs/libdovecot.so 
-ldl -lrt  -Wl,--rpath -Wl,/usr/lib/dovecot
../../src/lib-sieve/.libs/libdovecot-sieve.so: undefined reference to 
`sieve_stringlist_get_length'
../../src/lib-sieve/.libs/libdovecot-sieve.so: undefined reference to 
`sieve_stringlist_read_all'
../../src/lib-sieve/.libs/libdovecot-sieve.so: undefined reference to 
`sieve_single_stringlist_create_cstr'

collect2: ld returned 1 exit status
make[4]: *** [sievec] Error 1

any idea?

thanks

Xavier



[Dovecot] sessions accounting and monitoring

2010-08-12 Thread Xavier Pons

 Hi,
we would have some accounting/monitoring of pop and imap sessions in our 
dovecot servers,
which are the 'best' and fair way to do it? using some post-login 
scripts, parsing the log file, using netstat ...
I know in the 2.0 version exists the doveadm who, but only relates to 
imap sessions...

some recommendations?

thanks

Xavier


[Dovecot] doveadm director remove error

2010-08-04 Thread Xavier Pons

 Hi,
with the version 2.0.rc3, when I try to remove a mail server from 
director list, get this error:


doveadm director remove 10.180.188.21
(null): doesn't exist

but the other commands are working without problem ...

doveadm director status
mail server ip   vhosts users
10.180.188.21   100 2
10.180.188.22   100 3

thanks

Xavier



Re: [Dovecot] dovecot director service

2010-07-23 Thread Xavier Pons

 El 22/07/2010 17:08, Timo Sirainen escribió:

On Thu, 2010-07-22 at 12:35 +0100, Timo Sirainen wrote:

director_doveadm_port = 991

Kind of annoying, but I guess I could add that.

Added: http://hg.dovecot.org/dovecot-2.0/rev/ab85d17947db



Hi Timo,

like you say, I have added director_doveadm_port = 990 to my director 
configuration, but how

I must add the inet_listener for this port?
I have tried with:

service director {
  unix_listener login/director {
mode = 0666
  }
  fifo_listener login/proxy-notify {
mode = 0666
  }
  unix_listener director-userdb {
mode = 0666
  }
# director service port
  inet_listener {
port = 991
  }
#director-doveadm service port
  inet_listener {
port = 990
  }
}

but I get the error:

[r...@imap2 ~]# doveadm director status -a imap2:990
doveadm(root): Fatal: imap2:990 not a compatible director-doveadm socket

and the log says:
Jul 23 09:50:14 imap2 dovecot: director: Error: 
director(10.180.188.12/in): Wrong protocol in socket (director-doveadm 
vs director)


then also I have tried with:

service director-doveadm {
  inet_listener {
port = 990
  }
}

but when restart the daemon get:

doveconf: Error: service(director-doveadm): executable is empty
doveconf: Fatal: Error in configuration file 
/etc/dovecot-proxy/dovecot.conf: service(director-doveadm): executable 
is empty


How is the correct format to define the inet director-doveadm port?

thanks

Xavier


Re: [Dovecot] dovecot director service

2010-07-22 Thread Xavier Pons

 El 12/07/2010 16:53, Timo Sirainen escribió:

On Mon, 2010-07-12 at 00:34 +0100, Timo Sirainen wrote:

So having doveadm function over TCP would be a big plus.

Done. doveadm director status -a host:port

Except .. there's no way to actually tell director that a specific port
is a doveadm port, not a director port, unless you hardcode it.. Wonder
if I should have added some kind of a "type" setting for the listeners..



Hi,
this funcionality it's implemented in the actual hg repository?

doveadm director status -a ipDirector1:991
  and get:
doveadm(root): Fatal:  ipDirector1:991 not a compatible director-doveadm 
socket


I'm trying to implement a healthcheck/monitor script for the directors 
servers and mail servers.


Thanks

Xavier



[Dovecot] director service and managesieve

2010-07-19 Thread Xavier Pons

 Hi,
the director service have implemented any support for managesieve-login?.
I get the error:
managesieve-login: Error: proxy: host not given: user=, 
method=PLAIN, ...


any workaround?

thanks

Xavier


Re: [Dovecot] dovecot director service

2010-07-09 Thread Xavier Pons

 El 08/07/2010 13:26, Timo Sirainen escribió:

On 8.7.2010, at 10.48, Brandon Davidson wrote:


Yes, we will have two hardware balancers in front of proxies. Thus,  the
director service will detect failures of backend servers and not forward
sessions them? how detects if a  backend server it's alive or not?

IIRC, it does not detect failures of backend servers. It's up to you to
detect outages and react appropriately.

The folks that sponsored Director development apparently have a monitoring
script that removes downed nodes by running something like 'ssh directorhost
doveadm director remove backendhost', and then re-adds them when they come
back up.

Yes. It was also much simpler to implement that way :) Maybe it wouldn't be 
hugely difficult to implement internally though:

  - notify-connection is already used to send notifications about what user connections 
exist. the same api could be used to send a notification that 'backend x is down'. but a 
single "connection refused" probably shouldn't bring down the host without at 
least a few tries within several seconds.. removal would be done by setting vhost_count=0
  - adding hosts back up automatically would require more code in director 
where it would automatically try to connect to them every once in a while. 
probably save the pre-removal vhost count and then add it back with that vhost 
count.
  - the proxy itself should also have some code to deal with connect failures 
by doing another passdb lookup a while after sending the 'host is down' 
notification and then reconnecting to the new host.
  - then some settings how long to try to connect to a backend until it's 
declared dead. either a hanging connect(), hanging existing connections or 
connect() refused attempts tried for that long time.

I think this new funcionalities would be perfect (necessary ;-) ) for a 
complete load balanced/high availability mail system.

I am not aware of a way to get Dovecot to output the director ring status.
That would be nice though, to be able to list the directors and how many
connections they're each proxying.

Yeah. Any good naming ideas for the doveadm director command? :)

something like doveadm director servers  ?!?!

Xavier



Re: [Dovecot] dovecot director service

2010-07-08 Thread Xavier Pons

 El 08/07/2010 10:00, Oliver Eales escribió:

Am 08.07.2010 09:31, schrieb Xavier Pons:

 El 07/07/2010 13:35, Timo Sirainen escribió:

this limitation does not allow use the same two directors servers 
like mail backend servers?
You can install two Dovecot instances on the same server (set 
different base_dir for them), one as director and another as mail 
server. A bit annoying to have two of them, but it should work.
I suppouse, this require to have different IPs address for every 
instance?
the fairlure of one director server it's automatically detected or 
require manual intervention?
It's automatically detected. I've only simulated it with software, 
but you could also try it by actually pulling the network plug out. :)
If I have different dovecot instances on same host, one like proxy 
and another like mail backend, the director service will detect both 
failures of

director service like of backend servers? or only detect the first one?


You will have to build some kind of HA environment in front of the 
proxys. If you just use DNS round-robin for connects to the proxy 
server (the instance) client connection attempts to this particular 
server will fail. The director service is only for user-stickyness 
(and HA) between the 1st and the 2nd tier. Most common use would be in 
a NFS storage backend.


Yes, we will have two hardware balancers in front of proxies. Thus,  the 
director service will detect failures of backend servers and not forward

sessions them? how detects if a  backend server it's alive or not?
The command 'doveadm director status', gives information about status of 
backend mailservers or of director servers?

Sorry for so many questions ...

Thanks
Xavier



Re: [Dovecot] dovecot director service

2010-07-08 Thread Xavier Pons

 El 07/07/2010 13:35, Timo Sirainen escribió:


this limitation does not allow use the same two directors servers like mail 
backend servers?

You can install two Dovecot instances on the same server (set different 
base_dir for them), one as director and another as mail server. A bit annoying 
to have two of them, but it should work.

I suppouse, this require to have different IPs address for every instance?

the fairlure of one director server it's automatically detected or require 
manual intervention?
It's automatically detected. I've only simulated it with software, but you 
could also try it by actually pulling the network plug out. :)
If I have different dovecot instances on same host, one like proxy and 
another like mail backend, the director service will detect both failures of

director service like of backend servers? or only detect the first one?

thanks

Xavier


[Dovecot] dovecot director service

2010-07-07 Thread Xavier Pons

 hi,
we are using the dovecot-rc1 version, and we are testing the director 
service,

as there is little documentation on this service, a pair of questions..

if i'm not wrong, the proxy_maybe it's not implemented, yet? will be soon?
this limitation does not allow use the same two directors servers like 
mail backend servers?
the fairlure of one director server it's automatically detected or 
require manual intervention?


thanks and sorry for so many questions...

Xavier



Re: [Dovecot] Replacing real inbox by virtual inbox

2010-06-28 Thread François-Xavier Payet
Sorry, I forgot my dovecot -n. Here it is : 

# 1.2.11: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-bpo.4-amd64 x86_64 Debian 5.0.5 ext3
log_timestamp: %Y-%m-%d %H:%M:%S 
protocols: imaps managesieve
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(managesieve): /usr/lib/dovecot/managesieve-login
mail_privileged_group: mail
mail_location: maildir:/var/vmail/%d/%n/Maildir
mbox_write_locks: fcntl dotlock
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(managesieve): /usr/lib/dovecot/managesieve
mail_plugins(default): virtual
mail_plugins(imap): virtual
mail_plugins(managesieve): 
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(managesieve): /usr/lib/dovecot/modules/managesieve
namespace:
 type: private
 inbox: yes
 list: yes
 subscriptions: yes
namespace:
 type: private
 separator: .
 prefix: virtual.
 location: virtual:/var/vmail/%d/%n/Maildir/virtual
 list: yes
 subscriptions: yes
lda:
 log_path: /var/vmail/dovecot-deliver.log
 auth_socket_path: /var/run/dovecot/auth-master
 postmaster_address: f...@da-foux-server.tfdn.org
 mail_plugins: sieve virtual
auth default:
 mechanisms: plain login
 passdb:
 driver: sql
 args: /etc/dovecot/dovecot-sql.conf
 userdb:
 driver: passwd
 userdb:
 driver: static
 args: uid=5000 gid=5000 home=/var/vmail/%d/%n allow_all_users=yes
 socket:
 type: listen
 client:
 path: /var/spool/postfix/private/auth
 mode: 432
 master:
 path: /var/run/dovecot/auth-master
 mode: 384
 user: vmail
plugin:
 sieve: /var/vmail/%d/%n/sieve
 sieve_dir: /var/vmail/%d/%n/.sieve

-- 
François-Xavier Payet
fx.pa...@tfdn.org
Jabber : fx.pa...@tfdn.org

On Mon, 28 Jun 2010 15:30:07 +0200, François-Xavier Payet wrote:  

Hello, 

I'm using dovecot 1.2.11 with virtual folders. I'd like to replace my real
INBOX by a virtual one but I have several questions : 

* will my mail still be delivered to my real INBOX?
* will I be able to access my real INBOX, for example using a virtual
folder reliyng on INBOX
* and, how to do it.

Here's my problem, if I look to the wiki page [2], I don't really
understand what the _NAMESPACE_1_INBOX_ and the _NAMESPACE_2_INBOX_ stands
for. Plus, I can't put my paths in my scripts, as they use %d and %u (see
below) which, if I understand correctly, aren't available for
PostLoginScripts. 

Thanks for your help,  
-- 
François-Xavier Payet
fx.pa...@tfdn.org
Jabber : fx.pa...@tfdn.org
  

Links:
--
[2] http://wiki.dovecot.org/Plugins/Virtual


[Dovecot] Replacing real inbox by virtual inbox

2010-06-28 Thread François-Xavier Payet


Hello, 

I'm using dovecot 1.2.11 with virtual folders. I'd like to
replace my real INBOX by a virtual one but I have several questions : 

*
will my mail still be delivered to my real INBOX?
* will I be able to
access my real INBOX, for example using a virtual folder reliyng on INBOX

* and, how to do it.

Here's my problem, if I look to the wiki page [1], I
don't really understand what the _NAMESPACE_1_INBOX_ and the
_NAMESPACE_2_INBOX_ stands for. Plus, I can't put my paths in my scripts,
as they use %d and %u (see below) which, if I understand correctly, aren't
available for PostLoginScripts. 

Thanks for your help,  
--

François-Xavier Payet
fx.pa...@tfdn.org
Jabber : fx.pa...@tfdn.org



Links:
--
[1] http://wiki.dovecot.org/Plugins/Virtual


Re: [Dovecot] Panic with mail_log activated

2010-06-03 Thread Xavier Pons

El 03/06/2010 11:37, Pascal Volk escribió:

On 06/03/2010 10:08 AM Xavier Pons wrote:
   

You're right!
Here is the output of doveconf -n:

# 2.0.beta5: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.18-164.11.1.el5 x86_64 Red Hat Enterprise Linux Server
release 5.4 (Tikanga)
…
log_path = /var/log/dovecot.log
mail_access_groups = vmail
mail_gid = 96
mail_location = maildir:~/Maildir
mail_nfs_index = yes
mail_nfs_storage = yes
mail_plugins = acl quota mail_log notify
mail_privileged_group = mail
mail_uid = 96
maildir_stat_dirs = yes
mmap_disable = yes
namespace {
   inbox = yes
   location =
   prefix =
   separator = /
   type = private
}
namespace {
   hidden = no
   inbox = no
   list = children
   location = maildir:%%h/Maildir:INDEX=~/Maildir/shared/%%n/
   prefix = shared/%%n/
   separator = /
   subscriptions = no
   type = shared
}
namespace {
   hidden = no
   list = children
   location = maildir:/home/vmail/public/:INDEX=~/Maildir/public
   prefix = public/
   separator = /
   subscriptions = no
   type = public
}
…
plugin {
   acl = vfile
   acl_shared_dict = file:/home/vmail/dovecot/shared-mailboxes
   mail_log_events = delete undelete expunge copy mailbox_delete
mailbox_rename
   mail_log_fields = uid box msgid size
   mail_log_group_events = no
   quota = maildir:User quota
   quota_rule = *:storage=1G
   quota_rule2 = Trash:storage=100M
   quota_warning = storage=80%% /usr/bin/quota-warning.sh 80
   sieve = ~/.dovecot.sieve
   sieve_dir = ~/sieve
}
…
protocol lda {
   info_log_path = /var/log/dovecot-deliver.log
   log_path = /var/log/dovecot-deliver-errors.log
   mail_plugins = $mail_plugins sieve
}
…
 

Please stop top-posting.

Hm, I'm not using namespaces, ACLs or NFS.
The mail_log plugin is working fine so far. Tested with dovecot-lda and
imap. Also for an account with userdb filed 'mail=maildir:~/Maildir'.
This are my settings; doveconf -n -m mail -x:

# 2.0.beta5 (3b25ca20f005): /usr/local/dovecot20/etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-3-amd64 x86_64 Debian squeeze/sid
debug_log_path = /usr/local/dovecot20/var/log/dovecot.debug
info_log_path = /usr/local/dovecot20/var/log/dovecot.info
log_path = /usr/local/dovecot20/var/log/dovecot.log
mail_debug = yes
mail_location = mdbox:~/mdbox:ALT=~/alt_mdbox
mail_plugins = mail_log notify
plugin {
   mail_log_events = delete undelete expunge copy mailbox_delete
mailbox_rename
   mail_log_fields = uid box msgid size
   quota = dict:user::proxy::quota
   quota_rule = *:storage=10M:messages=40
   quota_rule2 = Trash:storage=+50%%
   sieve = ~/.dovecot.sieve
   sieve_dir = ~/sieve
}
protocol lda {
   info_log_path = /usr/local/dovecot20/var/log/dovecot-lda.info
   log_path = /usr/local/dovecot20/var/log/dovecot-lda.log
   mail_plugins = mail_log notify sieve
}
protocol lmtp {
   mail_plugins = mail_log notify sieve
}

Your dovecot-deliver.log and dovecot-deliver-errors.log are writable for
the user with uid 96? Any SELinux warnings in your logs?
Can update to the latest code from the hg repo and try again?


Regards,
Pascal
   
Yes, the vmail user (uid 96) has permitions to write on 
dovecot-deliver.log and dovecot-deliver-errors.log.
The mail_login plugin is working normally, but at sporadic periods dump 
this kind of errors and refuse to deliver the mail.
I don't have the SELinux enabled in this machine, and don't have any 
warnings/errors in other log files.


Now, I haven't used the hg repository sources, but I could try with the 
last version...


Thanks,
Xavier







Re: [Dovecot] Panic with mail_log activated

2010-06-03 Thread Xavier Pons

You're right!
Here is the output of doveconf -n:

# 2.0.beta5: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.18-164.11.1.el5 x86_64 Red Hat Enterprise Linux Server 
release 5.4 (Tikanga)

auth_socket_path = /var/run/dovecot/auth-userdb
auth_verbose = yes
base_dir = /var/run/dovecot/
first_valid_uid = 96
lock_method = dotlock
log_path = /var/log/dovecot.log
mail_access_groups = vmail
mail_gid = 96
mail_location = maildir:~/Maildir
mail_nfs_index = yes
mail_nfs_storage = yes
mail_plugins = acl quota mail_log notify
mail_privileged_group = mail
mail_uid = 96
maildir_stat_dirs = yes
mmap_disable = yes
namespace {
 inbox = yes
 location =
 prefix =
 separator = /
 type = private
}
namespace {
 hidden = no
 inbox = no
 list = children
 location = maildir:%%h/Maildir:INDEX=~/Maildir/shared/%%n/
 prefix = shared/%%n/
 separator = /
 subscriptions = no
 type = shared
}
namespace {
 hidden = no
 list = children
 location = maildir:/home/vmail/public/:INDEX=~/Maildir/public
 prefix = public/
 separator = /
 subscriptions = no
 type = public
}
passdb {
 args = /etc/dovecot/dovecot-ldap-pass.conf.ext
 driver = ldap
}
passdb {
 args = scheme=plain username_format=%n /etc/dovecot/imap.passwd
 driver = passwd-file
}
plugin {
 acl = vfile
 acl_shared_dict = file:/home/vmail/dovecot/shared-mailboxes
 mail_log_events = delete undelete expunge copy mailbox_delete 
mailbox_rename

 mail_log_fields = uid box msgid size
 mail_log_group_events = no
 quota = maildir:User quota
 quota_rule = *:storage=1G
 quota_rule2 = Trash:storage=100M
 quota_warning = storage=80%% /usr/bin/quota-warning.sh 80
 sieve = ~/.dovecot.sieve
 sieve_dir = ~/sieve
}
postmaster_address = xavier.p...@uib.es
protocols = imap pop3 managesieve
sendmail_path = /usr/lib/sendmail
service auth {
 unix_listener auth-userdb {
   group = vmail
   mode = 0660
 }
}
service imap-login {
 inet_listener imap {
   port = 143
 }
 inet_listener imaps {
   port = 993
   ssl = yes
 }
}
service managesieve-login {
 inet_listener managesieve {
   port = 4190
 }
}
service pop3-login {
 inet_listener pop3 {
   port = 110
 }
 inet_listener pop3s {
   port = 995
   ssl = yes
 }
}
ssl = required
ssl_cert =  imap_capability = IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE 
ACL RIGHTS=texk QUOTA

 imap_client_workarounds = delay-newmail netscape-eoh
 mail_max_userip_connections = 10
 mail_plugins = $mail_plugins imap_acl imap_quota
}
protocol managesieve {
 mail_max_userip_connections = 10
 mail_plugins =
 managesieve_implementation_string = Dovecot
 managesieve_max_line_length = 65536
 managesieve_sieve_capability = fileinto reject
}
protocol pop3 {
 mail_max_userip_connections = 3
 mail_plugins = $mail_plugins
 pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
}

Thanks

Xavier


Pascal Volk escribió:

On 06/03/2010 09:47 AM Xavier Pons wrote:
  

Hi,
We get intermitend deliver-errors when we have activated the mail_log 
plugin.

The installed version  is dovecot-2.0-beta5.
Below, the error we get:

Jun 02 21:58:11 lda(x...@uib.es): Panic: file mail-log-plugin.c: line 364 
(mail_log_mail_transaction_commit): assertion failed: (ret)
Jun 02 21:58:11 lda(x...@uib.es): Error: Raw backtrace: 
/usr/lib/dovecot/libdovecot.so.0 [0x31c4a35dd0] -> 
/usr/lib/dovecot/libdovecot.so.0(default_fatal_handler+0x37) 
[0x31c4a35eb7] -> /usr/lib/dovecot/libdovecot.so.0 [0x31c4a352f8] -> 
/usr/lib/dovecot/lib20_mail_log_plugin.so [0x2ba85f9a6369] -> 
/usr/lib/dovecot/lib15_notify_plugin.so(notify_contexts_mail_transaction_commit+0x76) 
[0x2ba85f7a3716] -> /usr/lib/dovecot/lib15_notify_plugin.so 
[0x2ba85f7a3b49] -> 
/usr/lib/dovecot/libdovecot-storage.so.0(mailbox_transaction_commit_get_changes+0x3d) 
[0x31c4e2d5bd] -> 
/usr/lib/dovecot/libdovecot-lda.so.0(mail_deliver_save+0x255) 
[0x31c5205585] -> 
/usr/lib/dovecot/libdovecot-lda.so.0(mail_deliver+0xd3) [0x31c5205903] 
-> /usr/libexec/dovecot/deliver(main+0x63a) [0x402c0a] -> 
/lib64/libc.so.6(__libc_start_main+0xf4) [0x324d01d994] -> 
/usr/libexec/dovecot/deliver [0x402509]


it's a bug or a misconfiguration?



As long as you don't provide `doveconf -n` output, I'm sure it's a
configuration issue. ;-)


Regards,
Pascal
  




[Dovecot] Panic with mail_log activated

2010-06-03 Thread Xavier Pons

Hi,
We get intermitend deliver-errors when we have activated the mail_log 
plugin.

The installed version  is dovecot-2.0-beta5.
Below, the error we get:

Jun 02 21:58:11 lda(x...@uib.es): Panic: file mail-log-plugin.c: line 364 
(mail_log_mail_transaction_commit): assertion failed: (ret)
Jun 02 21:58:11 lda(x...@uib.es): Error: Raw backtrace: 
/usr/lib/dovecot/libdovecot.so.0 [0x31c4a35dd0] -> 
/usr/lib/dovecot/libdovecot.so.0(default_fatal_handler+0x37) 
[0x31c4a35eb7] -> /usr/lib/dovecot/libdovecot.so.0 [0x31c4a352f8] -> 
/usr/lib/dovecot/lib20_mail_log_plugin.so [0x2ba85f9a6369] -> 
/usr/lib/dovecot/lib15_notify_plugin.so(notify_contexts_mail_transaction_commit+0x76) 
[0x2ba85f7a3716] -> /usr/lib/dovecot/lib15_notify_plugin.so 
[0x2ba85f7a3b49] -> 
/usr/lib/dovecot/libdovecot-storage.so.0(mailbox_transaction_commit_get_changes+0x3d) 
[0x31c4e2d5bd] -> 
/usr/lib/dovecot/libdovecot-lda.so.0(mail_deliver_save+0x255) 
[0x31c5205585] -> 
/usr/lib/dovecot/libdovecot-lda.so.0(mail_deliver+0xd3) [0x31c5205903] 
-> /usr/libexec/dovecot/deliver(main+0x63a) [0x402c0a] -> 
/lib64/libc.so.6(__libc_start_main+0xf4) [0x324d01d994] -> 
/usr/libexec/dovecot/deliver [0x402509]


it's a bug or a misconfiguration?

thanks

Xavier


[Dovecot] test of mailing list

2009-05-27 Thread Carlos Xavier

Im sendding messages to the list and they do not show up.

its just a test, please ignore

Regards,
Carlos Xavier.


[Dovecot] Dovecot and Phpgroupware compatibility

2009-05-27 Thread Carlos Xavier

Hi,
I am resending this email, since the fist one didn't hit the list.
Recently we moved our server from mbox format to Maildir format and started 
using Dovecot.
Almost all the users are very happy with this, since the speed had increased 
very much.
I used mb2md to do the conversion and on this task all the mailboxes that 
had "." (dot)

on their names were converted to "_".

But there is one issue with this, we also use the webmail that comes with 
Phpgroupware,
and it uses some mailbox that have fixed named like INBOX.Sent, INBOX.Draft 
and so on.
When their names were changed the sent messages didn't get saved anymore, so 
I had to move

them back to the old names.

After that the sent messages returned to be saved again, but another trouble 
showed up.
As they start with .INBOX and have "." on the names, Dovecot shown them as a 
subdirectory

of the INBOX and we got some people upset with this.

I need help on configuring Dovecot to not show them this way, because if you 
reed the .INBOX.Sent
either on the webmail or by Outlook, the field displayed is the sender, 
witch is not desired.


When I did the conversion, to keep the compatibility with the old server 
(quota, avoid I/O bottleneck, etc), I set
two Maildirs, one at /var/spool/mail/$USER, to be the INBOX and another at 
the user home.


We are using Dovecot version 1.1.13, and below is the relevant configuration 
on use.


namespace public {
  prefix = "#mbox/"
  separator = /
  inbox = yes
  list = no
  location= maildir:/var/spool/mail/%u/:CONTROL=~/control:INDEX=~/control
}

namespace private {
  separator = /
  prefix =
  location= maildir:~/Maildir/:CONTROL=~/control:INDEX=~/control
  inbox = no
}

Best Regards,
Carlos Xavier. 



[Dovecot] Dovecot and Phpgroupware compatibility

2009-05-27 Thread Carlos Xavier
Hi,
recently moved our server from mbox format to Maildir format.
Almost all the users are very happy with this, since the speed had increased 
very much.
I used mb2md to do the conversion and on this task all the mailboxes that had 
"." (dot)
on their names were converted to "_".

But there is one issue with this, we also use the webmail that comes with 
Phpgroupware,
and it uses some mailbox that have fixed named like INBOX.Sent, INBOX.Draft and 
so on.
When their names were changed the sent messages didn't get saved anymore, so I 
had to move
them back to the old names.

After that the sent messages returned to be saved again, but another troube 
showed up.
As they start with .INBOX and have "." on the names, Dovecot shown them as a 
subdirectory
of the INBOX and we got some people upset with this.

I need help on configuring Dovecot to not show them this way, because if you 
look the .INBOX.Sent
either on the webmail or by outlook, the field displayed is the sender, witch 
is not desired.

When I did the conversion, to keep the compatibility with the old server 
(quota, avoid I/O botleneck, etc), I set 
two Maildirs, one at /var/spool/mail/$USER, to be the INBOX and another at the 
user home. 

We are using Dovecot version 1.1.13, and below is the relevant configuration on 
use.

namespace public {
   prefix = "#mbox/"
   separator = /
   inbox = yes
   list = no
   location= maildir:/var/spool/mail/%u/:CONTROL=~/control:INDEX=~/control
}

namespace private {
   separator = /
   prefix =
   location= maildir:~/Maildir/:CONTROL=~/control:INDEX=~/control
   inbox = no
}

Best Regards,
Carlos Xavier.

Re: [Dovecot] compile error with patched dovecot-1.2.rc4

2009-05-20 Thread Carlos Xavier



From: "Timo Sirainen" 



Makefile had changed. You need to run "autoreconf -i" and configure to
get it updated.


Tank you very much for the way fast reply :-)


[Dovecot] compile error with patched dovecot-1.2.rc4

2009-05-20 Thread Carlos Xavier

Hi,
I just downloaded the dovecot-1.2.rc4.tar.gz to do some tests.
I coud compile it and generate the package with no trouble on my Slackware 
12.2.0


Then as I wanted to try the patchs available at 
http://hg.dovecot.org/dovecot-1.2/#
I downloaded them and applied at once. When I tried to compile once again I 
got this error:


cmd-thread.o: In function `cmd_thread':
cmd-thread.c:(.text+0x219): undefined reference to `mail_thread_type_parse'
../../src/lib-storage/libstorage.a(mail-search-build.o): In function 
`search_arg_build':
mail-search-build.c:(.text+0x10b9): undefined reference to 
`mail_thread_type_parse'

collect2: ld returned 1 exit status
make[3]: *** [imap] Error 1
make[3]: Leaving directory `/usr/local/src/dovecot-1.2.rc4/src/imap'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/dovecot-1.2.rc4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/dovecot-1.2.rc4'
make: *** [all] Error 2

I removed the patched folder and untarred it again, but at this time I 
decided to apply
one patch at time just to see witch one gave me the trouble. When the first 
set of
patch ( http://hg.dovecot.org/dovecot-1.2/rev/d42a8623a008 ) was applied I 
got the same error.


Just to confirm it was this set of patch, I applied all the other set of 
patchs leaving that one

not applied and the compilation went out with no trouble.

As im not a expert so I am sending this report to the list in order to get 
it fixed.


Best Regards,
Carlos Xavier.




[Dovecot] SIEVE resources ?

2008-12-14 Thread Xavier Maillard
Hi,

Do you any good SIEVE resources for a poor beginnner ? I'd to
translate some of my current procmail rules into SIEVE. I have,
for example, a "generic" rule that is able to sort almost any
message from/to a mailing-list into a dedicated folder -i.e one
rule for almost all my lists.

Any recomendation ?

Thank you



Re: [Dovecot] Mailbox name

2008-12-14 Thread Xavier Maillard

Darren Pilgrim a écrit :


INBOX/list/org/gnu/help-gnu-emacs

The problem is Dovecot is telling me that this mailbox name is
invalid.

What can I do ?


Folders are dot-separated, not slash-separated (i.e., 
INBOX.list.org.gnu.help-gnu-emacs).

Argh ! My bad.

Thank you, it works much better with the dot-notation.

Xavier



[Dovecot] Mailbox name

2008-12-14 Thread Xavier Maillard
Hi,

I am using SIEVE to filter/sort my incoming mails.

I am subscribed to tens of mailing lists and I would like to file
messages into folder of this pattern:

INBOX/list///

So for example help-gnu-em...@gnu.org would be filed under:

INBOX/list/org/gnu/help-gnu-emacs

The problem is Dovecot is telling me that this mailbox name is
invalid.

What can I do ?

Cheers



Re: [Dovecot] Dovecot 1.1.4 / Maildir++ quota and move to trash

2008-10-18 Thread Xavier Beaudouin


Le 18 oct. 08 à 19:54, Timo Sirainen a écrit :


On Sat, 2008-10-18 at 19:12 +0200, Xavier Beaudouin wrote:

I have tried the method to add more space especialy for Trash...

No luck...

On logfile I have :

Oct 18 19:09:42 mail01 dovecot: IMAP([EMAIL PROTECTED]): copy: uid=183,
dest=Trash, msgid=<[EMAIL PROTECTED]>, size=999
Oct 18 19:09:42 mail01 dovecot: Fatal: IMAP([EMAIL PROTECTED]): trash:
Namespace not found for mailbox 'Trash'

..

Query: COPY 183 "INBOX.Trash"


So, apparently your only namespace has "INBOX." prefix and you've
configured trash plugin with "Trash" mailbox. You should have  
configured
it to use "INBOX.Trash" instead. The same goes for quota  
configuration.



I did, but this doesn't fix the problem as well...

/Xavier

Re: [Dovecot] Dovecot 1.1.4 / Maildir++ quota and move to trash

2008-10-18 Thread Xavier Beaudouin


Le 18 oct. 08 à 13:55, Timo Sirainen a écrit :


On Fri, 2008-10-17 at 17:38 +0200, Ralf Hildebrandt wrote:

* Xavier Beaudouin <[EMAIL PROTECTED]>:

Hello,

Seems there is some nasty problems with Dovecot 1.1.4...

We use Maildir++ quota, and when moving mail to Trash, Dovecot  
just drop

the connection... when the maildir is overquota.


Same here!


I guess you mean those crashes you've been reporting?


I have tried the method to add more space especialy for Trash...

No luck...

On logfile I have :

Oct 18 19:09:42 mail01 dovecot: IMAP([EMAIL PROTECTED]): copy: uid=183,  
dest=Trash, msgid=<[EMAIL PROTECTED]>, size=999
Oct 18 19:09:42 mail01 dovecot: Fatal: IMAP([EMAIL PROTECTED]): trash:  
Namespace not found for mailbox 'Trash'


And on the imap client (Squirrelmail) :

ERREUR : Connexion interrompue par le serveur IMAP. (French : server  
has closed the connection

Query: COPY 183 "INBOX.Trash"

:/

/Xavier

[Dovecot] Dovecot 1.1.4 / Maildir++ quota and move to trash

2008-10-17 Thread Xavier Beaudouin

Hello,

Seems there is some nasty problems with Dovecot 1.1.4...

We use Maildir++ quota, and when moving mail to Trash, Dovecot just  
drop the connection... when the maildir is overquota.


Is there any way to avoid that and just move the mail to the trash  
allowing user to expunge their mail easily without calling support to  
do rm -rf Maildir/cur ?


Thanks,
/Xavier

smime.p7s
Description: S/MIME cryptographic signature


[Dovecot] Dovecot / FreeBSD / Nfs mailstore / Index=memory

2008-03-19 Thread Xavier Beaudouin

Hello,

I have recently changed imap from Courier-imap to dovecot because of  
serial problems with courier-imap, I have being forced to do it very  
quickly... and without extensives tests.


I have 3 mails servers (freebsd based) behind a load balancer and a  
nfs mailstore on a netapp.


On my first tests I have setup the index into some nfs shared mount,  
but it seems that some imap clients are going mad when deleting files  
(mostly because they do open some new imap connection and the index  
was not clean) so I have changed index to memory.


This has fixed one of my problems.

Now I have some strange problems is that NFS activity passed from  
about... 5mbps to more than 70Mpbs...


Is there any reasons about that ?

OS: FreeBSD 6.2-p11 / x86
Dovecot : 1.0.13 (freebsd ports)
Auth: ldap based

Nfs mail spool :
filer:/vol/vol0/mail   /var/mailusers  nfs  
rw,nfsv3,mntudp,bg,noatime,nolockd  0 0


Thanks,
/Xavier


[Dovecot] Sent / Drafts / Trash folders and subscribing ?

2007-09-17 Thread Xavier Beaudouin

Hello,

I am trying to migrate our configuration that use Courier-imap to dovecot, 
appart some users that have some issues with pop and leave messages on 
servers that retreive all mails into their mailboes... but this is ok for 
me :)..


One problem that it seems that Sent / Drafts and Trash folder are not 
automaticaly added as subscribed folder...


I really dunno about IMAP rfc or standard, I just want to know if this is 
considered as normal for dovecot ?


Thanks,
/Xavier

--
Xavier Beaudouin - http://oav.net/


Re: [Dovecot] Dovecot / OS X 10.4 Mail.app and "Too Many Opened files" error message ?

2007-09-14 Thread Xavier Beaudouin

(replying to myself)

After a long time, the OS X client say error : "Too Many opened  
files".


Seems that OS X has stupidly low number of files that can be opened...

$ ulimit -a
[...]
open files(-n) 256

On my MacBook Pro

This is bloody low

So I've figured to change this limit globaly, but it seems that OS X  
don't have any limits.conf or default values


This kinda strange..

So I decided to do some local fixe for Mail.app  only :

in /Applications/Mail.app/Contents/MacOS/
$ sudo mv Mail Mail.orig
and ...
Create a Mail file with this following content :
#!/bin/sh

# thanks to http://www.amug.org/~glguerin/howto/More-open-files.html

# To understand this, read 'man sh' below "substring processing".
# This can also be accomplished with the 'dirname' command,
# but it may not be installed.
here="${0%/*}"

# This should be the name of your native Java-app's executable.
cmd='Mail.orig'

# Set all desired soft-limits here.  See 'ulimit' in 'man sh'.
ulimit -S -n 1000

# Execute the Java-app in the current process.  See 'exec' in 'man sh'.
exec "$here/$cmd" "$@"

$ sudo chmod +x Mail

and this all...

FYI Mail.app is really strange thing

$ lsof | grep Mail.orig | wc -l
150

Mostly all libraries and TCP connection to mail server...

Maybe this can be added to Wiki even if it is not too mutch dovecot  
related, but can be usefull for people like me that does have lots of  
mail


/Xavier



smime.p7s
Description: S/MIME cryptographic signature


[Dovecot] Dovecot / OS X 10.4 Mail.app and "Too Many Opened files" error message ?

2007-09-14 Thread Xavier Beaudouin

Hello,

I am trying to move from Courier-imap to dovecot

Even if the processes to move logical (eg name spaces etc...) went  
very and without any problem, I've some etrange behavior when Imap  
client is Mac OS X Mail.app.


I've got a big mailbox that have about 3 / 4G of mail in several  
folder (lots !!!)...


After a long time, the OS X client say error : "Too Many opened files".

I have check on the servers (a FreeBSD farm of 3 servers using  
freebsd ports of dovecot)...


And nothing special...

A question : why do I have never this kind of message on courier imap  
and why do I get this on dovecot... ?


Configuration file on demand... if needed...

THanks,
/Xavier

smime.p7s
Description: S/MIME cryptographic signature


Re: [Dovecot] Quota warning message ala courier

2007-05-22 Thread Xavier Beaudouin

Hi there,

On Mon, 21 May 2007, Ralf Hildebrandt wrote:


I have to face it, my users are retards:


Every one have such users... :)


* either they're using crap MUAs which will not display their quota to them
* or they're using POP with "leave mail on server" and will never
 notice their quota, unless it's too late
* and once their quota is exceeded, their mails will bounce -- they'll
 never notice that, though.

Thus I need a feature in dovecot that will tell them via email:

Level1: "You ALMOST exceeded your quota, you're at 90% now"
Level2: "You're very close to exceededin your quota, you're at 95% now"
Level3: "Would you please clean up now? You're at 99% now"


Personaly I do that using lmtp (http://pll.sf.net/) that does this kind of 
warning.


Since lmtpd is also a lmtp client, it can reply with a temp fail (eg 450) 
to postfix for several days Avoiding bounces...


/Xavier