Displaying 2 results from an estimated 2 matches for "doveadm_tcp_connect_port".
2019 Jan 04
1
Feature request: client bind address for replication
...*doveadm_username;
const char *doveadm_password;
const char *doveadm_allowed_commands;
--- dovecot-2.2.36/src/doveadm/doveadm-util.c 2018-04-30 15:52:05.000000000 +0200
+++ dovecot-2.2.36-new/src/doveadm/doveadm-util.c 2019-01-04 15:26:09.326903786 +0100
@@ -100,19 +100,29 @@
}
static int
-doveadm_tcp_connect_port(const char *host, in_port_t port)
+doveadm_tcp_connect_port(const char *host, in_port_t port, char * my_ip)
{
struct ip_addr *ips;
unsigned int ips_count;
int ret, fd;
-
+ struct ip_addr my_net_ip;
+ int use_my_ip = 0;
+ if (strcmp(my_ip,"") == 0) {
+ i_info(&...
2018 Jan 15
0
doveadm mailbox command fails if backend has an IPv6 address
...found that this only happens if the user was mapped to a backend server
reachable via IPv6:
On a director:
doveadm mailbox status -u username messages Junk
returns
Junk messages=203 (if backend is connected via IPv4)
or
Lookup of host ipv6addr:542 failed: ... (if backend is connected via IPv6)
doveadm_tcp_connect_port tried a net_gethostbyname with "ipv6addr:542"
as hostname.
I've attached a quick-and-dirty-patch (for 2.2.33.2) that fixes this (at
least for me).
Regards,
Andreas
--
! Andreas Jobs Network Operation Center !
!...