Displaying 20 results from an estimated 27 matches for "net_ip2addr".
2018 Jan 30
2
test-net.c failure
test-net.c:79: Assert failed: strcmp(net_ip2addr(&ip), "::5") == 0
test-net.c:83: Assert failed: strcmp(net_ip2addr(&ip), "::5") == 0
net_ip2addr() ........................................................ : FAILED
Hello,
Is it possible to disable DOVECOT_IPV6?
We do not use IPv6 (and hope we shall never do on e-mails)...
2011 Jul 11
1
drac plugin "net_ip2addr() failed: Operation not permitted"
Hi, I'm trying to get the drac plugin working (again) but I'm stuck with the following message:
Restarting IMAP/POP3 mail server: dovecotEDRAC: net_ip2addr() failed: Operation not permitted
This is on a Debian Squeeze box, dovecot version 1.2.15-7, drac version 1.12
Looking at the source it should print the IP in the brackets of net_ip2addr. The fact that it's just empty made me think that I may need to set an environment variable. I tried IP=&q...
2018 Jan 31
1
test-net.c failure
...erfaces.
> # If you want to specify non-default ports or anything more complex,
> # edit conf.d/master.conf.
> #listen = *, ::
> --- snip ---
>
> HTH
>
> --
> Prasad
>
> On 30/01/18 11:35 PM, Rupert Gallagher wrote:
>
>> test-net.c:79: Assert failed: strcmp(net_ip2addr(&ip), "::5") == 0
>> test-net.c:83: Assert failed: strcmp(net_ip2addr(&ip), "::5") == 0
>> net_ip2addr() ........................................................ : FAILED
>>
>> Hello,
>> Is it possible to disable DOVECOT_IPV6?
>> We do...
2006 Jun 29
3
Secure connection from "localhost" in jails
...uct imap_client *client;
- - const char *addr;
+ const char *addr, *local_addr;
if (max_logging_users > CLIENT_DESTROY_OLDEST_COUNT &&
hash_size(clients) >= max_logging_users) {
@@ -429,8 +429,10 @@
client->common.tls = ssl;
addr = net_ip2addr(ip);
+ local_addr = net_ip2addr(local_ip);
client->common.secured = ssl ||
(IPADDR_IS_V4(ip) && strncmp(addr, "127.", 4) == 0) ||
+ (IPADDR_IS_V4(ip) && strncmp(addr, local_addr,
strlen(local_addr)) == 0) ||
(...
2005 Jun 23
1
getpeername() and SSL
Hi Timo,
first of all: i'm using 0.99.14. You helped me to raw-log the client-IP
using something like this in rawlog.c:
if (net_getpeername(0, &ip, NULL) == 0) {
str = t_strdup_printf("IP: %s\n", net_ip2addr(&ip));
write_full(log_out, str, strlen(str));
}
Now i got the problem, that this doesn't work when the client is
connected using SSL. After some testing i think, the problem is, that
after calling net_getpeername() the ip-family is AF_UNIX, not AF_INET,
so net_ip2addr() returns null, but...
2003 Nov 04
0
PATCH: make local IP address available to auth modules
The attached patch makes the local IP address to which the client
connected available to the authentication modules; i.e., the local IP
address is available for substitution as %i for the mysql and pgsql
modules. We needed this feature to support thousands of our legacy
accounts which are authenticated by username/local_part (not the full
email address) and IP address (one per domain).
Timo,
2018 Jan 31
0
test-net.c failure
...n all IPv4 interfaces, "::" listens in all IPv6 interfaces.
# If you want to specify non-default ports or anything more complex,
# edit conf.d/master.conf.
#listen = *, ::
--- snip ---
HTH
--
Prasad
On 30/01/18 11:35 PM, Rupert Gallagher wrote:
> test-net.c:79: Assert failed: strcmp(net_ip2addr(&ip), "::5") == 0
> test-net.c:83: Assert failed: strcmp(net_ip2addr(&ip), "::5") == 0
> net_ip2addr() ........................................................
> : FAILED
>
>
>
> Hello,
> Is it possible to disable?DOVECOT_IPV6?
> We do not use...
2005 Mar 11
3
IP in rawlog
Hi,
i'm using dovecot with rawlog enabled. Well, i need to log the IP of the
user, too. Could you give me a hint, how this can be implemented?
Thanks and regards,
Andreas Goertz.
2006 Jan 16
0
passdb-pam: PAM_RHOST on FreeBSD >= 5.0 (where PAM != Linux-PAM)
...ha releases, but did not get to and instead always
patched myself. Now having updated to the latest snapshot (which may
be released as beta1), I stumbled on it again:
In src/auth/passdb-pam.c, where the client host is passed to PAM, the
code looks like this:
#ifdef PAM_RHOST
const char *host = net_ip2addr(&request->remote_ip);
if (host != NULL)
pam_set_item(pamh, PAM_RHOST, host);
#endif
For some reason there is a preprocessor/compile-time check whethere
there exists such a preprocessor symbol as the PAM item PAM_RHOST (why
check that? IIRC PAM_RHOST is standard and in all PAM
implemen...
2014 Aug 05
1
[Patch] mail_log plugin supports remote, local ip addresses
...uot;,
"from",
"subject",
+ "rip",
+ "lip",
NULL
};
@@ -265,6 +271,14 @@
mail_get_keywords(mail));
str_append(text, "), ");
}
+ if ((muser->fields & MAIL_LOG_FIELD_REMOTE_IP) != 0) {
+ str_printfa(text, "rip=%s", net_ip2addr(mail->box->storage->user->remote_ip));
+ str_append(text, ", ");
+ }
+ if ((muser->fields & MAIL_LOG_FIELD_LOCAL_IP) != 0) {
+ str_printfa(text, "lip=%s", net_ip2addr(mail->box->storage->user->local_ip));
+ str_append(text, ", ");
+ }...
2004 Jun 14
1
vpopmail and open smtp relay
...[VPOPMAIL_LIMIT];
struct vqpasswd *vpw;
int result;
+ const char *ip_addr_fe;
vpw = vpopmail_lookup_vqp(request->user,
vpop_user, vpop_domain);
@@ -57,6 +60,15 @@
return;
}
+ /* it is needed for open smtp relay */
+
+ ip_addr_fe = net_ip2addr(&request->client_ip);
+ if (ip_addr_fe == NULL)
+ ip_addr_fe = "??";
+
+ env_put(t_strconcat("TCPREMOTEIP=", ip_addr_fe, NULL));
+ open_smtp_relay();
+
callback(PASSDB_RESULT_OK, request);
}
diff -Naur dovecot-0.99.10.5/src/login-common/aut...
2019 Jan 03
7
gcc -> clang
Please, use clang instead of gcc. Code quality can only profit from it. I just compiled 2.3.4 and compiler stderr is full of interesting problems.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dovecot.org/pipermail/dovecot/attachments/20190103/83b1b813/attachment.html>
2008 Nov 07
6
Cannot get the libwrap patch work
Hello there,
I have been trying to make the patch work for libwrap(TCP
Wrappers) posted on http://dovecot.org/patches
<http://dovecot.org/patches%20Patch%20of%201.1> Patch of 1.1 but could not
get it work. Any help will be highly appreciated. After compiling and
running it I get error "Error: login_tcp_wrappers can't be used because
Dovecot wasn't built with
2008 Sep 25
1
patch for passdb-vpopmail in v1.1.3
...HAVE_VPOPMAIL_OPEN_SMTP_RELAY
- if (strcmp(request->service, "POP3") == 0 ||
- strcmp(request->service, "IMAP") == 0) {
+ if (strcasecmp(request->service, "POP3") == 0 ||
+ strcasecmp(request->service, "IMAP") == 0) {
const char *host = net_ip2addr(&request->remote_ip);
if (host != NULL) {
/* use putenv() directly rather than env_put() which
(in my case, auth_request->service and request->service are "pop3", so
the comparison fails and the relays file is never updated.)
James
2008 Jun 13
0
"Disable non webmail IMAP access" in vpopmail and Dovecot
...gt;->->->->->->->->->->->->->->->->->->->->->->
Hi Alessio,
i spent over 5 hours looking for a solution to this problem and i found one
working for me
in dovecot sources edit src/auth/passdb-vpopmail.c
than add
char *remotehost = net_ip2addr(&auth_request->remote_ip);
auth_request_log_info(auth_request, "vpopmail", "remote ip is: %s",
remotehost);
before if (((vpw->pw_gid & NO_IMAP) != 0 && line
than modify the condition line to look like:
if (((vpw->pw_gid & NO_IMAP) != 0 &&...
2007 Apr 19
2
dovecot-auth %c variable is not working
In "doc/variables.txt"
> For dovecot-auth there are also these variables:
>
> %c - "secured" string with SSL, TLS and localhost connections.
> Otherwise empty.
%c does not appear to be working. I am trying to use it in a MySQL query userdb and passdb query and it is always empty string.
Timo, any chance you could post a patch that fixes this?
Thanks,
2010 Nov 16
1
Help - custom vpopmail
Hi,
First, I'm not sure if dovecot should alter this, but it seems vpopmail
writes the IP into the 'remote_ip' field instead of the auth type. Dovecot
still writes the auth type.? I want both.
So I modified my vpopmail install to write an additional field into the
lastauth table.? My custom vpopmail writes the remote IP into remote_ip,
and the auth type into a 'type'
2015 Nov 02
2
auth_request_get_var_expand test fails on big endian arches.
...expand usernames .................................... : ok
auth request var expand funcs ........................................ : ok
2 / 5 tests failed
Makefile:1257: recipe for target 'check-test' failed
Looking into it I found that auth_request_get_var_expand_table ends up
calling the net_ip2addr function. This function, in turn, uses ntohl to
convert from network byte order to host byte order. In big endian machines,
that means that the string output will be
------------- big endian ---------------
+user at +domain1@+domain2
+user
+domain1 at +domain2
+service
7.91.205.21
73.150.2.210
54...
2014 Apr 24
0
Help implementing username_format in auth PAM driver
...= strdup(ctx->request->user);
+ string = strdup(pam_username_lookup(ctx->request));
if (string == NULL)
i_fatal_status(FATAL_OUTOFMEM, "Out of memory");
break;
@@ -240,7 +253,7 @@ static void set_pam_items(struct auth_request *request, pam_handle_t *pamh)
host = net_ip2addr(&request->remote_ip);
if (host != NULL)
(void)pam_set_item(pamh, PAM_RHOST, host);
- (void)pam_set_item(pamh, PAM_RUSER, request->user);
+ (void)pam_set_item(pamh, PAM_RUSER, pam_username_lookup(request));
/* TTY is needed by eg. pam_access module */
(void)pam_set_item(pamh, PAM_...
2004 Jun 14
1
PAM_RHOST item
A little problem, which is bugging me: when using PAM authentication,
Dovecot (0.99.5) does not set the PAM_RHOST item, so the PAM modules
cannot know who the client is. We need this for some PAM module doing
access control.
Changing passdb-pam.c to pam_set_item it seems trivial, but I'm bugged
as to how to get the client name from there. It seems not to be
available in the auth_request