Re: Repo for ubuntu focal 20.04 LTS

2020-10-02 Thread spamvoll
Hi,

any news on this ?


Am Di., 12. Mai 2020 um 07:41 Uhr schrieb Aki Tuomi <
aki.tu...@open-xchange.com>:

>
> > On 12/05/2020 07:48 Sébastien Riccio  wrote:
> >
> >
> > Hello Dovecot,
> > As the new ubuntu LTS 20.04 seems to be out, I would like to ask if
> there are any plans to add a repo like it already exists for 18.04 LTS.
> > We planned to upgrade our 18.04 LTS boxes to 20.04. It has it’s own
> dovecot packages (2.3.7 at the time of writing this), but I would prefer we
> use your repositories like we do with 18.04.
> > Kind regards,
> > Sébastien
>
> Hi!
>
> It's on our list of things, but can't give a date or release yet.
>
> Aki
>


Re: Dovecot on Ubuntu 20.04

2020-08-21 Thread spamvoll
packages from repo.dovecot. org ;)

Am Fr., 21. Aug. 2020 um 13:28 Uhr schrieb :

> Hi,
>
> sorry I should be more specific.
> I'm on Ubuntu 18.04 and using the latest packages from repo.dovecot.com
>
> But these are only available for bionic, not focal.
> So I'm not sure if the bionic packages are working under focal.
>
> I did not notice that ubuntu original packages are on 2.3.7 now.
> So worst thing will be that after the upgrade to focal i need to downgrade
> to 2.3.7 original ubuntu repo packages
>
> Hans
>
> Am Fr., 21. Aug. 2020 um 06:41 Uhr schrieb Aki Tuomi <
> aki.tu...@open-xchange.com>:
>
>>
>> > On 21/08/2020 07:18 Plutocrat  wrote:
>> >
>> >
>> > On 21/08/2020 02.53, spamv...@googlemail.com wrote:
>> > > is anyone using the "Bionic (18.04 LTS)" packages on
>> Focal Fossa (20.04 LTS) ?
>> > > I'm not sure if its working after the upgrade
>> >
>> > Not quite sure what you're saying here, but if you ran the "sudo
>> do-release-upgrade -d" command, then it will have upgraded your dovecot
>> packages to the current version of Ubuntu 20.
>> >
>> >
>> https://packages.ubuntu.com/search?suite=default=all=any=dovecot-core=names
>> >
>> > If I read that correctly, your dovecot version will have jumped from
>> 2.2.33 to 2.3.7
>> > What does "apt-cache policy dovecot-core" say?
>> >
>> > Usually, during the upgrade it will ask you if you want to keep the
>> existing configuration. Generally a good idea to do that (!) and then
>> review the config afterwards for possible changes. Some items will be
>> introduced, some will be depracated.
>> >
>> > Maybe others in this forum can comment on any major changes between
>> 2.2.33 and 2.3.7.
>> >
>> > Any clues in the logs? /var/log/dovecot.log, and 'systemctl status
>> dovecot'
>> >
>> > P.
>>
>> https://doc.dovecot.org/installation_guide/upgrading/from-2.2-to-2.3/
>>
>> Aki
>>
>


Re: Dovecot on Ubuntu 20.04

2020-08-21 Thread spamvoll
Hi,

sorry I should be more specific.
I'm on Ubuntu 18.04 and using the latest packages from repo.dovecot.com

But these are only available for bionic, not focal.
So I'm not sure if the bionic packages are working under focal.

I did not notice that ubuntu original packages are on 2.3.7 now.
So worst thing will be that after the upgrade to focal i need to downgrade
to 2.3.7 original ubuntu repo packages

Hans

Am Fr., 21. Aug. 2020 um 06:41 Uhr schrieb Aki Tuomi <
aki.tu...@open-xchange.com>:

>
> > On 21/08/2020 07:18 Plutocrat  wrote:
> >
> >
> > On 21/08/2020 02.53, spamv...@googlemail.com wrote:
> > > is anyone using the "Bionic (18.04 LTS)" packages on
> Focal Fossa (20.04 LTS) ?
> > > I'm not sure if its working after the upgrade
> >
> > Not quite sure what you're saying here, but if you ran the "sudo
> do-release-upgrade -d" command, then it will have upgraded your dovecot
> packages to the current version of Ubuntu 20.
> >
> >
> https://packages.ubuntu.com/search?suite=default=all=any=dovecot-core=names
> >
> > If I read that correctly, your dovecot version will have jumped from
> 2.2.33 to 2.3.7
> > What does "apt-cache policy dovecot-core" say?
> >
> > Usually, during the upgrade it will ask you if you want to keep the
> existing configuration. Generally a good idea to do that (!) and then
> review the config afterwards for possible changes. Some items will be
> introduced, some will be depracated.
> >
> > Maybe others in this forum can comment on any major changes between
> 2.2.33 and 2.3.7.
> >
> > Any clues in the logs? /var/log/dovecot.log, and 'systemctl status
> dovecot'
> >
> > P.
>
> https://doc.dovecot.org/installation_guide/upgrading/from-2.2-to-2.3/
>
> Aki
>


Dovecot on Ubuntu 20.04

2020-08-20 Thread spamvoll
Hi,

is anyone using the "Bionic (18.04 LTS)" packages on  Focal Fossa (20.04
LTS) ?
I'm not sure if its working after the upgrade

Hans


Re: CentOS 8 packages available

2020-08-14 Thread spamvoll
Any news about Ubuntu 20.04 support ?

Am Mi., 12. Aug. 2020 um 15:26 Uhr schrieb Aki Tuomi :

> We are happy to announce that we have CentOS 8 packages available
> starting from v2.3.11.3. You can find these packages at
> https://repo.dovecot.org/
>
> Regards,
> Aki Tuomi
> Open-Xchange oy
>
>


Re: BUG: dsync and folder names with "@"

2020-02-20 Thread spamvoll
Hello,

the Webside says report bug to the Mailing List, but no reactions so far.

This Bug is really easy to reproduce.. just create a folder like an email
address "s...@mydom.net" and run a dsync backup.
It failes every time when it comes to that folder, if I delete that folder
it runs smoothly

Hans

Am So., 26. Jan. 2020 um 05:25 Uhr schrieb :

> Hello,
>
> dovecot version: 2.3.9.2
>
> When I use dsync:
> /usr/bin/dsync -v -D -o plugin/quota= -f -u m...@email.dom backup
> maildir:/tmp/mailbackup/Maildir
> it always stops when it comes to a folder with an "@" in its name.
> Error Message:
> Warning: Mailbox changes caused a desync. You may want to run dsync again:
> Remote lost mailbox GUID (maybe it was just deleted?)
>
> I dont know if it makes a difference, but my dovecot uses mdbox and the
> backup export is maildir.
>
> Hans
>


BUG: dsync and folder names with "@"

2020-01-25 Thread spamvoll
Hello,

dovecot version: 2.3.9.2

When I use dsync:
/usr/bin/dsync -v -D -o plugin/quota= -f -u m...@email.dom backup
maildir:/tmp/mailbackup/Maildir
it always stops when it comes to a folder with an "@" in its name.
Error Message:
Warning: Mailbox changes caused a desync. You may want to run dsync again:
Remote lost mailbox GUID (maybe it was just deleted?)

I dont know if it makes a difference, but my dovecot uses mdbox and the
backup export is maildir.

Hans


[SIEVE] pipe :copy to external program with arguments

2018-07-30 Thread spamvoll
Hi all,

quick questions about sieve pipe:
I want to pipe spam messages to an external program with additional
parameters

my spamlearn.sieve script:

require ["vnd.dovecot.pipe", "copy", "imapsieve"];
pipe :copy "mybin" ["-h 127.0.0.1:4" , "markspam"];

I also tried:
pipe :copy "mybin" ["-h 127.0.0.1:4 markspam"];
pipe :copy "mybin" ["-h 127.0.0.1:4"] ["markspam"];
pipe :copy :args ["-h 127.0.0.1:4 markspam"] "mybin" ;

It never executes correct, it always ends with:
Error: sieve: Execution of script /my/path/to/spamlearn.sieve failed

So whats the correct syntax ?

What works is a single argument:
pipe :copy "myscript" ["markspam"];

Dovecot Version 2.3.2.1


2.3.1 -> "doveadm backup -A" not working

2018-04-21 Thread spamvoll
Hi,

I'm running 2.3.1 and trying to do a backup.
Wiki and manpage showes that -A will backup all mailboxes.

It seems that
"doveadm -Dv backup -A mdbox:/mnt/BACKUP/DOVECOT/"
is saving each mailbox to " /mnt/BACKUP/DOVECOT/" but after finishing one,
its overwriting the data from the previous user. So it ends with only the
mails from the last user processed.

I tried %u but thats not recognized and used as String in the  path.

Hans


[Dovecot] Dovecot Backup

2011-07-31 Thread spamvoll
Hi..

are there any proofen Methods to backup all mail ?

shutting down dovecot and tar the hole dir?
using rsnapshot?

any hints / thoughts

im running dovecot2 on freebsd

Hans


[Dovecot] passwd userbase and multiple email adresses

2011-02-14 Thread spamvoll
Hi..

i want to use a passwd file for user configuration.. but how can i add
emailadresses(multiple) to those users ?
postfix - dovecot

passwd looks like:
test:{PLAIN}pass

there must be some kind of userdb right ? But i cant find any infos
about that on the wiki

Hans


Re: [Dovecot] passwd userbase and multiple email adresses

2011-02-14 Thread spamvoll
do i have to use the virtual_alias_maps for that ?

t...@example.com test
i...@example.com test
...

?


2011/2/15  spamv...@googlemail.com:
 Hi..

 i want to use a passwd file for user configuration.. but how can i add
 emailadresses(multiple) to those users ?
 postfix - dovecot

 passwd looks like:
 test:{PLAIN}pass

 there must be some kind of userdb right ? But i cant find any infos
 about that on the wiki

 Hans



Re: [Dovecot] Managesieve + Timeout

2010-12-22 Thread spamvoll
ok ill try to get a log that shows someting..

ive tested a few options..
when i enable process_count in 20-managesieve.conf i get a unknown setting

doveconf: Fatal: Error in configuration file
/etc/dovecot/conf.d/20-managesieve.conf line 30: Unknown setting:
process_count
doveconf: Error: managesieve-login: dump-capability process returned 89
doveconf: Fatal: Error in configuration file
/etc/dovecot/conf.d/20-managesieve.conf line 30: Unknown setting:
process_count



2010/12/21 Timo Sirainen t...@iki.fi:
 On 21.12.2010, at 21.41, Stephan Bosch wrote:

 Please reply to the mailinglist as well. I am not the only one who can help 
 you out.

 Op 21-12-2010 20:19, spamv...@googlemail.com schreef:
 Thunderbird 3.1.6 (Linux) with Sieve addon

 TLS auth happens and then a timeout is displayed

 Does the TLS auth succeed, or is that where it hangs? The Tbird add-on as 
 protocol logging facility, so you could check that to find out where it 
 hangs exactly.

 Dovecot always logs why a connection gets disconnected. If the problem is 
 with TLS, then it logs what function failed in what error message. If the 
 problem isn't with TLS, it logs something else.. In any case I can't give any 
 guesses until I see what the logout message is.




[Dovecot] Managesieve + Timeout

2010-12-21 Thread spamvoll
hi..

im using dovecot 2.0.7 on centos with Managesieve 0.2.1-12.1

from time to time my users get a timeout
im using default values and i dont see any errors in my logfiles..

any ideas what can caus the timeout ?


[Dovecot] default directory for sent,trash,..

2010-12-02 Thread spamvoll
hi..

is there any way to set default pathes for sent,trash and so on ?
Every Client that connects uses different dirs (Outlook, Thunderbird,
Android,..)

thx


Re: [Dovecot] dovecot-lda crash

2010-10-18 Thread spamvoll
check if that fix the issue
http://hg.dovecot.org/dovecot-2.0/rev/e2f9baa436f2


2010/10/18 Luca Palazzo luca.pala...@unict.it:
 Hi Timo and All,
 we had to revert back to LDA delivery instead of lmtp proxy (too buggy).
 We nare now experiencing process segfaults:

 [503564.305998] dovecot-lda[2415]: segfault at 48 ip b779e5b9 sp bfaf0ba8
 error 6 in libdovecot-storage.so.0.0.0[b774b000+b9000]
 [503615.786468] dovecot-lda[2405]: segfault at 48 ip b77815b9 sp bfc7fa58
 error 6 in libdovecot-storage.so.0.0.0[b772e000+b9000]
 [503615.928514] dovecot-lda[2244]: segfault at 48 ip b772c5b9 sp bff73e08
 error 6 in libdovecot-storage.so.0.0.0[b76d9000+b9000]
 [503617.161419] dovecot-lda[2953]: segfault at 48 ip b774f5b9 sp bfa48ec8
 error 6 in libdovecot-storage.so.0.0.0[b76fc000+b9000]
 [503618.649389] dovecot-lda[2857]: segfault at 48 ip b769a5b9 sp bff10838
 error 6 in libdovecot-storage.so.0.0.0[b7647000+b9000]
 [503624.711122] dovecot-lda[3178]: segfault at 48 ip b76cd5b9 sp bf9f0928
 error 6 in libdovecot-storage.so.0.0.0[b767a000+b9000]
 [503629.479673] dovecot-lda[3159]: segfault at 48 ip b76c05b9 sp bf910708
 error 6 in libdovecot-storage.so.0.0.0[b766d000+b9000]
 

 What information do you need to look at it?

 Thanks
 Luca



[Dovecot] Command died with signal 11: /usr/libexec/dovecot/dovecot-lda

2010-10-04 Thread spamvoll
Hi..

after upating from 2.0.1 to 2.0.4 postfix often reports errors when
deliveing mails to dovecot:

Undelivered Mail Returned to Sender -
Command died with signal 11: /usr/libexec/dovecot/dovecot-lda

anyone seens this before ?


Re: [Dovecot] Command died with signal 11: /usr/libexec/dovecot/dovecot-lda

2010-10-04 Thread spamvoll
hard to reproduce.. happens only with some mail.

with mail_debug = yes i cant see any errors, but the mail get
delivered 2 times ?

Oct  4 20:17:39 imap dovecot: lda(woe...@example.com): sieve:
msgid=374f9ab6-5153-47b3-bbfc-cde0705c5...@email.android.com: stored
mail into mailbox 'INBOX'
Oct  4 20:17:39 imap postfix/pipe[14085]: 411E6F5572:
to=woe...@example.com, relay=dovecot, delay=1,
delays=0.53/0.03/0/0.44, dsn=2.0.0, status=sent (delivered via dovecot
service)
Oct  4 20:17:40 imap postfix/pipe[14082]: 411E6F5572:
to=malte.woe...@example.com, relay=dovecot, delay=1.1,
delays=0.53/0.02/0/0.53, dsn=5.3.0, status=bounced (Command died with
signal 11: /usr/libexec/dovecot/dovecot-lda)

2010/10/4 Timo Sirainen t...@iki.fi:
 On Mon, 2010-10-04 at 14:36 +0200, spamv...@googlemail.com wrote:

 Undelivered Mail Returned to Sender -
 Command died with signal 11: /usr/libexec/dovecot/dovecot-lda

 Difficult to do anything about this without a gdb backtrace. Can you
 reproduce it by manually running dovecot-lda? If not, getting a core
 dump would be the next best way to get a backtrace.
 http://dovecot.org/bugreport.html





Re: [Dovecot] Command died with signal 11: /usr/libexec/dovecot/dovecot-lda

2010-10-04 Thread spamvoll
im not sure if i enabled core dumps

im using Centos 5.5
i echoed 'DAEMON_COREFILE_LIMIT=unlimited'  /etc/sysconfig/dovecot
and restarted dovecot
no core files

but i dont have any killed messages in my logs anyway
like: dovecot: Apr 23 11:16:05 Error: child 86116 (imap) killed with signal 11
only  (Command died with signal 11: /usr/libexec/dovecot/dovecot-lda)


2010/10/4  spamv...@googlemail.com:
 hard to reproduce.. happens only with some mail.

 with mail_debug = yes i cant see any errors, but the mail get
 delivered 2 times ?

 Oct  4 20:17:39 imap dovecot: lda(woe...@example.com): sieve:
 msgid=374f9ab6-5153-47b3-bbfc-cde0705c5...@email.android.com: stored
 mail into mailbox 'INBOX'
 Oct  4 20:17:39 imap postfix/pipe[14085]: 411E6F5572:
 to=woe...@example.com, relay=dovecot, delay=1,
 delays=0.53/0.03/0/0.44, dsn=2.0.0, status=sent (delivered via dovecot
 service)
 Oct  4 20:17:40 imap postfix/pipe[14082]: 411E6F5572:
 to=malte.woe...@example.com, relay=dovecot, delay=1.1,
 delays=0.53/0.02/0/0.53, dsn=5.3.0, status=bounced (Command died with
 signal 11: /usr/libexec/dovecot/dovecot-lda)

 2010/10/4 Timo Sirainen t...@iki.fi:
 On Mon, 2010-10-04 at 14:36 +0200, spamv...@googlemail.com wrote:

 Undelivered Mail Returned to Sender -
 Command died with signal 11: /usr/libexec/dovecot/dovecot-lda

 Difficult to do anything about this without a gdb backtrace. Can you
 reproduce it by manually running dovecot-lda? If not, getting a core
 dump would be the next best way to get a backtrace.
 http://dovecot.org/bugreport.html






Re: [Dovecot] Authentication with lower case username ONLY

2010-09-15 Thread spamvoll
check http://wiki2.dovecot.org/Variables - Modifiers

You can apply a modifiers for each variable (e.g. %Us = POP3):

* %L - lowercase
* %U - uppercase

2010/9/15 Leander S. i...@netocean.de:
  Hi,

 how do you guys force your users to authenticate with lower case letters
 ONLY? Or convert it?
 Is there a SASL Option to force that - or are you using scripts i.e. a bash
 script in combination with the command tr ... or a third solution I didn't
 think of yet?


 I'm using Postfix / Dovecot combination. Postfix is told to use Dovecots
 SASL Service to authenticate it's users.
 For my outgoing eMails I already wrote a script with tr which forms upercase
 usernames to lowercase ones ... but it's not enough. SpamAssassin is still
 confused and writes uppercase letters in it's Database etc. ... So that's
 why I'm looking for a more universal solution.


 P.S. I would basically prefer a convertation - but I would also be fine with
 a forced lower case auth system.



 Thanks  Regards



[Dovecot] cant see public mailbox

2010-09-07 Thread spamvoll
hi..

im running dovecot 2.0.1

sharing mailboxes works like a charm, but now im trying to create a
public undetected-SPAM folder.
thunderbird shows the public namespace but no mailboxes.
ive created the public folder and did a mkdir for the folder..
after that doesnt work ive created cur,new,tmp in .undetected-SPAM

/home/MAILBOXES/public# ls -al
drwx--  3 vmail vmail   74  7. Sep 14:23 .
drwxr-xr-x 57 vmail vmail 4096  7. Sep 14:23 ..
-rw---  1 vmail vmail0  7. Sep 14:23 dovecot-acl-list
-rwx--  1 vmail vmail0  7. Sep 13:19 dovecot-shared
drwx--  5 vmail vmail   36  7. Sep 14:17 .undetected-SPAM

doveconf -n
mail_location = maildir:~/mail
namespace {
  inbox = yes
  location =
  prefix =
  separator = /
  type = private
}
namespace {
  list = children
  location = maildir:%%h/mail:INDEX=~/mail/shared/%%u
  prefix = shared/%%u/
  separator = /
  subscriptions = no
  type = shared
}
namespace {
  list = children
  location = maildir:/home/MAILBOXES/public:INDEX=~/mail/public
  prefix = public/
  separator = /
  subscriptions = no
  type = public
}

any ideas ?

Hans


Re: [Dovecot] cant see public mailbox

2010-09-07 Thread spamvoll
ok acl problem..

ive created a dovecot-acl with
anyone
authenticated lrswi

now i can see the mailbox

2010/9/7  spamv...@googlemail.com:
 hi..

 im running dovecot 2.0.1

 sharing mailboxes works like a charm, but now im trying to create a
 public undetected-SPAM folder.
 thunderbird shows the public namespace but no mailboxes.
 ive created the public folder and did a mkdir for the folder..
 after that doesnt work ive created cur,new,tmp in .undetected-SPAM

 /home/MAILBOXES/public# ls -al
 drwx--  3 vmail vmail   74  7. Sep 14:23 .
 drwxr-xr-x 57 vmail vmail 4096  7. Sep 14:23 ..
 -rw---  1 vmail vmail    0  7. Sep 14:23 dovecot-acl-list
 -rwx--  1 vmail vmail    0  7. Sep 13:19 dovecot-shared
 drwx--  5 vmail vmail   36  7. Sep 14:17 .undetected-SPAM

 doveconf -n
 mail_location = maildir:~/mail
 namespace {
  inbox = yes
  location =
  prefix =
  separator = /
  type = private
 }
 namespace {
  list = children
  location = maildir:%%h/mail:INDEX=~/mail/shared/%%u
  prefix = shared/%%u/
  separator = /
  subscriptions = no
  type = shared
 }
 namespace {
  list = children
  location = maildir:/home/MAILBOXES/public:INDEX=~/mail/public
  prefix = public/
  separator = /
  subscriptions = no
  type = public
 }

 any ideas ?

 Hans



[Dovecot] sieve + homedirectory

2010-09-01 Thread spamvoll
hi..

system: dovecot 2.0.1 + pigenhole

my global sieve script is used but my users sieve scrips not.
the user scripts arent even compiled.
so i think the problem is with the home path

im using ldap as userdb (ive tryed staticdb but i need the uid from my
ldap, path is /home/MAILBOXES/hpeter/mail)
user_attrs = 
homeDirectory=home=/home/MAILBOXES/%$/,uid=mail=maildir:/home/MAILBOXES/%$/mail
user_filter = 
((objectClass=gosaMailAccount)(|(mail=%u)(gosaMailAlternateAddress=%u)(uid=%u)))

in sieve i use:
sieve_dir = ~/sieve

any ideas ?
all mails are stored correctly

Hans


Re: [Dovecot] sieve + homedirectory

2010-09-01 Thread spamvoll
ok solved it

user_attrs = uid=home=/home/MAILBOXES/%$/,home=mail=maildir:~/mail

thx

2010/9/1  spamv...@googlemail.com:
 hi..

 system: dovecot 2.0.1 + pigenhole

 my global sieve script is used but my users sieve scrips not.
 the user scripts arent even compiled.
 so i think the problem is with the home path

 im using ldap as userdb (ive tryed staticdb but i need the uid from my
 ldap, path is /home/MAILBOXES/hpeter/mail)
 user_attrs = 
 homeDirectory=home=/home/MAILBOXES/%$/,uid=mail=maildir:/home/MAILBOXES/%$/mail
 user_filter = 
 ((objectClass=gosaMailAccount)(|(mail=%u)(gosaMailAlternateAddress=%u)(uid=%u)))

 in sieve i use:
 sieve_dir = ~/sieve

 any ideas ?
 all mails are stored correctly

 Hans



Re: [Dovecot] permissions on auth-userdb

2010-08-31 Thread spamvoll
The Question is if that Process needs to be root or not.
And as long as i dont know whos talking to that process and why it
runs as default as root i wouldnt touch it.

It would make sense if its running as root when userdb is pam to
access the files or its running as root because noone should have root
rights and so noone can read the whole userdb.
In that last case it would be really bad to switch the user from root
to vmail :)

In my case all mails are stored with user vmail, maybe user vmail
needs to be able to read the hole db

I dont know :) If someone know, let me know
Hans


2010/8/31 Egbert Jan van den Bussche egb...@vandenbussche.nl:
 Op 31-8-2010 2:13, spamv...@googlemail.com schreef:

 Hi..

 im still trying to upgrade to 2.0.
 Im getting:
 dovecot: lda: Error: userdb lookup:
 connect(/var/run/dovecot/auth-userdb) failed: Permission denied
 (euid=1(vmail) egid=1(vmail) missing +r perm:
 /var/run/dovecot/auth-userdb, euid is not dir owner)

 the error is correct caus its owned by root. My Questions is who should
 own it ?
 Im not sure how that works, what process/user calls the auth-userdb ?
 The auth-userdb returns the args generated in master.conf, right ?

 i think comment out the user and group setting in master.conf will fix
 it but im not sure if that is the securest way.

 the mails come from postfix via dovecot-lda

 Hans

 master.conf
 service auth {
   # auth_socket_path points to this userdb socket by default. It's
 typically
   # used by dovecot-lda, doveadm, possibly imap process, etc. Its default
   # permissions make it readable only by root, but you may need to relax
 these
   # permissions. Users that have access to this socket are able to get a
 list
   # of all usernames and get results of everyone's userdb lookups.
   unix_listener auth-userdb {
     mode = 0600
     #user = vmail
     #group = vmail
   }

 auth-ldap.conf.ext
 passdb {
   driver = ldap
   args = /etc/dovecot/dovecot-ldap.conf.ext
 }
 userdb {
   driver = static
   args = uid=vmail gid=vmail home=/home/MAILBOXES/%u/
 mail=/home/MAILBOXES/%u/mail
 }

 Had more or less the same fight with 1.2.9. I had to change auth user to the
 group 'shadow' (if /etc/shadow is owned by group shadow). Or run auth under
 the default user  'root'.

 In your case it has to do with the passdb and/or userdb you use. In my case
 I had the problems with local users via pam.

 HTH
 Egbert Jan



[Dovecot] permissions on auth-userdb

2010-08-30 Thread spamvoll
Hi..

im still trying to upgrade to 2.0.
Im getting:
dovecot: lda: Error: userdb lookup:
connect(/var/run/dovecot/auth-userdb) failed: Permission denied
(euid=1(vmail) egid=1(vmail) missing +r perm:
/var/run/dovecot/auth-userdb, euid is not dir owner)

the error is correct caus its owned by root. My Questions is who should own it ?
Im not sure how that works, what process/user calls the auth-userdb ?
The auth-userdb returns the args generated in master.conf, right ?

i think comment out the user and group setting in master.conf will fix
it but im not sure if that is the securest way.

the mails come from postfix via dovecot-lda

Hans

master.conf
service auth {
  # auth_socket_path points to this userdb socket by default. It's typically
  # used by dovecot-lda, doveadm, possibly imap process, etc. Its default
  # permissions make it readable only by root, but you may need to relax these
  # permissions. Users that have access to this socket are able to get a list
  # of all usernames and get results of everyone's userdb lookups.
  unix_listener auth-userdb {
mode = 0600
#user = vmail
#group = vmail
  }

auth-ldap.conf.ext
passdb {
  driver = ldap
  args = /etc/dovecot/dovecot-ldap.conf.ext
}
userdb {
  driver = static
  args = uid=vmail gid=vmail home=/home/MAILBOXES/%u/
mail=/home/MAILBOXES/%u/mail
}


[Dovecot] LDAP static userdb

2010-08-27 Thread spamvoll
hi..

im just testing 2.0 before upgrading to v1.2 :)

in auth-ldap.conf.ext i found

# If you don't have any user-specific settings, you can avoid the userdb LDAP
# lookup by using userdb static instead of userdb ldap, for example:
# doc/wiki/UserDatabase.Static.txt
#userdb {
  #driver = static
  #args = uid=vmail gid=vmail home=/var/vmail/%u
#}

On 1.2 im using LDAP lookup and everthing works like a charm.
user_attrs = homeDirectory=home,uid=mail=maildir:/home/MAILBOXES/%$/mail

On 2.0 is now tried to use this option cause all my mail are stored in
/home/MAILBOXES/%uid/mail
userdb {
  driver = static
  args = uid=vmail gid=vmail home=/home/MAILBOXES/%u/mail
}

and that doesnt work
log say:
dovecot: imap(hpeter): Error: user hpeter: Initialization failed:
mail_location not set and autodetection failed: Mail storage
autodetection failed with home=/home/MAILBOXES/hpeter/mail

Hans


Re: [Dovecot] LDAP static userdb

2010-08-27 Thread spamvoll
no idea if it matters but
the static userdb sets only the home=.
is it possible to set home= and mail=
because both souldnt be the same as Timo mentioned a few days ago

2010/8/27  spamv...@googlemail.com:
 hi..

 im just testing 2.0 before upgrading to v1.2 :)

 in auth-ldap.conf.ext i found

 # If you don't have any user-specific settings, you can avoid the userdb LDAP
 # lookup by using userdb static instead of userdb ldap, for example:
 # doc/wiki/UserDatabase.Static.txt
 #userdb {
  #driver = static
  #args = uid=vmail gid=vmail home=/var/vmail/%u
 #}

 On 1.2 im using LDAP lookup and everthing works like a charm.
 user_attrs = homeDirectory=home,uid=mail=maildir:/home/MAILBOXES/%$/mail

 On 2.0 is now tried to use this option cause all my mail are stored in
 /home/MAILBOXES/%uid/mail
 userdb {
  driver = static
  args = uid=vmail gid=vmail home=/home/MAILBOXES/%u/mail
 }

 and that doesnt work
 log say:
 dovecot: imap(hpeter): Error: user hpeter: Initialization failed:
 mail_location not set and autodetection failed: Mail storage
 autodetection failed with home=/home/MAILBOXES/hpeter/mail

 Hans



Re: [Dovecot] LDAP static userdb

2010-08-27 Thread spamvoll
ive added
args = uid=vmail gid=vmail home=/home/MAILBOXES/%u/ mail=/home/MAILBOXES/%u/mail

and it work.

Im not really sure about the hole LDAP thing :)

my conf:
uris = ldaps://ldap.example.org:636
dn = cn=dovecot server,ou=people,ou=Server,dc=example,dc=org
dnpass = hiddenpw
auth_bind = yes
ldap_version = 3
base = dc=example,dc=org
scope = subtree
user_attrs = homeDirectory=home,uid=mail=maildir:/home/%$/mail
user_filter = 
((objectClass=gosaMailAccount)(|(mail=%u)(gosaMailAlternateAddress=%u)(uid=%u)))
pass_attrs = uid=user,userPassword=password
pass_filter = ((objectClass=gosaMailAccount)(uid=%u))

(yea on 1.2 my home was /home/%uid but that suxx and i want to move it
to /home/MAILBOXES/%uid)

1) I have a user that can read the PW so i dont need auth_bind = yes, right?
2) user_* and pass_* i dont need them anymore cause its always:
home=/home/MAILBOXES/%u/
mail=/home/MAILBOXES/%u/mail





2010/8/27 Mihajlin Evgenij skywor...@ooobadm.dp.ua:
 В сообщении от 27 августа 2010 17:32:04 автор spamv...@googlemail.com написал:

  log say:
  dovecot: imap(hpeter): Error: user hpeter: Initialization failed:
  mail_location not set and autodetection failed: Mail storage
  autodetection failed with home=/home/MAILBOXES/hpeter/mail

 may be try to set into 10-mail.conf or in namespace private (if you have such)
 mail_localtion = ~/Maildir




[Dovecot] imap + sa-learn on second Server

2010-07-21 Thread spamvoll
hi..

im using two Server.. A smtp. and a imap. host

anyone know an easy way to sa-learn (on smtp.) the imap spam folder on (imap.)

thx
Hans


Re: [Dovecot] imap_acl for CentOS

2010-05-17 Thread spamvoll
can anyone provide a howto share mailboxes using acl's ?

i already setup private and shared namespace, but i have no idea how
to share a mailbox because no mailclient support the setacl command

2010/5/17 Thomas Leuxner t...@leuxner.net:
 On Mon, May 17, 2010 at 10:04:23AM -0300, Andrés Gattinoni wrote:
 I sent an email a couple of days ago asking about a problem with ACL.
 The bottom line was, I think, that I'm missing imap_acl plugin.
 I installed Dovecot 1.0.7 using yum in CentOS 5.4.
 Do you know where can I get the imap_acl plugin lib?

 The IMAP ACL Extension was introduced in release 1.2. Therefore you need
 to upgrade to that, which you should do anyway due to the outdated package:

 http://wiki.dovecot.org/ACL

 Regards
 Thomas



[Dovecot] Shared mailboxes

2010-05-14 Thread spamvoll
Hi..

can anyone give me a hind how to setup shared mailboxes.
I've already created the shared and private namespace.

But ive no idea how to share a mailbox.
Thunderbird and most other Clients seem not to support the setacl command.

so do i have to create a plaintext file with
user=theldapuseriwanttosharemybox rw ?

thx
Hans


[Dovecot] dovecot-sieve and ldap user

2010-01-30 Thread spamvoll
hi..

im running dovecor 1.2.10 and dovecot-sieve 0.1.15

protocol lda {
..
  mail_plugins = sieve
}
plugin {
...
   sieve = ~/.dovecot.sieve
   sieve_dir = ~/sieve
}

cat .dovecot.sieve
require fileinto;
if header :contains subject [VIRUS] {
fileinto VIRUS;
} else {
keep;
}

But mails dont get moved.
I use the master.cf to get postfix to use deliver

dovecot unix-   n   n   -   10  pipe
  flags=DRhu user=vmail:vmail argv=/usr/libexec/dovecot/deliver -d ${recipient}

dovecot -n
# 1.2.10: /etc/dovecot.conf
# OS: Linux 2.6.18-164.10.1.el5 i686 CentOS release 5.4 (Final)
protocols: imaps
ssl: required
login_dir: /var/run/dovecot/login
login_executable: /usr/libexec/dovecot/imap-login
first_valid_uid: 1
last_valid_uid: 1
first_valid_gid: 1
last_valid_gid: 1
mail_uid: vmail
mail_gid: vmail
lda:
  postmaster_address: postmas...@example.com
  mail_plugins: sieve
  auth_socket_path: /var/run/dovecot/auth-master
auth default:
  passdb:
driver: ldap
args: /etc/dovecot-ldap.conf
  userdb:
driver: passwd
  userdb:
driver: ldap
args: /etc/dovecot-ldap.conf
  socket:
type: listen
master:
  path: /var/run/dovecot/auth-master
  mode: 384
  user: vmail
  group: vmail
plugin:
  sieve: ~/.dovecot.sieve
  sieve_dir: ~/sieve

Does the sieve plugin use the home_dir returned from the ldap ?
And is it ok to use the deliver in master.cf and or do i have to set
mailbox_command = /usr/lib/dovecot/deliver
?


[Dovecot] when does dovecot create a mailbox

2010-01-22 Thread spamvoll
hi..

im using ldap. what happens when i add a new ldap user and that user
tryes to login to dovecot ?
does dovecot create the mailbox on first login? or do i have to send a
mail first ?

thx


[Dovecot] ldap login with userid

2010-01-22 Thread spamvoll
hi..

Dovecot Version 1.2.9

im trying to login to dovecot with my ldap uid.

currently im using:
user_attrs = homeDirectory=home,uid=mail=maildir:/mail/%$
user_filter = 
((objectClass=gosaMailAccount)(|(mail=%u)(gosaMailAlternateAddress=%u)))
to match the mailaddress and deliver the mail to the users homdir
(/mail/uid_of_the_user)

But i cant login to dovecot:
pass_attrs = uid=user,userPassword=password
pass_filter = ((objectClass=gosaMailAccount)(uid=%u))

the Log:
Jan 22 17:21:51 testimap dovecot: auth(default): client in:
AUTH1   PLAIN   service=imapsecured lip=10.0.0.15   rip=10.0.0.20   
lport=993   rport=36879
Jan 22 17:21:51 testimap dovecot: auth(default): client out: CONT   1   
Jan 22 17:21:51 testimap dovecot: auth(default): client in:
CONT1   AG1zbWlhdGVrAHRpYWFrdGVuZXI=
Jan 22 17:21:51 testimap dovecot: auth(default):
ldap(myuser,10.0.0.20): bind search: base=dc=example,dc=com
filter=((objectClass=gosaMailAccount)(uid=myuser))
Jan 22 17:21:51 testimap dovecot: auth(default):
ldap(myuser,10.0.0.20): result: uid(user)=myuser
Jan 22 17:21:51 testimap dovecot: auth(default): client out: OK 1   
user=myuser
Jan 22 17:21:51 testimap dovecot: auth(default): master in: REQUEST 1   
25411
Jan 22 17:21:51 testimap dovecot: auth(default):
passwd(myuser,10.0.0.20): lookup
Jan 22 17:21:51 testimap dovecot: auth(default):
passwd(myuser,10.0.0.20): unknown user
Jan 22 17:21:51 testimap dovecot: auth(default):
ldap(myuser,10.0.0.20): user search: base=dc=example,dc=com
scope=subtree 
filter=((objectClass=gosaMailAccount)(|(mail=myuser)(gosaMailAlternateAddress=myuser)))
fields=homeDirectory,uid
Jan 22 17:21:51 testimap dovecot: auth(default):
ldap(myuser,10.0.0.20): Unknown user
Jan 22 17:21:51 testimap dovecot: auth(default):
userdb(myuser,10.0.0.20): user not found from any userdbs
Jan 22 17:21:51 testimap dovecot: auth(default): master out: NOTFOUND   1
Jan 22 17:21:51 testimap dovecot: imap-login: Internal login failure
(auth failed, 1 attempts): user=myuser, method=PLAIN, rip=10.0.0.20,
lip=10.0.0.15, TLS

any ideas ?


[Dovecot] ldap and mail_location

2010-01-21 Thread spamvoll
hi..

im running dovecot 1.2.9 and checking against an openldap.
i defined in dovecot.conf mail_location = maildir:/mail/%u

and now all mails are stored under /mail/my.e...@mydomain.com

how can i store them in /mail/ldapuid ?

these userdb and passdb settings drive me crazy..
looks like ldap is a bigger thing then i thougt :)

thx


Re: [Dovecot] ldap and mail_location

2010-01-21 Thread spamvoll
hi again..

user_filter = 
((objectClass=gosaMailAccount)(|(mail=%u)(gosaMailAlternateAddress=%u)))

this works to check if the account is valid but i cant figure out how
to set the maillocation
i think this is done in user_attrs
but no idea how to use the uid. i tryed user_attrs =
home=maildir:/mail/%uid but that did not work.
i tryed also to add a (..(uid=%uid)) to the user_filter but no luck..

any hinds or tips




2010/1/21  spamv...@googlemail.com:
 hi..

 im running dovecot 1.2.9 and checking against an openldap.
 i defined in dovecot.conf mail_location = maildir:/mail/%u

 and now all mails are stored under /mail/my.e...@mydomain.com

 how can i store them in /mail/ldapuid ?

 these userdb and passdb settings drive me crazy..
 looks like ldap is a bigger thing then i thougt :)

 thx



Re: [Dovecot] ldap and mail_location

2010-01-21 Thread spamvoll
ok.. sry for spam..

figured it out..

user_attrs = homeDirectory=home,uid=mail=maildir:/mail/%$

2010/1/21  spamv...@googlemail.com:
 hi again..

 user_filter = 
 ((objectClass=gosaMailAccount)(|(mail=%u)(gosaMailAlternateAddress=%u)))

 this works to check if the account is valid but i cant figure out how
 to set the maillocation
 i think this is done in user_attrs
 but no idea how to use the uid. i tryed user_attrs =
 home=maildir:/mail/%uid but that did not work.
 i tryed also to add a (..(uid=%uid)) to the user_filter but no luck..

 any hinds or tips




 2010/1/21  spamv...@googlemail.com:
 hi..

 im running dovecot 1.2.9 and checking against an openldap.
 i defined in dovecot.conf mail_location = maildir:/mail/%u

 and now all mails are stored under /mail/my.e...@mydomain.com

 how can i store them in /mail/ldapuid ?

 these userdb and passdb settings drive me crazy..
 looks like ldap is a bigger thing then i thougt :)

 thx