Re: Dsync config help

2016-08-30 Thread Jean-Luc Wasmer

Hi,

I'm trying to sync emails between server A and B.
A has replicator, aggregator and doveadm.
B only has doveadm for now.

I'm getting the following error:

Error: sync: /var/run/dovecot/auth-userdb: Configured passdbs don't 
support credentials lookups (to see if user is proxied, because 
doveadm_port is set)


I'm not sure why I'm getting this error because I authenticate using PAM 
and when I run
I do have a "service auth" enabled though... it's used for Postfix SASL 
to authenticate SMTP.


I'm running

# dovecot --version
2.2.24 (a82c823)


Cheers,
Jean-Luc


PS: "replication_sync_timeout = 2s" doesn't work, I had to drop the 's'


On 2016-08-28 17:43, Jean-Luc Wasmer wrote:

Hi,


I’m having a hard time with the http://wiki2.dovecot.org/Replication
 page.


- for a master-master setup, does the configuration need to be
mirrored on both masters?



- after aggregating unrelated sections of the wiki page, there seems
to be 3 different values for “mail_replica":
- "remote”: for SSH
- “remoteprefix": for SSH wrapper
- “tcp”: for TCP connection using the Doveadm protocol
Is this correct?


- what’s the purpose of the replicator VS aggregator VS doveadm 
services?

Who talks to who? Where can I find documentation about their
configuration (i.e. not examples)


- most examples are for a single vmail user setup… what should be done
when using system accounts?


Thanks,
Jean-Luc


index: namespace not selectable, and no info. :(

2016-08-30 Thread Larry Rosenman
thebighonker.lerctr.org ~ $ doveadm -D -v index \#ARCHIVE/2012/02/INBOX
Debug: Loading modules from directory: /usr/local/lib/dovecot
Debug: Module loaded: /usr/local/lib/dovecot/lib15_notify_plugin.so
Debug: Module loaded: /usr/local/lib/dovecot/lib20_fts_plugin.so
Debug: Module loaded: /usr/local/lib/dovecot/lib21_fts_lucene_plugin.so
Debug: Module loaded: /usr/local/lib/dovecot/lib90_stats_plugin.so
Debug: Loading modules from directory: /usr/local/lib/dovecot/doveadm
Debug: Skipping module doveadm_acl_plugin, because dlopen() failed:
/usr/local/lib/dovecot/doveadm/lib10_doveadm_acl_plugin.so: Undefined
symbol "acl_user_module" (this is usually intentional, so just ignore this
message)
Debug: Skipping module doveadm_expire_plugin, because dlopen() failed:
/usr/local/lib/dovecot/doveadm/lib10_doveadm_expire_plugin.so: Undefined
symbol "expire_set_lookup" (this is usually intentional, so just ignore
this message)
Debug: Skipping module doveadm_quota_plugin, because dlopen() failed:
/usr/local/lib/dovecot/doveadm/lib10_doveadm_quota_plugin.so: Undefined
symbol "quota_user_module" (this is usually intentional, so just ignore
this message)
Debug: Module loaded:
/usr/local/lib/dovecot/doveadm/lib10_doveadm_sieve_plugin.so
Debug: Module loaded:
/usr/local/lib/dovecot/doveadm/lib20_doveadm_fts_lucene_plugin.so
Debug: Module loaded:
/usr/local/lib/dovecot/doveadm/lib20_doveadm_fts_plugin.so
doveadm(ler): Debug: Effective uid=1001, gid=1001, home=/home/ler
doveadm(ler): Debug: Namespace inbox: type=private, prefix=, sep=,
inbox=yes, hidden=no, list=yes, subscriptions=yes
location=mbox:~/mail:INBOX=~/mail/INBOX
doveadm(ler): Debug: fs: root=/home/ler/mail, index=, indexpvt=, control=,
inbox=/home/ler/mail/INBOX, alt=
doveadm(ler): Debug: Namespace archive: type=private, prefix=#ARCHIVE/,
sep=/, inbox=no, hidden=no, list=no, subscriptions=yes
location=mbox:~/MAILARCHIVE
doveadm(ler): Debug: mbox: INBOX defaulted to /home/ler/MAILARCHIVE/inbox
doveadm(ler): Debug: fs: root=/home/ler/MAILARCHIVE, index=, indexpvt=,
control=, inbox=/home/ler/MAILARCHIVE/inbox, alt=
doveadm(ler): Error: lucene: Failed to sync mailbox INBOX: Mailbox isn't
selectable
doveadm(ler): Error: Mailbox #ARCHIVE/2012/02/INBOX: Status lookup failed:
Internal error occurred. Refer to server log for more information.
[2016-08-30 13:41:57]

NOTHING additional is logged in syslog.

doveconf -n attached.

I **CAN** select the mailbox in mutt using #ARCHIVE/2012/02/INBOX


-- 
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 214-642-9640 (c) E-Mail: larry...@gmail.com
US Mail: 17716 Limpia Crk, Round Rock, TX 78664-7281


dc.n
Description: Binary data


Re: Automatic purging of old email in all mailboxes

2016-08-30 Thread Scott W. Sander
I have now set those (with some modifications detailed below) in
/etc/dovecont/conf.d/10-mail.conf:

mail_uid=vmail
mail_uid=vmail
mail_home=/var/mail/vhosts/%d/%n
mail_location=maildir:/var/mail/vhosts/%d/$n

I made these changes relative to your suggestion to more closely match my
original settings.

After doing that, I modified /etc/dovecot/conf.d/auth-passwdfile.conf.ext
and commented out the userdb block.  After doing sudo service dovecot
reload, I was having the same problem as I was originally when I ran sudo
doveadm search -A NEW:

Error: User listing returned failure
doveadm: Error: Failed to iterate through some users

I went back in and added the following userdb block to
/etc/dovecot/conf.d/auth-passwdfile.conf.ext:

userdb {
  driver = passwd-file
  args = /etc/dovecot/dovecot-users
}

After doing another sudo service dovecot reload and then trying sudo
doveadm search -A NEW, I now get new errors:

doveadm(testu...@domain.test): Info: User no longer exists, skipping
doveadm(pfus...@domain.test): Info: User no longer exists, skipping

So at least I'm getting closer as it does see the two Dovecot mailbox
accounts I have in /etc/dovecot/dovecot-users, but it is acting like the
user doesn't exist for some reason.  Any more ideas?  I did not modify the
/etc/dovecot/dovecot-users file at all from my previous description.  Do I
need to modify that to include, at the very least, a uid (vmail), gid
(vmail), and userdb_mail locaiton
(userdb_mail=maildir:/var/mail/vhosts/%d/%n)?

On Tue, Aug 30, 2016 at 12:33 PM Aki Tuomi  wrote:

> You can provide those defaults with
>
> mail_uid=vmail
> mail_gid=vmail
> mail_home=/var/mail/vhosts/%d/%u
> mail_location=Maildir:~/maildir
>
> global settings.
>
> And then you can remove userdb block completely.
>
> Aki
>
> > On August 30, 2016 at 7:02 PM "Scott W. Sander" 
> wrote:
> >
> >
> > Forgive me, I'm a novice.  Consider that today I have already set up a
> > working postfix + Dovecot server with userdb using the static driver and
> > passdb using a password file (in the format :{hashing
> > algorithm}).  The Dovecot server has several mailboxes
> which
> > are already in use today.
> >
> > I understand that I'll need to change over to using the passwd-file
> driver
> > in order to get doveadm mailbox iteration working.  That said, can
> someone
> > please explain how I could migrate over from the static to passwd-file
> > without causing disruption to the existing mailboxes?  Do I need to just
> > add some more information to my Dovecot password file (namely the uid,
> gid,
> > and mailbox home location)?  If so, can I still use the "vmail" uid and
> gid
> > for all mailbox users that I was using with the static driver
> configuration?
> >
> > Sorry, when I followed the setup guide I did, I did not realize it would
> > prevent me from being able to use doveadm expunge -A and doveadm search
> -A.
> >
> > Thank you!
> >
> > On Tue, Aug 30, 2016 at 1:07 AM Stefán Tamás  wrote:
> >
> > > 2016. 08. 29, hétfő keltezéssel 19.40-kor Scott W. Sander ezt írta:
> > >
> > > > userdb {
> > > >   args = uid=vmail gid=vmail home=/var/mail/vhosts/%d/%n
> > > >   driver = static
> > > > }
> > >
> > > Use passwd-file driver to get iteration working. The static driver is
> > > can not be used for iteration.
> > >
> > >
> > > --
> > > Üdvözlettel
> > >
> > > Stefán Tamás
> > > - domain > email > web >>> siker
> > > Numex Informatika Kft.
> > > Mobil: +36 20 956 0233, Tel: +36 1 205 3915, Fax: +36 1 203 6037
> > > http://numex.hu
> > >
>


Re: Automatic purging of old email in all mailboxes

2016-08-30 Thread Aki Tuomi
You can provide those defaults with 

mail_uid=vmail
mail_gid=vmail
mail_home=/var/mail/vhosts/%d/%u
mail_location=Maildir:~/maildir

global settings.

And then you can remove userdb block completely.

Aki

> On August 30, 2016 at 7:02 PM "Scott W. Sander"  wrote:
> 
> 
> Forgive me, I'm a novice.  Consider that today I have already set up a
> working postfix + Dovecot server with userdb using the static driver and
> passdb using a password file (in the format :{hashing
> algorithm}).  The Dovecot server has several mailboxes which
> are already in use today.
> 
> I understand that I'll need to change over to using the passwd-file driver
> in order to get doveadm mailbox iteration working.  That said, can someone
> please explain how I could migrate over from the static to passwd-file
> without causing disruption to the existing mailboxes?  Do I need to just
> add some more information to my Dovecot password file (namely the uid, gid,
> and mailbox home location)?  If so, can I still use the "vmail" uid and gid
> for all mailbox users that I was using with the static driver configuration?
> 
> Sorry, when I followed the setup guide I did, I did not realize it would
> prevent me from being able to use doveadm expunge -A and doveadm search -A.
> 
> Thank you!
> 
> On Tue, Aug 30, 2016 at 1:07 AM Stefán Tamás  wrote:
> 
> > 2016. 08. 29, hétfő keltezéssel 19.40-kor Scott W. Sander ezt írta:
> >
> > > userdb {
> > >   args = uid=vmail gid=vmail home=/var/mail/vhosts/%d/%n
> > >   driver = static
> > > }
> >
> > Use passwd-file driver to get iteration working. The static driver is
> > can not be used for iteration.
> >
> >
> > --
> > Üdvözlettel
> >
> > Stefán Tamás
> > - domain > email > web >>> siker
> > Numex Informatika Kft.
> > Mobil: +36 20 956 0233, Tel: +36 1 205 3915, Fax: +36 1 203 6037
> > http://numex.hu
> >


Re: Automatic purging of old email in all mailboxes

2016-08-30 Thread Scott W. Sander
Forgive me, I'm a novice.  Consider that today I have already set up a
working postfix + Dovecot server with userdb using the static driver and
passdb using a password file (in the format :{hashing
algorithm}).  The Dovecot server has several mailboxes which
are already in use today.

I understand that I'll need to change over to using the passwd-file driver
in order to get doveadm mailbox iteration working.  That said, can someone
please explain how I could migrate over from the static to passwd-file
without causing disruption to the existing mailboxes?  Do I need to just
add some more information to my Dovecot password file (namely the uid, gid,
and mailbox home location)?  If so, can I still use the "vmail" uid and gid
for all mailbox users that I was using with the static driver configuration?

Sorry, when I followed the setup guide I did, I did not realize it would
prevent me from being able to use doveadm expunge -A and doveadm search -A.

Thank you!

On Tue, Aug 30, 2016 at 1:07 AM Stefán Tamás  wrote:

> 2016. 08. 29, hétfő keltezéssel 19.40-kor Scott W. Sander ezt írta:
>
> > userdb {
> >   args = uid=vmail gid=vmail home=/var/mail/vhosts/%d/%n
> >   driver = static
> > }
>
> Use passwd-file driver to get iteration working. The static driver is
> can not be used for iteration.
>
>
> --
> Üdvözlettel
>
> Stefán Tamás
> - domain > email > web >>> siker
> Numex Informatika Kft.
> Mobil: +36 20 956 0233, Tel: +36 1 205 3915, Fax: +36 1 203 6037
> http://numex.hu
>


Re: Sub addressing delimiters

2016-08-30 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, 29 Aug 2016, Timo Sirainen wrote:


For v2.3 (maybe early next year): 
https://git.dovecot.net/dovecot/core/commit/972c9172e9e6a0fc6053efb3d2ee9d354b67727f


is this an internal address?

$ host git.dovecot.net
Host git.dovecot.net not found: 3(NXDOMAIN)

- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEVAwUBV8WJ83z1H7kL/d9rAQLlbggAlTKNhRbBieDf/RoaVfIjCQZXv7wH+W9N
5gtu9/to5mw62I+3dtsyCF9Ui2YFm0AGTeOAyU8p//oYv34jttjBV4/OUL+U73QP
PDxo/1DiJly1YCAATl1KAlc4jlvjk99XRES0P7ykIznHPM9x4a5OmsH1OWLYq4SH
nEi5BqsfBCuoeY/xDM+bFZ4eLWXcNF1PHVIStp8eM7xWaGHUb5lE7YLsqf/x2187
Zsjhlj2xiHgXf1n55dWP2nkJmBHnZCieokcHOfA3fyBVdIogbt1jEwtFYShYinoi
X4j6zgLs6kJjbdY5ToD/3FG5ZYwPxihzah+lnO718HbNA0nPzycZGg==
=V1Oe
-END PGP SIGNATURE-


Re: Last Login Plugin with mysql

2016-08-30 Thread Adrian M
In the mean time I found this article:
https://siamogeek.com/2014/10/dovecot-sql-ultimo-login/ witch explains how
this could be done.
It is clear to me that I have to add a new column to the table, in order to
keep last login time.
I'm not sure what type of the filed will be: DATE, DATETIME or TIMESTAMP.

On Tue, Aug 30, 2016 at 3:14 PM, Philon  wrote:

> Hi Adrian
>
> it seems likely that what’s documented on the page you refer to just works…
>
>  in the configured >>dictionary<< <— follow the white rabbit eh blue link
>
> So I’d go replace:
>   last_login_dict = redis:host=127.0.0.1:port=6379
> with this:
>   last_login_dict = sql:my_sql_config_file.conf
>
> Please test it out as I myself haven’t used the plugin yet.
>
>
> Philon
>
> > Am 30.08.2016 um 13:59 schrieb Adrian M :
> >
> > Hello,
> > is it possible to use Last Login Plugin with mysql instead of redis ?
> > http://wiki2.dovecot.org/Plugins/LastLogin
> >
> > .--
> > Best regards,
> > Adrian Minta
>


autoexpunge clarification

2016-08-30 Thread Michael Fox
I'm trying to understand autoexpunge, but the documentation is just not
clear.  Hopefully, someone can clear up a few questions.

 

http://wiki.dovecot.org/MailboxSettings says the following:

 

autoexpunge=: (v2.2.20+) Automatically at user deinitialization
expunge all mails in this mailbox whose saved-timestamp is older than 
(e.g. autoexpunge=30d). This removes the need for expire plugin
  if you don't care that the
expunging may not always happen in time.

 

What does "at user deinitialization" mean?

 

What does "if you don't care that the expunging may not always happen in
time" mean?

 

I read the sub-bullets but they just aren't clear.  When exactly does
autoexpunge occur?

 

Thanks,

Michael

 


Re: Last Login Plugin with mysql

2016-08-30 Thread Philon
Hi Adrian

it seems likely that what’s documented on the page you refer to just works…

 in the configured >>dictionary<< <— follow the white rabbit eh blue link

So I’d go replace:
  last_login_dict = redis:host=127.0.0.1:port=6379
with this:
  last_login_dict = sql:my_sql_config_file.conf

Please test it out as I myself haven’t used the plugin yet.


Philon

> Am 30.08.2016 um 13:59 schrieb Adrian M :
> 
> Hello,
> is it possible to use Last Login Plugin with mysql instead of redis ?
> http://wiki2.dovecot.org/Plugins/LastLogin
> 
> .--
> Best regards,
> Adrian Minta


Last Login Plugin with mysql

2016-08-30 Thread Adrian M
Hello,
is it possible to use Last Login Plugin with mysql instead of redis ?
http://wiki2.dovecot.org/Plugins/LastLogin

.--
Best regards,
Adrian Minta


Re: Move dovecot between servers

2016-08-30 Thread Gandalf Corvotempesta
2016-08-30 10:49 GMT+02:00 Aki Tuomi :
> Hi!
>
> See http://wiki2.dovecot.org/Upgrading

I know this guide but last time i had to upgrade between 1.2 to 2.0 it
was totally a mess, as

doveconf -n -c /etc/dovecot/dovecot.conf > dovecot-2.conf

didn't output anything.

additionally, this is for upgrading, but what about mailbox migration
(via rsync)? Dovecout would preserve the UID and anything else to
avoid a new download on clients?


Re: Move dovecot between servers

2016-08-30 Thread Aki Tuomi


On 30.08.2016 10:44, Gandalf Corvotempesta wrote:
> Hi to all
> I have a very old dovecot server (1.2.15) with about 195GB used and
> 1081 email accounts.
> I have to move this server to another one with contextual dovecot upgrade.
>
> Anyone did this before? Any advice? Obviously, existing emails *must
> not* be downloaded twice by existing clients (outlook, thunderbird,
> ...)
>
> I have no access to customer's clients, only to my server.

Hi!

See http://wiki2.dovecot.org/Upgrading

Aki Tuomi
Dovecot oy


Move dovecot between servers

2016-08-30 Thread Gandalf Corvotempesta
Hi to all
I have a very old dovecot server (1.2.15) with about 195GB used and
1081 email accounts.
I have to move this server to another one with contextual dovecot upgrade.

Anyone did this before? Any advice? Obviously, existing emails *must
not* be downloaded twice by existing clients (outlook, thunderbird,
...)

I have no access to customer's clients, only to my server.


Re: 2.2.25 dumps core with "Panic: file imap-client.c: line 837 (client_check_command_hangs): assertion failed: (client->io != NULL)"

2016-08-30 Thread Piper Andreas
Hello Timo,

> 
>> Find attached the output of 'doveconf -n'.
> ..
>> # 2.2.25 (f5ac02c): /etc/opt/csw/dovecot/dovecot.conf
> 
> What is this version? 2.2.25 release had 7be1766. I can't find any such 
> commit hash from git.
> 

This is the dovecot-package from OpenCSW:
https://www.opencsw.org/packages/CSWdovecot/
I have no idea, if these guys apply any changes to the code, but I'll
ask the maintainer.

Andreas




smime.p7s
Description: S/MIME Cryptographic Signature