search for: net_addr2ip

Displaying 8 results from an estimated 8 matches for "net_addr2ip".

2020 Oct 15
2
how to set smtp-client -> submission_relay_host for IPv4 only?
On 10/15/20 2:02 PM, jeremy ardley wrote: >> how/where do I configure (just) the dovecot smtp-client -> submission_relay_host to only connect IPv4? > > It appears your host has A and AAAA records in your DNS. The clients will try IPV6 first if they see an AAAA record. > > If you don't need IPV6 for your host remove the AAAA record. All connections will then only use
2011 Mar 25
1
Ignored proxy_maybe var and no local login when "host = Proxy FQDN"
...h/auth-request.c" which appears: Mar 25 14:10:49 debian dovecot: auth: Debug: ldap(steran,172.26.98.85): result: uid(user)=steran maildrop(host)=smtp2.tsj-dem.gob.ve Mar 25 14:10:49 debian dovecot: auth: Debug: BROKEN SETUP The modifications appears here and reveals problems with the call to net_addr2ip(host, &ip) in auth_request_proxy_is_self: static bool auth_request_proxy_is_self(struct auth_request *request) { const char *const *tmp, *host = NULL, *port = NULL, *destuser = NULL; struct ip_addr ip; tmp = auth_stream_split(request->extra_fields); for (; *...
2017 Aug 03
2
proxy-dict with tcp connection
..., dict->warn_slow_msecs = warn_slow_msecs; i_array_init(&dict->cmds, 32); - if (uri[0] == ':') { + args = t_strsplit(uri, ":"); + for(argc=0; args[argc] != NULL; argc++); + + if (argc == 3) { /* host:ip:somewhere --> argc == 3 */ + if (net_addr2ip(args[0], &ip) < 0) { + *error_r = t_strdup_printf("Invalid IP: %s in URI: %s", args[0], uri); + return -1; + } + if (net_str2port(args[1], &port) < 0) { + *error_r = t_strdup_printf("Invalid port: %s in URI: %s", args[...
2006 Nov 18
2
Auth checking also the service
Hello everyone. I'm switching to dovecot from courier-imap and after some problems with Apple Mail client, now everything seems to be fine. The only problem that I have not solved yet is to check also the service (pop3, pop3s, imap, imaps) in the authentication phase. In courier-authlib I do this: MYSQL_SELECT_CLAUSE SELECT username, \ password, \
2015 Jun 23
0
Assert test not compatible with s390(x) and ppc64 architectures
Hi, we have found that assert test fails on some architectures: test-net.c:59: Assert failed: net_addr2ip("127.0.0.1", &ip) == 0 && ip.family == AF_INET && ip.u.ip4.s_addr == (127 | (1 << 24)) It seems as bug in test suit as test is expecting IPv4 address in LE format (0x0100007f), but it gets address in BE format(0x7f000001). Patch in attachment should fix this...
2017 Aug 03
0
proxy-dict with tcp connection
...low_msecs; > i_array_init(&dict->cmds, 32); > > - if (uri[0] == ':') { > + args = t_strsplit(uri, ":"); > + for(argc=0; args[argc] != NULL; argc++); > + > + if (argc == 3) { /* host:ip:somewhere --> argc == 3 */ > + if (net_addr2ip(args[0], &ip) < 0) { > + *error_r = t_strdup_printf("Invalid IP: %s in URI: %s", > args[0], uri); > + return -1; > + } > + if (net_str2port(args[1], &port) < 0) { > + *error_r = t_strdup_printf("Invalid po...
2019 Jan 04
1
Feature request: client bind address for replication
...ort, 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("No doveadm_local_ip setting, local ip supplied by operating system"); + } + if (net_addr2ip(my_ip, &my_net_ip)) { + i_error("error using doveadm_local_ip setting %s",my_ip); + } else { + i_info("Using doveadm_local_ip setting: %s",my_ip); + use_my_ip = 1; + } alarm(DOVEADM_TCP_CONNECT_TIMEOUT_SECS); ret = net_gethostbyname(host, &...
2006 Apr 28
1
imaptest, with options!
I hacked some command line options into imaptest. I dont think I broke it.. Place into dovecot-source root as usual and compile with: gcc imaptest.c -o imaptest -Wall -W -I. -Isrc/lib -DHAVE_CONFIG_H src/lib/liblib.a As per Timo's instructions. # imaptest -h imaptest [USER at IP:PORTNO] [pass=PASSWORD] [mbox=MBOX] [clients=CC] [msgs=NMSG] [use_authenticate] [PORTNO] USER = template for