search for: env_put

Displaying 19 results from an estimated 19 matches for "env_put".

2009 Nov 10
2
v1.2.7 released
http://dovecot.org/releases/1.2/dovecot-1.2.7.tar.gz http://dovecot.org/releases/1.2/dovecot-1.2.7.tar.gz.sig * IMAP: IDLE now sends "Still here" notifications to same user's connections at the same time. This hopefully reduces power usage of some mobile clients that use multiple IDLEing connections. * IMAP: If imap_capability is set, show it in the login banner. + IMAP:
2009 Nov 10
2
v1.2.7 released
http://dovecot.org/releases/1.2/dovecot-1.2.7.tar.gz http://dovecot.org/releases/1.2/dovecot-1.2.7.tar.gz.sig * IMAP: IDLE now sends "Still here" notifications to same user's connections at the same time. This hopefully reduces power usage of some mobile clients that use multiple IDLEing connections. * IMAP: If imap_capability is set, show it in the login banner. + IMAP:
2003 Apr 15
1
PATCH allow_zero_gid option
...estrict-access.c 15 Apr 2003 17:37:26 -0000 @@ -31,12 +31,14 @@ #include <grp.h> void restrict_access_set_env(const char *user, uid_t uid, gid_t gid, - const char *chroot_dir) + const char *chroot_dir, int allow_zg) { if (user != NULL && *user != '\0') env_put(t_strconcat("RESTRICT_USER=", user, NULL)); if (chroot_dir != NULL && *chroot_dir != '\0') env_put(t_strconcat("RESTRICT_CHROOT=", chroot_dir, NULL)); + if (allow_zg == TRUE) + env_put(t_strdup("ALLOW_ZERO_GID=TRUE")); env_put(t_strdup_printf(...
2018 May 30
0
use instance-name for syslog?
...index bc10df1..47ee7bf 100644 --- a/src/master/service-process.c +++ b/src/master/service-process.c @@ -222,6 +222,7 @@ static void service_process_setup_config_environment(struct service *service) /* give the log's configuration directly, so it won't depend on config process */ env_put("DOVECONF_ENV=1"); + env_put(t_strconcat("INSTANCE_NAME=", set->instance_name, NULL)); env_put(t_strconcat("LOG_PATH=", set->log_path, NULL)); env_put(t_strconcat("INFO_LOG_PATH=", set->info_log_path, NULL)); env_put(t_strconcat("DEBUG...
2018 May 30
3
use instance-name for syslog?
Hello, When running multiple instances of dovecot on the same host (or running multiple docker container), it is hard to distinguish logs from different processes: the syslog entries are all prefixed with the same identifier "dovecot" It is hardcoded here: https://github.com/dovecot/core/blob/master/src/lib-master/master-service.c#L420 Would it make sense to use the already implemented
2003 Sep 10
1
Patch for auto-creating home directories
...umask != 0777 && + !create_directories(full_home_dir, set->parent_dir_umask)) + i_fatal("mkdir(%s) failed: %m", full_home_dir); if (chdir(full_home_dir) < 0) i_fatal("chdir(%s) failed: %m", full_home_dir); } *************** *** 188,194 **** env_put("MAILDIR_CHECK_CONTENT_CHANGES=1"); if (set->mail_full_filesystem_access) env_put("FULL_FILESYSTEM_ACCESS=1"); - (void)umask(set->umask); env_put(t_strconcat("MBOX_LOCKS=", set->mbox_locks, NULL)); env_put(t_strdup_printf("MBOX_LOCK_TIMEOUT...
2018 May 31
3
use instance-name for syslog?
...ul to always find dovecot processes. > - openlog(ident, options, facility); > + static char *syslog_ident = NULL; > + > + i_free(syslog_ident); > + syslog_ident = i_strdup(ident); > + > + openlog(syslog_ident, options, facility); I don't think this is necessary? > + env_put(t_strconcat("INSTANCE_NAME=", set->instance_name, NULL)); Also not needed. But yeah, I guess in general it would make sense to use instance_name for syslog ident.
2007 Jul 25
2
Allowing tilde at start of mailbox names
...= 0x800 }; enum mail_storage_lock_method { diff -r a23be6956727 -r ab9cf3790ea9 src/master/mail-process.c --- a/src/master/mail-process.c Tue Jul 24 05:48:03 2007 +0300 +++ b/src/master/mail-process.c Wed Jul 25 14:08:43 2007 +0100 @@ -254,6 +254,8 @@ mail_process_set_environment(struct sett env_put("DEBUG=1"); if (set->mail_full_filesystem_access) env_put("FULL_FILESYSTEM_ACCESS=1"); + if (set->mail_allow_tilde) + env_put("ALLOW_TILDE=1"); if (set->pop3_no_flag_updates) env_put("POP3_NO_FLAG_UPDATES=1"); if (set->pop3_reuse_xuid...
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
2005 Jul 20
3
Another minor IMAP LIST issue
I've just noticed that Dovecot 1.0-stable and 1.0-test78 don't include mbox folders with names beginning with "." in the IMAP LIST output. These are often used to store "hidden" folders for storing things like IMAP client configuration (e.g. Pine 4.x, IMHO, Prayer). Usually the user shouldn't be able to see these, but there are occassions when they might. It seems
2009 Sep 03
2
mail_uid and mail_gid are not set in environment (for expire-tool and so)
...log/} exec /usr/lib/dovecot/expire-tool "$@" It politely tells me: Error: userdb(user at domain) didn't return uid and mail_uid not set Actually, this is this message error that lead me to check the environment variables. Then I also checked the source code, and run: grep -r env_put . | grep -i mail_ No trace of mail_uid nor mail_gid. Did I find a bug or did I miss a point ? Regards, -- Baptiste MALGUY - http://www.malguy.net PGP fingerprint: 49B0 4F6E 4AA8 B149 B2DF 9267 0F65 6C1C C473 6EC2
2004 Jun 14
1
vpopmail and open smtp relay
..._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/auth-connection.c dovecot-0.99.10.5-patched/src/login-common/auth-connection.c --- dovecot-0.99.10.5/src/login-common...
2008 Nov 08
1
dovecot Digest, Vol 67, Issue 19
...process_name == NULL ? argv[0] : process_name+1; group_name = t_strcut(process_name, '-'); for (i = 1; i < argc; i++) { --- src/master/login-process.c.orig 2008-06-12 23:38:01.000000000 +0200 +++ src/master/login-process.c 2008-07-07 19:51:45.000000000 +0200 @@ -573,6 +573,8 @@ env_put(t_strconcat("LOG_FORMAT=", set->login_log_format, NULL)); if (set->login_greeting_capability) env_put("GREETING_CAPABILITY=1"); + if (set->login_tcp_wrappers) + env_put("TCP_WRAPPERS=1"); if (group->mail_process_type == PROCESS_TYPE_IMAP) { env...
2019 Jan 06
3
IMAP preauth and stats-writer
...it for this to be picked up for FreeBSD ports. This code seems safer than the original but it is still a mystery as to why DOVECOT_STATS_WRITER_SOCKET_PATH is being put into the environment as an empty string (changed behaviour reported by OP compared to 2.3.2.1_1). The function that is doing the env_put call with the empty string is config_request_putenv from src/config/doveconf.c. John
2018 Jun 01
0
use instance-name for syslog?
...yslog_ident = NULL; > > + > > + i_free(syslog_ident); > > + syslog_ident = i_strdup(ident); > > + > > + openlog(syslog_ident, options, facility); > > > I don't think this is necessary? Sorry. I'm not expert of Dovecot implementation... > > + env_put(t_strconcat("INSTANCE_NAME=", set->instance_name, NULL)); > > Also not needed. I think $INSTANCE_NAME environment variable is useful for external program, e.g., custom checkpassword program. > But yeah, I guess in general it would make sense to use instance_name for syslog...
2008 Sep 25
1
patch for passdb-vpopmail in v1.1.3
...quest->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
2013 Sep 21
1
Passing info from mail process to mail_filter plugin script?
...t sure if this is possible. Opening the file in the IMAP main.c fails, presumably due to file descriptor limits, but I don't see where restrict_fd_limit() is called there. My second choice for passing this info would be in an environment variable or argument to the mail filter script. Adding env_put() to the IMAP code doesn't seem to get the value passed to the script, presumably because the environment is getting cleared, but again I'm not certain where the list of env vars to keep is set here. There may be another way to accomplish this that I'm not thinking of? Any assistance...
2019 Jan 06
2
IMAP preauth and stats-writer
On 06/01/2019 02:26, John Fawcett wrote: > On 05/01/2019 15:49, Mark Hills wrote: >> I use IMAP preauth; I connect with Alpine over SSH which is very useful. >> >> The last few upgrades this has become more difficult to to. Last time >> (moving 2.2 -> 2.3, I think) I had to put in a workaround: >> >> stats_writer_socket_path = >> >> It
2010 Apr 09
4
Patch: support URLAUTH, BURL, CATENATE
...-Nur dovecot-1.2.11/src/auth/db-checkpassword.c dovecot-1.2.11+lemonade/src/auth/db-checkpassword.c --- dovecot-1.2.11/src/auth/db-checkpassword.c 2010-01-24 17:14:17.000000000 -0600 +++ dovecot-1.2.11+lemonade/src/auth/db-checkpassword.c 2010-04-08 09:59:12.000000000 -0500 @@ -120,6 +120,13 @@ env_put(t_strconcat("MASTER_USER=", request->master_user, NULL)); } + + /* APPLE - urlauth */ + if (request->submit_user != NULL) { + env_put(t_strconcat("SUBMIT_USER=", + request->submit_user, NULL)); + } + if (request->extra_fields != NULL) { const...