Evgeny Basov
2013-Jan-17 13:31 UTC
[Dovecot] dovecot nightly 20130117: dsync does returns "Name or service not known"
Hello. I have this settings of imapc: # doveconf -a | grep imapc imapc_features imapc_host imapc_list_prefix imapc_master_user imapc_max_idle_time = 29 mins imapc_password imapc_port = 143 imapc_rawlog_dir imapc_ssl = no imapc_ssl_ca_dir imapc_ssl_verify = yes imapc_user = %u and try to sync mailbox on old server and new one: $ dsync -o imapc_user="user at example.org" -o imapc_password="pass" -o imapc_host=imap.example.org -o imapc_features=rfc822.size -o mailbox_list_index=no backup -R -f -u "user at example.org" imapc: get this error: ssh: Could not resolve hostname remote: Name or service not known dsync-local(basov at megagroup.ru): Error: read(remote) failed: EOF dsync-local(basov at megagroup.ru): Error: Remote command returned error 255 In this time new dovecot finds local user: 2013-01-17T17:21:29.837415+04:00 imap1 dovecot: auth: Debug: userdb out: USER#0111#011user at example.org#011home=/var/vmail/example.org/user/#011quota2_rule=*:storage=40M#011nodelay=Y#011uid=999#011gid=999 I don't understand what's mean under 'hostname remote'. What hostname? Is it bug or incorrect settings?
Evgeny Basov
2013-Jan-18 07:58 UTC
[Dovecot] dovecot nightly 20130117: dsync does returns "Name or service not known"
More debug ouput: $ dsync -D -v -o imapc_user="user at example.org" -o imapc_password="password" -o imapc_host=imap.example.org -o imapc_features=rfc822.size -o mailbox_list_index=no backup -R -f -u "user at example.org" imapc: doveadm(vmail): Debug: Loading modules from directory: /usr/lib64/dovecot doveadm(vmail): Debug: Module loaded: /usr/lib64/dovecot/lib10_quota_plugin.so doveadm(vmail): Debug: Loading modules from directory: /usr/lib64/dovecot/doveadm doveadm(vmail): Debug: Skipping module doveadm_acl_plugin, because dlopen() failed: /usr/lib64/dovecot/doveadm/lib10_doveadm_acl_plugin.so: undefined symbol: acl_user_module (this is usually intentional, so just ignore this message) doveadm(vmail): Debug: Skipping module doveadm_expire_plugin, because dlopen() failed: /usr/lib64/dovecot/doveadm/lib10_doveadm_expire_plugin.so: undefined symbol: expire_set_deinit (this is usually intentional, so just ignore this message) doveadm(vmail): Debug: Module loaded: /usr/lib64/dovecot/doveadm/lib10_doveadm_quota_plugin.so doveadm(vmail): Debug: Skipping module doveadm_fts_plugin, because dlopen() failed: /usr/lib64/dovecot/doveadm/lib20_doveadm_fts_plugin.so: undefined symbol: fts_backend_rescan (this is usually intentional, so just ignore this message) doveadm(user at example.org): Debug: auth input: user at example.org home=/var/vmail/example.org/user/ quota2_rule=*:storage=400000M nodelay=Y uid=999 gid=999 doveadm(user at example.org): Debug: Added userdb setting: plugin/nodelay=Y doveadm(user at example.org): Debug: Added userdb setting: plugin/quota2_rule=*:storage=400000M doveadm(user at example.org): Debug: Effective uid=999, gid=999, home=/var/vmail/example.org/user/ doveadm(user at example.org): Debug: Quota root: name=Domain quota backend=dict args=example.org:redis:host=127.0.0.1:prefix=domain/ doveadm(user at example.org): Debug: Quota rule: root=Domain quota mailbox=* bytes=0 messages=0 doveadm(user at example.org): Debug: Quota rule: root=Domain quota mailbox=Trash bytes=0 (5%) messages=0 doveadm(user at example.org): Debug: Quota root: name=User quota backend=dict args=:redis:host=127.0.0.1:prefix=user/ doveadm(user at example.org): Debug: Quota rule: root=User quota mailbox=* bytes=419430400000 messages=0 doveadm(user at example.org): Debug: Quota rule: root=User quota mailbox=Trash bytes=+20971520000 (5%) messages=0 doveadm(user at example.org): Debug: dict quota: user=example.org, uri=redis:host=127.0.0.1:prefix=domain/, noenforcing=0 doveadm(user at example.org): Debug: dict quota: user=user at example.org, uri=redis:host=127.0.0.1:prefix=user/, noenforcing=0 doveadm(user at example.org): Debug: Namespace inbox: type=private, prefix=, sep=, inbox=yes, hidden=no, list=yes, subscriptions=yes location=mdbox:/var/vmail/example.org/user:INDEX=/var/vmail_indexes/example.org/user/ doveadm(user at example.org): Debug: fs: root=/var/vmail/example.org/user, index=/var/vmail_indexes/example.org/user, indexpvt=, control=, inbox=, altdoveadm(user at example.org): Debug: Namespace : Using permissions from /var/vmail/example.org/user: mode=0700 gid=default ssh: Could not resolve hostname remote: Name or service not known dsync-local(user at example.org): Debug: brain M: in state=send_mailbox_tree dsync-local(user at example.org): Debug: brain M: out state=send_mailbox_tree_deletes changed=1 dsync-local(user at example.org): Debug: brain M: in state=send_mailbox_tree_deletes dsync-local(user at example.org): Debug: brain M: out state=recv_mailbox_tree changed=1 dsync-local(user at example.org): Debug: brain M: in state=recv_mailbox_tree dsync-local(user at example.org): Error: read(remote) failed: EOF dsync-local(user at example.org): Debug: brain M: out state=recv_mailbox_tree changed=0 dsync-local(user at example.org): Error: Remote command returned error 255 $ ping imap.example.org PING imap.example.org (111.222.333.444) 56(84) bytes of data. 64 bytes from mail.example.org (111.222.333.444): icmp_req=1 ttl=63 time=0.700 ms 64 bytes from mail.example.org (111.222.333.444): icmp_req=2 ttl=63 time=0.500 ms 17.01.2013 17:31, Evgeny Basov ?????:> Hello. > > I have this settings of imapc: > > # doveconf -a | grep imapc > imapc_features > imapc_host > imapc_list_prefix > imapc_master_user > imapc_max_idle_time = 29 mins > imapc_password > imapc_port = 143 > imapc_rawlog_dir > imapc_ssl = no > imapc_ssl_ca_dir > imapc_ssl_verify = yes > imapc_user = %u