Hello. I try to migrate dovecot 1 to dovecot 2 with doveadm backup. But when i try to set doveadm backup i get :
mx3:/root/dsync@[23:11] # doveadm -v -c ah.temp backup -R -u ah@test.pl ahuryn@i-pi.pl imapc: doveadm(ah@test.pl ahuryn@i-pi.pl): Error: Mail access for users with UID 145 not permitted (see first_valid_uid in config file, uid from userdb lookup). doveadm(ah@test.pl ahuryn@i-pi.pl): Error: User init failed
mx3:/root/dsync@[22:13] # ls -la /home/mail/vhosts/test.pl/ah@test.pl/ http://i-pi.pl/ahuryn@i-pi.pl/ total 1 drwxr-xr-x 2 vmail vmail 2 Nov 12 23:59 .
mx3:/root/dsync@[22:14] # doveadm user ah@test.pl ahuryn@i-pi.pl field value uid 145 gid 145 home /home/mail/vhosts/test.pl/ah@test.pl http://i-pi.pl/ahuryn@i-pi.pl mail mdbox:~/mdbox quota_rule *:storage=50000M
mx3:/root/dsync@[22:14] # id 145 uid=145(vmail) gid=145(vmail) groups=145(vmail)
mx3:/root/dsync@[1:14] # doveconf -n | grep 145 first_valid_uid = 145 last_valid_uid = 145
I dont have any idea whats is the problem. Best regards.
Still not solved ;/ My dovecot -n
# 2.2.32 (dfbe293d4): /usr/local/etc/dovecot/dovecot.conf # Pigeonhole version 0.4.20 (7cd71ba) # OS: FreeBSD 10.3-RELEASE-p2 amd64 auth_cache_size = 10 M default_client_limit = 2000 dict { sqlquota = pgsql:/usr/local/etc/dovecot/quota-sql.conf.ext } first_valid_uid = 145 imap_idle_notify_interval = 29 mins last_valid_uid = 145 listen = * log_path = /var/log/dovecot.log mail_attachment_dir = /home/mail/attachments mail_attachment_min_size = 64 k mail_fsync = never mail_home = /home/mail/vhosts/%d/%n mail_location = mdbox:~/mdbox mail_plugins = " fts fts_solr quota" mail_privileged_group = vmail managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date index ihave duplicate mime foreverypart extracttext imapsieve vnd.dovecot.imapsieve namespace inbox { inbox = yes location = mailbox Archive { auto = subscribe special_use = \Archive } mailbox Drafts { auto = subscribe special_use = \Drafts } mailbox Junk { auto = create special_use = \Junk } mailbox Sent { auto = subscribe special_use = \Sent } mailbox "Sent Messages" { auto = subscribe special_use = \Sent } mailbox Trash { auto = create special_use = \Trash } prefix = separator = / } passdb { args = /usr/local/etc/dovecot/dovecot-sql.conf.ext driver = sql } plugin { fts = solr fts_autoindex = yes fts_solr = url=http://test.pl:8983/solr/dovecot/ imapsieve_mailbox1_before = file:/usr/local/etc/dovecot/sieve/report-spam.sieve imapsieve_mailbox1_causes = COPY imapsieve_mailbox1_name = Junk imapsieve_mailbox2_before = file:/usr/local/etc/dovecot/sieve/report-ham.sieve imapsieve_mailbox2_causes = COPY imapsieve_mailbox2_from = Junk imapsieve_mailbox2_name = * quota = dict:User quota::proxy::sqlquota quota_rule = *:storage=2048M quota_rule2 = Trash:storage=+5%% quota_rule3 = Kosz:storage=+5%% quota_warning = storage=95%% quota-warning 95 %u quota_warning2 = storage=80%% quota-warning 80 %u recipient_delimiter = + sieve = file:~/sieve;active=~/.dovecot.sieve sieve_after = /usr/local/etc/dovecot/sieve-after.d sieve_before = /usr/local/etc/dovecot/sieve-before.d sieve_global_extensions = +vnd.dovecot.pipe sieve_pipe_bin_dir = /usr/local/etc/dovecot/sieve sieve_plugins = sieve_imapsieve sieve_extprograms sieve_quota_max_storage = 50M } protocols = imap lmtp sieve service auth-worker { user = vmail } service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } } service dict { unix_listener dict { group = vmail mode = 0600 user = vmail } } service imap-login { process_min_avail = 3 service_count = 0 vsz_limit = 1 G } service imap { process_min_avail = 3 service_count = 256 } service lmtp { unix_listener /var/spool/postfix/private/dovecot-lmtp { group = postfix mode = 0600 user = postfix } } service managesieve-login { inet_listener sieve { port = 4190 ssl = no } } service pop3-login { inet_listener pop3 { port = 0 } inet_listener pop3s { port = 0 } } ssl = required ssl_cert =
mx3:/root/dsync@[23:11] # doveadm -v -c ah.temp backup -R -u ah@test.pl ahuryn@i-pi.pl imapc: doveadm(ah@test.pl ahuryn@i-pi.pl): Error: Mail access for users with UID 145 not permitted (see first_valid_uid in config file, uid from userdb lookup). doveadm(ah@test.pl ahuryn@i-pi.pl): Error: User init failed
mx3:/root/dsync@[22:13] # ls -la /home/mail/vhosts/test.pl/ah@test.pl/ http://i-pi.pl/ahuryn@i-pi.pl/ total 1 drwxr-xr-x 2 vmail vmail 2 Nov 12 23:59 .
mx3:/root/dsync@[22:14] # doveadm user ah@test.pl ahuryn@i-pi.pl field value uid 145 gid 145 home /home/mail/vhosts/test.pl/ah@test.pl http://i-pi.pl/ahuryn@i-pi.pl mail mdbox:~/mdbox quota_rule *:storage=50000M
mx3:/root/dsync@[22:14] # id 145 uid=145(vmail) gid=145(vmail) groups=145(vmail)
mx3:/root/dsync@[1:14] # doveconf -n | grep 145 first_valid_uid = 145 last_valid_uid = 145
Thank for any hints. Best regards.
2017-11-20 18:36 GMT+01:00 Dovecot list cr4shydlo+dovecot@gmail.com:
Hello. I try to migrate dovecot 1 to dovecot 2 with doveadm backup. But when i try to set doveadm backup i get :
mx3:/root/dsync@[23:11] # doveadm -v -c ah.temp backup -R -u ah@test.pl ahuryn@i-pi.pl imapc: doveadm(ah@test.pl ahuryn@i-pi.pl): Error: Mail access for users with UID 145 not permitted (see first_valid_uid in config file, uid from userdb lookup). doveadm(ah@test.pl ahuryn@i-pi.pl): Error: User init failed
mx3:/root/dsync@[22:13] # ls -la /home/mail/vhosts/test.pl/ah@test.pl/ http://i-pi.pl/ahuryn@i-pi.pl/ total 1 drwxr-xr-x 2 vmail vmail 2 Nov 12 23:59 .
mx3:/root/dsync@[22:14] # doveadm user ah@test.pl ahuryn@i-pi.pl field value uid 145 gid 145 home /home/mail/vhosts/test.pl/ah@test.pl http://i-pi.pl/ahuryn@i-pi.pl mail mdbox:~/mdbox quota_rule *:storage=50000M
mx3:/root/dsync@[22:14] # id 145 uid=145(vmail) gid=145(vmail) groups=145(vmail)
mx3:/root/dsync@[1:14] # doveconf -n | grep 145 first_valid_uid = 145 last_valid_uid = 145
I dont have any idea whats is the problem. Best regards.
This is probably problem on the other end.
Aki
On 20.11.2017 19:36, Dovecot list wrote:
Hello. I try to migrate dovecot 1 to dovecot 2 with doveadm backup. But when i try to set doveadm backup i get :
mx3:/root/dsync@[23:11] # doveadm -v -c ah.temp backup -R -u ah@test.pl ahuryn@i-pi.pl imapc: doveadm(ah@test.pl ahuryn@i-pi.pl): Error: Mail access for users with UID 145 not permitted (see first_valid_uid in config file, uid from userdb lookup). doveadm(ah@test.pl ahuryn@i-pi.pl): Error: User init failed
mx3:/root/dsync@[22:13] # ls -la /home/mail/vhosts/test.pl/ah@test.pl/ http://i-pi.pl/ahuryn@i-pi.pl/ total 1 drwxr-xr-x 2 vmail vmail 2 Nov 12 23:59 .
mx3:/root/dsync@[22:14] # doveadm user ah@test.pl ahuryn@i-pi.pl field value uid 145 gid 145 home /home/mail/vhosts/test.pl/ah@test.pl http://i-pi.pl/ahuryn@i-pi.pl mail mdbox:~/mdbox quota_rule *:storage=50000M
mx3:/root/dsync@[22:14] # id 145 uid=145(vmail) gid=145(vmail) groups=145(vmail)
mx3:/root/dsync@[1:14] # doveconf -n | grep 145 first_valid_uid = 145 last_valid_uid = 145
I dont have any idea whats is the problem. Best regards.
But on other side i have that same settings (Only on dovecot 1 ) ID and GID are that same, and on other site i dont have any info in logs... I think this is @ dovecot 2 problem, but dont know how to solve it... Best regards.
2017-12-01 8:02 GMT+01:00 Aki Tuomi aki.tuomi@dovecot.fi:
This is probably problem on the other end.
Aki
On 20.11.2017 19:36, Dovecot list wrote:
Hello. I try to migrate dovecot 1 to dovecot 2 with doveadm backup. But when i try to set doveadm backup i get :
mx3:/root/dsync@[23:11] # doveadm -v -c ah.temp backup -R -u ah@test.pl ahuryn@i-pi.pl imapc: doveadm(ah@test.pl ahuryn@i-pi.pl): Error: Mail access for users with UID 145 not permitted (see first_valid_uid in config file, uid from userdb lookup). doveadm(ah@test.pl ahuryn@i-pi.pl): Error: User init failed
mx3:/root/dsync@[22:13] # ls -la /home/mail/vhosts/test.pl/ah@test.pl/ http://i-pi.pl/ahuryn@i-pi.pl/ total 1 drwxr-xr-x 2 vmail vmail 2 Nov 12 23:59 .
mx3:/root/dsync@[22:14] # doveadm user ah@test.pl ahuryn@i-pi.pl field value uid 145 gid 145 home /home/mail/vhosts/test.pl/ah@test.pl < http://i-pi.pl/ahuryn@i-pi.pl> mail mdbox:~/mdbox quota_rule *:storage=50000M
mx3:/root/dsync@[22:14] # id 145 uid=145(vmail) gid=145(vmail) groups=145(vmail)
mx3:/root/dsync@[1:14] # doveconf -n | grep 145 first_valid_uid = 145 last_valid_uid = 145
I dont have any idea whats is the problem. Best regards.
participants (2)
-
Aki Tuomi
-
Dovecot list