Re: Potfix+Dovecot with dsync replication problem

2019-06-10 Thread Zeljko Dokman via dovecot
Hi all,
Does enyone have a setup of postfix and dovecot with dsync replication that
actually works?

Best regards

On Mon, May 6, 2019, 14:22 Zeljko Dokman  wrote:

> Hi all,
>
> I am in need of some help.
>
> Straggling to make something work, trying to configure postfix and
> dovecote imap server with dovecote replication.
>
> Can’t figure out what is wrong with my configuration.
>
>
>
> Replication is working only for vmail user account, I am getting this
> error on my secondary server  for all other users…
>
>
>
> dovecot: doveadm: Fatal: setgid(4015(zdokman) from userdb lookup) failed
> with euid=5000(vmail), gid=5000(vmail), egid=5000(vmail): Operation not
> permitted (This binary should probably be called with process group set to
> 4015(zdokman) instead of 5000(vmail))
>
>
>
> primary server reports this error:
>
>
>
> dovecot: doveadm(zdokman): Error: doveadm server disconnected before
> handshake: EOF
>
> dovecot: doveadm(zdokman): Error: sync: Disconnected from remote: EOF
>
>
>
>
>
> doveadm replicator status '*'
>
> username
>  priority fast sync full sync success sync failed
>
> vmail
> none 01:58:13  02:05:25  01:58:13 -
>
> zdokman
>  none 00:00:25  02:55:26  -y
>
> test
>   none 00:01:00  21:48:13  -y
>
>
>
> doveadm sync *
>
> doveadm(root): Fatal: execvp(Maildir) failed: Permission denied
>
> dsync-local(root): Error: read(remote) failed: EOF (version not received)
>
>
>
> I am attaching my dovecot.conf main.cf and master.cf.
>
>
>
> I think my problem is with permissions  but I can figure out how to
> workaround it.
>
>
>
> Best regards
>


Fwd: Potfix+Dovecot with dsync replication problem

2019-06-05 Thread Zeljko Dokman via dovecot
Hi,
Any ideas?

Regards

-- Forwarded message -
From: Zeljko Dokman 
Date: Mon, 3 Jun 2019 at 13:14
Subject: Re: Potfix+Dovecot with dsync replication problem
To: 


Hi all,

I am still struggling with this issue.
I scraped my previous configuration and started from beginning.
Thanks to Aki Tuomi and his suggestion I changed the users in my
configurations from vmail --> root and that helped.
Now I have a working replication but with some problems and strange
behavior.
Replication works only when I manually execute a command:

"doveadm sync -A tcp:secundary:server:12345"

Automatic fast and full sync do not work:

doveadm replicator status "*"
username
 priority fast sync full sync success sync failed
zdokman
none 01:46:14  01:46:14  01:46:14 -

doveadm replicator status
Queued 'sync' requests0
Queued 'high' requests0
Queued 'low' requests 0
Queued 'failed' requests  0
Queued 'full resync' requests 0
Waiting 'failed' requests 0
Total number of known users   1

doveadm replicator dsync-status
username
  type status

 -Not connected

maillog has no error entries.
my conf files are attached.

I don't understand why is this happening and how to fix it, any help is
much appreciated.

Best regards,




On Mon, 13 May 2019 at 15:23, Zeljko Dokman  wrote:

> Hi,
> Thank you for your reply Aki.
> I changed my configuration and substituted vmail user with root user.
>
> Now I have no error massages in maillog but replication is not working,
> mails are not visible on second server.
>
> BR
>
>
>
>
>
> On Mon, 13 May 2019 at 10:50, Aki Tuomi 
> wrote:
>
>> Your problem is that you are running service doveadm as vmail, but you
>> are using real uids. You need to start doveadm server as root to be able to
>> switch into the correct target user.
>>
>> Aki
>>
>>
>> On 13.5.2019 11.26, Zeljko Dokman via dovecot wrote:
>>
>> Hi all,
>>
>> Any suggestion?
>>
>> BR
>>
>> On Mon, 6 May 2019 at 14:22, Zeljko Dokman  wrote:
>>
>>> Hi all,
>>>
>>> I am in need of some help.
>>>
>>> Straggling to make something work, trying to configure postfix and
>>> dovecote imap server with dovecote replication.
>>>
>>> Can’t figure out what is wrong with my configuration.
>>>
>>>
>>>
>>> Replication is working only for vmail user account, I am getting this
>>> error on my secondary server  for all other users…
>>>
>>>
>>>
>>> dovecot: doveadm: Fatal: setgid(4015(zdokman) from userdb lookup) failed
>>> with euid=5000(vmail), gid=5000(vmail), egid=5000(vmail): Operation not
>>> permitted (This binary should probably be called with process group set to
>>> 4015(zdokman) instead of 5000(vmail))
>>>
>>>
>>>
>>> primary server reports this error:
>>>
>>>
>>>
>>> dovecot: doveadm(zdokman): Error: doveadm server disconnected before
>>> handshake: EOF
>>>
>>> dovecot: doveadm(zdokman): Error: sync: Disconnected from remote: EOF
>>>
>>>
>>>
>>>
>>>
>>> doveadm replicator status '*'
>>>
>>> username
>>>  priority fast sync full sync success sync failed
>>>
>>> vmail
>>> none 01:58:13  02:05:25  01:58:13 -
>>>
>>> zdokman
>>>  none 00:00:25  02:55:26  -y
>>>
>>> test
>>>   none 00:01:00  21:48:13  -y
>>>
>>>
>>>
>>> doveadm sync *
>>>
>>> doveadm(root): Fatal: execvp(Maildir) failed: Permission denied
>>>
>>> dsync-local(root): Error: read(remote) failed: EOF (version not received)
>>>
>>>
>>>
>>> I am attaching my dovecot.conf main.cf and master.cf.
>>>
>>>
>>>
>>> I think my problem is with permissions  but I can figure out how to
>>> workaround it.
>>>
>>>
>>>
>>> Best regards
>>>
>>
>>
>> --
>>
>>
>>
>>
>>
>>
>
> --
>
>
>
>
>


-- 






--


dovecot.conf
Description: Binary data


main.cf
Description: Binary data


master.cf
Description: Binary data


Re: Potfix+Dovecot with dsync replication problem

2019-06-03 Thread Zeljko Dokman via dovecot
Hi all,

I am still struggling with this issue.
I scraped my previous configuration and started from beginning.
Thanks to Aki Tuomi and his suggestion I changed the users in my
configurations from vmail --> root and that helped.
Now I have a working replication but with some problems and strange
behavior.
Replication works only when I manually execute a command:

"doveadm sync -A tcp:secundary:server:12345"

Automatic fast and full sync do not work:

doveadm replicator status "*"
username
 priority fast sync full sync success sync failed
zdokman
none 01:46:14  01:46:14  01:46:14 -

doveadm replicator status
Queued 'sync' requests0
Queued 'high' requests0
Queued 'low' requests 0
Queued 'failed' requests  0
Queued 'full resync' requests 0
Waiting 'failed' requests 0
Total number of known users   1

doveadm replicator dsync-status
username
  type status

 -Not connected

maillog has no error entries.
my conf files are attached.

I don't understand why is this happening and how to fix it, any help is
much appreciated.

Best regards,




On Mon, 13 May 2019 at 15:23, Zeljko Dokman  wrote:

> Hi,
> Thank you for your reply Aki.
> I changed my configuration and substituted vmail user with root user.
>
> Now I have no error massages in maillog but replication is not working,
> mails are not visible on second server.
>
> BR
>
>
>
>
>
> On Mon, 13 May 2019 at 10:50, Aki Tuomi 
> wrote:
>
>> Your problem is that you are running service doveadm as vmail, but you
>> are using real uids. You need to start doveadm server as root to be able to
>> switch into the correct target user.
>>
>> Aki
>>
>>
>> On 13.5.2019 11.26, Zeljko Dokman via dovecot wrote:
>>
>> Hi all,
>>
>> Any suggestion?
>>
>> BR
>>
>> On Mon, 6 May 2019 at 14:22, Zeljko Dokman  wrote:
>>
>>> Hi all,
>>>
>>> I am in need of some help.
>>>
>>> Straggling to make something work, trying to configure postfix and
>>> dovecote imap server with dovecote replication.
>>>
>>> Can’t figure out what is wrong with my configuration.
>>>
>>>
>>>
>>> Replication is working only for vmail user account, I am getting this
>>> error on my secondary server  for all other users…
>>>
>>>
>>>
>>> dovecot: doveadm: Fatal: setgid(4015(zdokman) from userdb lookup) failed
>>> with euid=5000(vmail), gid=5000(vmail), egid=5000(vmail): Operation not
>>> permitted (This binary should probably be called with process group set to
>>> 4015(zdokman) instead of 5000(vmail))
>>>
>>>
>>>
>>> primary server reports this error:
>>>
>>>
>>>
>>> dovecot: doveadm(zdokman): Error: doveadm server disconnected before
>>> handshake: EOF
>>>
>>> dovecot: doveadm(zdokman): Error: sync: Disconnected from remote: EOF
>>>
>>>
>>>
>>>
>>>
>>> doveadm replicator status '*'
>>>
>>> username
>>>  priority fast sync full sync success sync failed
>>>
>>> vmail
>>> none 01:58:13  02:05:25  01:58:13 -
>>>
>>> zdokman
>>>  none 00:00:25  02:55:26  -y
>>>
>>> test
>>>   none 00:01:00  21:48:13  -y
>>>
>>>
>>>
>>> doveadm sync *
>>>
>>> doveadm(root): Fatal: execvp(Maildir) failed: Permission denied
>>>
>>> dsync-local(root): Error: read(remote) failed: EOF (version not received)
>>>
>>>
>>>
>>> I am attaching my dovecot.conf main.cf and master.cf.
>>>
>>>
>>>
>>> I think my problem is with permissions  but I can figure out how to
>>> workaround it.
>>>
>>>
>>>
>>> Best regards
>>>
>>
>>
>> --
>>
>>
>>
>>
>>
>>
>
> --
>
>
>
>
>


--


dovecot.conf
Description: Binary data


main.cf
Description: Binary data


master.cf
Description: Binary data


Re: Potfix+Dovecot with dsync replication problem

2019-05-13 Thread Aki Tuomi via dovecot
Your problem is that you are running service doveadm as vmail, but you
are using real uids. You need to start doveadm server as root to be able
to switch into the correct target user.

Aki


On 13.5.2019 11.26, Zeljko Dokman via dovecot wrote:
> Hi all,
>
> Any suggestion?
>
> BR
>
> On Mon, 6 May 2019 at 14:22, Zeljko Dokman  > wrote:
>
> Hi all,
>
> I am in need of some help.
>
> Straggling to make something work, trying to configure postfix and
> dovecote imap server with dovecote replication.
>
> Can’t figure out what is wrong with my configuration.
>
>  
>
> Replication is working only for vmail user account, I am getting
> this error on my secondary server  for all other users…
>
>  
>
> dovecot: doveadm: Fatal: setgid(4015(zdokman) from userdb lookup)
> failed with euid=5000(vmail), gid=5000(vmail), egid=5000(vmail):
> Operation not permitted (This binary should probably be called
> with process group set to 4015(zdokman) instead of 5000(vmail))
>
>  
>
> primary server reports this error:
>
>  
>
> dovecot: doveadm(zdokman): Error: doveadm server disconnected
> before handshake: EOF
>
> dovecot: doveadm(zdokman): Error: sync: Disconnected from remote: EOF
>
>  
>
>  
>
> doveadm replicator status '*'
>
> username  
>  priority fast sync full sync success sync failed
>
> vmail 
> none 01:58:13  02:05:25  01:58:13 -
>
> zdokman
>  none 00:00:25  02:55:26  -    y
>
> test  
>   none 00:01:00  21:48:13  -    y
>
>  
>
> doveadm sync *
>
> doveadm(root): Fatal: execvp(Maildir) failed: Permission denied
>
> dsync-local(root): Error: read(remote) failed: EOF (version not
> received)
>
>  
>
> I am attaching my dovecot.conf main.cf  and
> master.cf .
>
>  
>
> I think my problem is with permissions  but I can figure out how
> to workaround it.
>
>  
>
> Best regards 
>
>
>
> -- 
>
>   
>   
>
>   


Re: Potfix+Dovecot with dsync replication problem

2019-05-13 Thread Zeljko Dokman via dovecot
Hi all,

Any suggestion?

BR

On Mon, 6 May 2019 at 14:22, Zeljko Dokman  wrote:

> Hi all,
>
> I am in need of some help.
>
> Straggling to make something work, trying to configure postfix and
> dovecote imap server with dovecote replication.
>
> Can’t figure out what is wrong with my configuration.
>
>
>
> Replication is working only for vmail user account, I am getting this
> error on my secondary server  for all other users…
>
>
>
> dovecot: doveadm: Fatal: setgid(4015(zdokman) from userdb lookup) failed
> with euid=5000(vmail), gid=5000(vmail), egid=5000(vmail): Operation not
> permitted (This binary should probably be called with process group set to
> 4015(zdokman) instead of 5000(vmail))
>
>
>
> primary server reports this error:
>
>
>
> dovecot: doveadm(zdokman): Error: doveadm server disconnected before
> handshake: EOF
>
> dovecot: doveadm(zdokman): Error: sync: Disconnected from remote: EOF
>
>
>
>
>
> doveadm replicator status '*'
>
> username
>  priority fast sync full sync success sync failed
>
> vmail
> none 01:58:13  02:05:25  01:58:13 -
>
> zdokman
>  none 00:00:25  02:55:26  -y
>
> test
>   none 00:01:00  21:48:13  -y
>
>
>
> doveadm sync *
>
> doveadm(root): Fatal: execvp(Maildir) failed: Permission denied
>
> dsync-local(root): Error: read(remote) failed: EOF (version not received)
>
>
>
> I am attaching my dovecot.conf main.cf and master.cf.
>
>
>
> I think my problem is with permissions  but I can figure out how to
> workaround it.
>
>
>
> Best regards
>


--


Potfix+Dovecot with dsync replication problem

2019-05-06 Thread Zeljko Dokman via dovecot
Hi all,

I am in need of some help.

Straggling to make something work, trying to configure postfix and dovecote
imap server with dovecote replication.

Can’t figure out what is wrong with my configuration.



Replication is working only for vmail user account, I am getting this error
on my secondary server  for all other users…



dovecot: doveadm: Fatal: setgid(4015(zdokman) from userdb lookup) failed
with euid=5000(vmail), gid=5000(vmail), egid=5000(vmail): Operation not
permitted (This binary should probably be called with process group set to
4015(zdokman) instead of 5000(vmail))



primary server reports this error:



dovecot: doveadm(zdokman): Error: doveadm server disconnected before
handshake: EOF

dovecot: doveadm(zdokman): Error: sync: Disconnected from remote: EOF





doveadm replicator status '*'

username
 priority fast sync full sync success sync failed

vmail
none 01:58:13  02:05:25  01:58:13 -

zdokman
 none 00:00:25  02:55:26  -y

test
  none 00:01:00  21:48:13  -y



doveadm sync *

doveadm(root): Fatal: execvp(Maildir) failed: Permission denied

dsync-local(root): Error: read(remote) failed: EOF (version not received)



I am attaching my dovecot.conf main.cf and master.cf.



I think my problem is with permissions  but I can figure out how to
workaround it.



Best regards


dovecot.conf
Description: Binary data


master.cf
Description: Binary data


main.cf
Description: Binary data