On 22 Oct 2018, at 8:08, Aki Tuomi wrote:
On 20.10.2018 7.29, Phil wrote:
The 'noreplicate' user database field described in the wiki appears
to
make no difference as to whether an account gets replicated or not.
My sql user query returns a 'noreplicate' field and I can confirm
that
this is getting set using 'doveadm user', however when I add a new
account with noreplicate=true it gets replicated regardless.
User query:
user_query = SELECT home, uid, gid, noreplicate FROM mail_accounts
WHERE address = '%u'
# doveadm user us...@mydomain.com
field value
uid 1000
gid 1000
home /mail/domains/mydomain.com/user1/Maildir
mail maildir:/mail/domains/mydomain.com/user1/Maildir
noreplicate t
Can you turn on 'mail_debug=yes' and provide logs for a noreplicate
user
being replicated?
Aki
I added a new user 'reptest' with noreplicate='t' and have attached the
logs from both ends of the replication pair.
You can see that the account was replicated and I have verified this by
sending an email to the account and it immediately appears on both
servers.
-Phil
Oct 22 20:02:36 mx dovecot: doveadm: Debug: auth PASS input:
user=rept...@mydomain.com
Oct 22 20:02:36 mx dovecot: doveadm: Debug: auth USER input:
rept...@mydomain.com home=/mail/domains/mydomain.com/reptest/Maildir uid=1000
gid=1000 noreplicate=t
Oct 22 20:02:36 mx dovecot: doveadm: Debug: Added userdb setting:
plugin/noreplicate=t
Oct 22 20:02:36 mx dovecot: doveadm: Debug: Effective uid=1000, gid=1000,
home=/mail/domains/mydomain.com/reptest/Maildir
Oct 22 20:02:36 mx dovecot: doveadm: Debug: Home dir not found:
/mail/domains/mydomain.com/reptest/Maildir
Oct 22 20:02:36 mx dovecot: doveadm: Debug: Namespace inbox: type=private,
prefix=, sep=, inbox=yes, hidden=no, list=yes, subscriptions=yes
location=maildir:/mail/domains/mydomain.com/reptest/Maildir
Oct 22 20:02:36 mx dovecot: doveadm: Debug: maildir++:
root=/mail/domains/mydomain.com/reptest/Maildir, index=, indexpvt=, control=,
inbox=/mail/domains/mydomain.com/reptest/Maildir, alt=
Oct 22 20:02:37 mx dovecot: doveadm: Debug: Namespace :
/mail/domains/mydomain.com/reptest/Maildir doesn't exist yet, using default
permissions
Oct 22 20:02:37 mx dovecot: doveadm: Debug: Namespace : Using permissions from
/mail/domains/mydomain.com/reptest/Maildir: mode=0700 gid=default
Oct 22 20:02:37 mx dovecot: doveadm: Debug: replication: Replication requested
by 'mailbox create', priority=1
Oct 22 20:02:37 mx dovecot: doveadm(rept...@mydomain.com): Debug: auth PASS
input: user=rept...@mydomain.com
Oct 22 20:02:37 mx dovecot: doveadm(rept...@mydomain.com)<16633><>: Debug: auth
USER input: rept...@mydomain.com
home=/mail/domains/mydomain.com/reptest/Maildir uid=1000 gid=1000 noreplicate=t
Oct 22 20:02:37 mx dovecot: doveadm(rept...@mydomain.com)<16633><>: Debug:
Added userdb setting: plugin/noreplicate=t
Oct 22 20:02:37 mx dovecot: doveadm: Debug:
/mail/domains/mydomain.com/reptest/Maildir/dovecot.index.cache: Compressed,
file_seq changed 0 -> 1540231357, size=32, max_uid=0
Oct 22 20:02:38 mx dovecot: doveadm(rept...@mydomain.com): Debug:
remote(mail2.mydomain.com): auth PASS input: user=rept...@mydomain.com
Oct 22 20:02:38 mx dovecot: doveadm(rept...@mydomain.com): Debug:
remote(mail2.mydomain.com): auth USER input: rept...@mydomain.com
home=/home/vmail/domains/mydomain.com/reptest/Maildir uid=1000 gid=1000
noreplicate=t
Oct 22 20:02:38 mx dovecot: doveadm(rept...@mydomain.com): Debug:
remote(mail2.mydomain.com): Added userdb setting: plugin/noreplicate=t
Oct 22 20:02:38 mx dovecot: doveadm(rept...@mydomain.com): Debug:
remote(mail2.mydomain.com): Effective uid=1000, gid=1000,
home=/home/vmail/domains/mydomain.com/<mydomain>/Maildir
Oct 22 20:02:38 mx dovecot: doveadm(rept...@mydomain.com): Debug:
remote(mail2.mydomain.com): Namespace : type=private, prefix=, sep=.,
inbox=yes, hidden=no, list=yes, subscriptions=yes
location=maildir:/home/vmail/domains/mydomain.com/reptest/Maildir
Oct 22 20:02:38 mx dovecot: doveadm(rept...@mydomain.com): Debug:
remote(mail2.mydomain.com): maildir++:
root=/home/vmail/domains/mydomain.com/reptest/Maildir, index=, indexpvt=,
control=, inbox=/home/vmail/domains/mydomain.com/reptest/Maildir, alt=
Oct 22 20:02:38 mx dovecot: doveadm(rept...@mydomain.com): Debug: Effective
uid=1000, gid=1000, home=/mail/domains/mydomain.com/reptest/Maildir
Oct 22 20:02:38 mx dovecot: doveadm(rept...@mydomain.com): Debug: Namespace
inbox: type=private, prefix=, sep=, inbox=yes, hidden=no, list=yes,
subscriptions=yes location=maildir:/mail/domains/mydomain.com/reptest/Maildir
Oct 22 20:02:38 mx dovecot: doveadm(rept...@mydomain.com): Debug: maildir++:
root=/mail/domains/mydomain.com/reptest/Maildir, index=, indexpvt=, control=,
inbox=/mail/domains/mydomain.com/reptest/Maildir, alt=
Oct 22 20:02:38 mx dovecot: doveadm(rept...@mydomain.com): Debug: Namespace :
Using permissions from /mail/domains/mydomain.com/reptest/Maildir: mode=0700
gid=default
Oct 22 20:02:05 mail dovecot: lda(rept...@mydomain.com)<5290><>: Debug: Loading
modules from directory: /usr/local/lib/dovecot
Oct 22 20:02:05 mail dovecot: lda(rept...@mydomain.com)<5290><>: Debug: Module
loaded: /usr/local/lib/dovecot/lib15_notify_plugin.so
Oct 22 20:02:05 mail dovecot: lda(rept...@mydomain.com)<5290><>: Debug: Module
loaded: /usr/local/lib/dovecot/lib20_replication_plugin.so
Oct 22 20:02:05 mail dovecot: lda(rept...@mydomain.com)<5290><>: Debug: auth
USER input: rept...@mydomain.com
home=/home/vmail/domains/mydomain.com/reptest/Maildir uid=1000 gid=1000
noreplicate=t
Oct 22 20:02:05 mail dovecot: lda(rept...@mydomain.com)<5290><>: Debug: Added
userdb setting: plugin/noreplicate=t
Oct 22 20:02:05 mail dovecot:
lda(rept...@mydomain.com)<5290><3Y2UKZ0QzluqFAAAmySsLw>: Debug: Effective
uid=1000, gid=1000, home=/home/vmail/domains/mydomain.com/reptest/Maildir
Oct 22 20:02:05 mail dovecot:
lda(rept...@mydomain.com)<5290><3Y2UKZ0QzluqFAAAmySsLw>: Debug: Home dir not
found: /home/vmail/domains/mydomain.com/reptest/Maildir
Oct 22 20:02:05 mail dovecot:
lda(rept...@mydomain.com)<5290><3Y2UKZ0QzluqFAAAmySsLw>: Debug: Namespace :
type=private, prefix=, sep=., inbox=yes, hidden=no, list=yes, subscriptions=yes
location=maildir:/home/vmail/domains/mydomain.com/reptest/Maildir
Oct 22 20:02:05 mail dovecot:
lda(rept...@mydomain.com)<5290><3Y2UKZ0QzluqFAAAmySsLw>: Debug: maildir++:
root=/home/vmail/domains/mydomain.com/reptest/Maildir, index=, indexpvt=,
control=, inbox=/home/vmail/domains/mydomain.com/reptest/Maildir, alt=
Oct 22 20:02:05 mail dovecot:
lda(rept...@mydomain.com)<5290><3Y2UKZ0QzluqFAAAmySsLw>: Debug: Destination
address: <rept...@mydomain.com> (source: user@hostname)
Oct 22 20:02:05 mail dovecot:
lda(rept...@mydomain.com)<5290><3Y2UKZ0QzluqFAAAmySsLw>: Debug: Mailbox INBOX:
Mailbox opened because: lib-lda delivery
Oct 22 20:02:05 mail dovecot:
lda(rept...@mydomain.com)<5290><3Y2UKZ0QzluqFAAAmySsLw>: Debug: Namespace :
/home/vmail/domains/mydomain.com/reptest/Maildir doesn't exist yet, using
default permissions
Oct 22 20:02:05 mail dovecot:
lda(rept...@mydomain.com)<5290><3Y2UKZ0QzluqFAAAmySsLw>: Debug: Namespace :
Using permissions from /home/vmail/domains/mydomain.com/reptest/Maildir:
mode=0700 gid=default
Oct 22 20:02:05 mail dovecot:
lda(rept...@mydomain.com)<5290><3Y2UKZ0QzluqFAAAmySsLw>: Debug: replication:
Replication requested by 'mailbox create', priority=1
Oct 22 20:02:05 mail dovecot:
lda(rept...@mydomain.com)<5290><3Y2UKZ0QzluqFAAAmySsLw>: Debug:
/home/vmail/domains/mydomain.com/reptest/Maildir/dovecot.index.cache:
Compressed, file_seq changed 0 -> 1540231325, size=32, max_uid=0
Oct 22 20:02:05 mail dovecot:
lda(rept...@mydomain.com)<5290><3Y2UKZ0QzluqFAAAmySsLw>: Debug: replication:
Replication requested by 'mail_deliver_save', priority=2
Oct 22 20:02:05 mail dovecot: doveadm(rept...@mydomain.com): Debug: auth PASS
input: user=rept...@mydomain.com
Oct 22 20:02:05 mail dovecot: doveadm(rept...@mydomain.com)<5292><>: Debug:
auth USER input: rept...@mydomain.com
home=/home/vmail/domains/mydomain.com/reptest/Maildir uid=1000 gid=1000
noreplicate=t
Oct 22 20:02:05 mail dovecot: doveadm(rept...@mydomain.com)<5292><>: Debug:
Added userdb setting: plugin/noreplicate=t
Oct 22 20:02:06 mail dovecot: doveadm(rept...@mydomain.com): Debug:
remote(mail.hq.mydomain.com): auth PASS input: user=rept...@mydomain.com
Oct 22 20:02:06 mail dovecot: doveadm(rept...@mydomain.com): Debug:
remote(mail.hq.mydomain.com): auth USER input: rept...@mydomain.com
home=/mail/domains/mydomain.com/reptest/Maildir uid=1000 gid=1000 noreplicate=t
Oct 22 20:02:06 mail dovecot: doveadm(rept...@mydomain.com): Debug:
remote(mail.hq.mydomain.com): Added userdb setting: plugin/noreplicate=t
Oct 22 20:02:06 mail dovecot: doveadm(rept...@mydomain.com): Debug:
remote(mail.hq.mydomain.com): Effective uid=1000, gid=1000,
home=/mail/domains/mydomain.com/reptest/Maildir
Oct 22 20:02:06 mail dovecot: doveadm(rept...@mydomain.com): Debug:
remote(mail.hq.mydomain.com): Home dir not found:
/mail/domains/mydomain.com/reptest/Maildir
Oct 22 20:02:06 mail dovecot: doveadm(rept...@mydomain.com): Debug:
remote(mail.hq.mydomain.com): Namespace inbox: type=private, prefix=, sep=,
inbox=yes, hidden=no, list=yes, subscriptions=yes
location=maildir:/mail/domains/mydomain.com/reptest/Maildir
Oct 22 20:02:06 mail dovecot: doveadm(rept...@mydomain.com): Debug:
remote(mail.hq.mydomain.com): maildir++:
root=/mail/domains/mydomain.com/reptest/Maildir, index=, indexpvt=, control=,
inbox=/mail/domains/mydomain.com/reptest/Maildir, alt=
Oct 22 20:02:06 mail dovecot: doveadm(rept...@mydomain.com): Debug: Effective
uid=1000, gid=1000, home=/home/vmail/domains/mydomain.com/reptest/Maildir
Oct 22 20:02:06 mail dovecot: doveadm(rept...@mydomain.com): Debug: Namespace :
type=private, prefix=, sep=., inbox=yes, hidden=no, list=yes, subscriptions=yes
location=maildir:/home/vmail/domains/mydomain.com/reptest/Maildir
Oct 22 20:02:06 mail dovecot: doveadm(rept...@mydomain.com): Debug: maildir++:
root=/home/vmail/domains/mydomain.com/reptest/Maildir, index=, indexpvt=,
control=, inbox=/home/vmail/domains/mydomain.com/reptest/Maildir, alt=
Oct 22 20:02:06 mail dovecot: doveadm(rept...@mydomain.com): Debug: Namespace :
Using permissions from /home/vmail/domains/mydomain.com/reptest/Maildir:
mode=0700 gid=default
Oct 22 20:02:06 mail dovecot:
dsync-local(rept...@mydomain.com)<LQUKLp0QzlusFAAAmySsLw>: Debug: Mailbox
INBOX: UID 1: Opened mail because: prefetch
Oct 22 20:02:06 mail dovecot:
dsync-local(rept...@mydomain.com)<LQUKLp0QzlusFAAAmySsLw>: Debug: Mailbox
INBOX: UID 1: Opened mail because: access
Oct 22 20:02:06 mail dovecot:
dsync-local(rept...@mydomain.com)<LQUKLp0QzlusFAAAmySsLw>: Debug: Mailbox
INBOX: UID 1: Opened mail because: mail stream
Oct 22 20:02:07 mail dovecot: doveadm: Debug: auth PASS input:
user=rept...@mydomain.com
Oct 22 20:02:07 mail dovecot: doveadm: Debug: auth USER input:
rept...@mydomain.com home=/home/vmail/domains/mydomain.com/reptest/Maildir
uid=1000 gid=1000 noreplicate=t
Oct 22 20:02:07 mail dovecot: doveadm: Debug: Added userdb setting:
plugin/noreplicate=t
Oct 22 20:02:07 mail dovecot: doveadm: Debug: Effective uid=1000, gid=1000,
home=/home/vmail/domains/mydomain.com/reptest/Maildir
Oct 22 20:02:07 mail dovecot: doveadm: Debug: Namespace : type=private,
prefix=, sep=., inbox=yes, hidden=no, list=yes, subscriptions=yes
location=maildir:/home/vmail/domains/mydomain.com/reptest/Maildir
Oct 22 20:02:07 mail dovecot: doveadm: Debug: maildir++:
root=/home/vmail/domains/mydomain.com/reptest/Maildir, index=, indexpvt=,
control=, inbox=/home/vmail/domains/mydomain.com/reptest/Maildir, alt=
Oct 22 20:02:07 mail dovecot: doveadm: Debug: Namespace : Using permissions
from /home/vmail/domains/mydomain.com/reptest/Maildir: mode=0700 gid=default