Displaying 20 results from an estimated 824 matches for "last_valid_uid".
2013 Jan 31
3
Userdb passwd and 'nologin' users
...but I am in the process of switching
to dbox which means I will need a cronjob running 'doveadm purge -A'.
During testing I found that those users with a 'nologin' shell are not
included in the list returned by the userdb iterator, and that the
iterator doesn't honour the first/last_valid_uid settings. This
inconsistency seems undesirable, so the attached patch
- makes lookup perform the same checks as iteration,
- makes the 'nologin' check configurable,
- adds a new optional check that the user owns their home directory.
The last check was the one performed by qma...
2016 Apr 21
2
Setting up replication?
...nute2 dovecot: doveadm(nobody): Error: sync: Failed >to
>> start dsync-server command: 75
>> knute at knute2:/etc/dovecot/conf.d $ sudo doveadm user '*'
>> nobody
>> knute
>> penny
> You can add to conf.d/10-mail.conf
>
> first_valid_uid = 1000
> last_valid_uid = 2000
>
> You have nobody uid 65534 so make last_valid_uid less than you have in
> your /etc/passwd. Same thing with the first_valid_uid just pick first
> uid after users start in your /etc/passwd
>
>> I don't know why the user 'nobody' shows up here? nobody is in...
2017 Nov 20
3
Doveadm backup error.
...45
home /home/mail/vhosts/test.pl/ah at test.pl <http://i-pi.pl/ahuryn at i-pi.pl>
mail mdbox:~/mdbox
quota_rule *:storage=50000M
mx3:/root/dsync@[22:14] # id 145
uid=145(vmail) gid=145(vmail) groups=145(vmail)
mx3:/root/dsync@[1:14] # doveconf -n | grep 145
first_valid_uid = 145
last_valid_uid = 145
I dont have any idea whats is the problem.
Best regards.
2016 Apr 21
2
Setting up replication?
...gt; start dsync-server command: 75
>>>> knute at knute2:/etc/dovecot/conf.d $ sudo doveadm user '*'
>>>> nobody
>>>> knute
>>>> penny
>>> You can add to conf.d/10-mail.conf
>>>
>>> first_valid_uid = 1000
>>> last_valid_uid = 2000
>>>
>>> You have nobody uid 65534 so make last_valid_uid less than you have in
>>> your /etc/passwd. Same thing with the first_valid_uid just pick first
>>> uid after users start in your /etc/passwd
>>>
>>>> I don't know why the us...
2007 May 05
2
ldap and digest-md5 problem
...yes
login_processes_count = 2
login_max_processes_count = 10
login_user = dovecot
login_dir = /var/run/dovecot/login
login_chroot = yes
mail_location = maildir:/var/mail/%d/%n
mail_extra_groups = postfix
mail_full_filesystem_access = no
mail_debug = no
verbose_proctitle = yes
first_valid_uid = 2000
last_valid_uid = 2000
first_valid_gid = 2000
last_valid_uid = 2000
maildir_copy_with_hardlinks = yes
disable_plaintext_auth = yes
protocol imap {
imap_client_workarounds = outlook-idle
}
protocol lda {
postmaster_address = postmaster at domain.com
hostname = domain.com
mail_plugins = cmusieve
}
auth_de...
2016 Sep 01
2
Dsync config help
...- permission denied errors:
Aug 31 21:37:14 serverA dovecot: dsync-server(user2): Error: net_connect_unix(/var/run/dovecot/replicator-doveadm) failed: Permission denied
I also get errors for user ?nobody? with uid?65534. To avoid them I added?
10-mail.conf:first_valid_uid = 2000
10-mail.conf:last_valid_uid = 3000
but I still get some errors, different ones now:
Sep ?1 00:13:42 shaun dovecot: doveadm(a.b.c.d,nobody): Error: Mail access for users with UID 65534 not permitted (see first_valid_uid in config file, uid from userdb lookup).
Sep ?1 00:13:42 shaun dovecot: doveadm(a.b.c.d,nobody): Error:...
2016 Aug 29
2
Automatic purging of old email in all mailboxes
...ess what I do.
doveadm expunge -A mailbox INBOX savedbefore 7d
> Error: User listing returned failure
> doveadm: Error: Failed to iterate through some users
I think this may be avoided (or made into warnings) if you bracket all
user UID ranges with
first_valid_uid = {first user uid}
last_valid_uid = {last user uid}
Sean Greenslade <sean at seangreenslade.com> then writes:
> Since you're using maildirs as the storage backend, it might be easier
> to just write a small script in the language of your preference (bash,
> python, perl, etc.) that walks the directory tree and...
2017 Oct 26
4
Initialization failed: Namespace '': mkdir(/var/www/mail) failed: Permission denied
...d? Why do I get this error now for the first time,
>> when there was no change to the system configuration?
>>
>> Probably someone attempted to send email via a crappy script and
>> it's now trying to deliver to www-data.
>>
>> first_valid_uid = 1001
>> last_valid_uid = 1001
>>
>> also, doveconf -n would be useful.
>> Aki
>>
>> Here is doveconf -n:?https://pastebin.com/raw/s6cKwHGc
>
> Home directory is provided by passwd userdb when present in passwd
> file. to override it, use
>
> userdb {
> ? driver = passwd
&...
2003 Apr 15
1
PATCH allow_zero_gid option
...2003 02:09:41 -0000 1.16
+++ src/master/master-settings.c 15 Apr 2003 17:37:28 -0000
@@ -46,6 +46,7 @@ static struct setting_def setting_defs[]
DEF(SET_INT, max_mail_processes),
DEF(SET_BOOL, verbose_proctitle),
+ DEF(SET_BOOL, allow_zero_gid),
DEF(SET_INT, first_valid_uid),
DEF(SET_INT, last_valid_uid),
DEF(SET_INT, first_valid_gid),
@@ -153,6 +154,7 @@ struct settings default_settings = {
MEMBER(max_mail_processes) 1024,
MEMBER(verbose_proctitle) FALSE,
+ MEMBER(allow_zero_gid) FALSE,
MEMBER(first_valid_uid) 500,
MEMBER(last_valid_uid) 0,
MEMBER(first_valid_gid) 1,
Index: src/mast...
2017 Oct 26
2
Initialization failed: Namespace '': mkdir(/var/www/mail) failed: Permission denied
...; $HOME/MAIL configured? Why do I get this error now for the first time,
>> when there was no change to the system configuration?
>
> Probably someone attempted to send email via a crappy script and
> it's now trying to deliver to www-data.
>
> first_valid_uid = 1001
> last_valid_uid = 1001
>
> also, doveconf -n would be useful.
> Aki
Here is doveconf -n:?https://pastebin.com/raw/s6cKwHGc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-keys
Size: 1718 bytes
Desc: PGP Public Key
URL: <https://do...
2023 Mar 15
1
Postfix : root and system user authentication
...15, 2023 at 1:46?AM Aymeric Agon-Rambosson <
aymeric.agon at yandex.com> wrote:
>
> Hello everyone,
>
> From what I understand of the documentation, it is impossible to
> log in to the dovecot server as root, or as any user not in the
> interval between first_valid_uid and last_valid_uid.
>
https://doc.dovecot.org/configuration_manual/authentication/master_users/
--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", egrep -v '^$|^.*#' ?\_(?)_/? :-)
-------------- next part --------------
An HTML attachment was...
2005 Jan 01
1
failed with uid Permission denied
Hi
Does somebody know the workaround
I have some users, who are able to log in to dovecot but others not....
even the failpermissions in directories are same. Also mbox folder is
excatly same mail
Some settings in /etc/dovecot.conf
first_valid_uid = 500
last_valid_uid = 1500
first_valid_gid = 500
last_valid_gid = 515
default_mail_env = mbox:~/mail:INBOX=/var/spool/mail/%u
So the "someuser" is able to log in but "testuser" not
log from testuser logging in
somehost imap-login: Login: testuser [193.x.x.x]
somehost dovecot: chdir(/home/gues...
2005 Oct 29
3
login_user & first_valid_uid
Hi all,
I have next settings in .conf file
...
#
# Login user for SQL-based virtual users
#
login_user = dovecot
first_valid_uid = 100
first_valid_gid = 100
...
System user dovecot has UID/GID = 101/101. But every time when user logins
I see in log file
Oct 29 15:51:25 orion dovecot: Logins with login process UID 101 (user elnino) not permitted (see login_user in config file).
Oct 29
2013 Dec 16
2
connection Dovecot to samba4
...p samba4/openchange and dovecot. Does anyone has
experiences concering dovecot connecting to samba4 ??
I tried the following:
/etc/dovecot.conf:
protocols = imap sieve
mail_location = maildir:/data/mail/%d/%n/Maildir
mail_access_groups = vmail
mail_privileged_group = vmail
first_valid_uid = 110
last_valid_uid = 110
first_valid_gid = 115
last_valid_gid = 115
log_path = /var/log/dovecot
log_timestamp = "%Y-%m-%d %H:%M:%S "
login_greeting = Welcome to domain.local.
service imap {
inet_listener {
port=143
}
}
protocol lda {
log_path = /var/log/mail/dovecot-deliver.log
auth_s...
2015 Jun 19
4
question about /var/mail/xxx
...fine.
All mails go to /var/mail/xxx
this is problem for dovecot. dovecot cannot get it.
# 2.2.13: /etc/dovecot/dovecot.conf
# OS: Linux 3.16.0-4-amd64 x86_64 Debian 8.1
auth_mechanisms = plain login
auth_verbose = yes
auth_verbose_passwords = yes
disable_plaintext_auth = no
first_valid_uid = 116
last_valid_uid = 116
log_path = /var/log/dovecot.log
mail_home = /srv/mail/%u
mail_location = mbox:~/mail:INBOX=/var/mail/%u
mail_privileged_group = mail
namespace inbox {
inbox = yes
location =
mailbox Drafts {
special_use = \Drafts
}
mailbox Junk {
special_use = \Junk
}
mailbox Se...
2017 Oct 24
0
Fwd: master/master replications v. 2.2.32
doveconf -n
# 2.2.32 (dfbe293d4): /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-696.1.1.el6.x86_64 x86_64 CentOS release 6.9 (Final) ext3
auth_socket_path = /var/run/dovecot/auth-userdb
doveadm_password = # hidden, use -P to show it
doveadm_port = 61800
first_valid_uid = 150
last_valid_uid = 150
mail_location = maildir:/var/vmail/%d/%n
mail_plugins = notify replication
mail_privileged_group = mail
mbox_write_locks = fcntl
passdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
plugin {
mail_replica = tcp:xxx.xxx.xxx.xxx
}
postmaster_address = postmaster at it911.mx
ser...
2017 Jan 19
5
Segfault on LIST Command
...geonhole version 0.4.16 (1dc4c73)
# OS: Linux 3.16.0-4-amd64 x86_64 Debian 8.6
auth_debug = yes
auth_debug_passwords = yes
auth_socket_path = /var/run/dovecot/auth-userdb
auth_verbose = yes
base_dir = /var/run/dovecot/
default_internal_user = pop
first_valid_uid = 48
import_environment = TZ DEBUG=1
last_valid_uid = 48
login_trusted_networks = ****
mail_debug = yes
mail_gid = pop
mail_plugins = " mail_log notify zlib quota"
mail_uid = pop
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character
vacation subaddress comparator-i;ascii-numeric re...
2006 Aug 02
2
Cyrus + ldap
...the following error
Starting Dovecot Imap: Error: Error in configuration
file /etc/dovecot.conf line 16: Unknown setting: passdb
My dovcot.conf file:
protocols = imap pop3
login_dir = /var/run/dovecot/login
login_chroot = yes
disable_plaintext_auth = no
login_user = dovecot
first_valid_uid = 101
last_valid_uid = 101
first_valid_gid = 101
last_valid_gid = 101
valid_chroot_dirs =/home/vmail/domains
default_mail_env = maildir:/home/vmail/domains/%d/%n
auth = default
auth_mechanisms = plain
auth_userdb = ldap /etc/dovecot-ldap.conf
auth_pass = ldap /etc/dovecot-ldap.conf
auth_executable = /usr/libexec/doveco...
2010 Jul 22
1
Upgrade 1.1 to 1.2 double check
...: /var/log/dovecot/dovecot.log
info_log_path: /var/log/dovecot/dovecot-info.log
protocols: imap imaps
listen: *:143
ssl_listen: *:993
login_dir: /var/run/dovecot/login
login_executable: /usr/libexec/dovecot/imap-login
login_greeting_capability: yes
valid_chroot_dirs: /var/mail
first_valid_uid: 5000
last_valid_uid: 5000
first_valid_gid: 5000
last_valid_gid: 5000
mail_access_groups: mail
mail_location: maildir:~/Maildir
mail_debug: yes
maildir_copy_preserve_filename: yes
imap_client_workarounds: outlook-idle
auth default:
mechanisms: plain login CRAM-MD5
default_realm: example.com
master_user_separat...
2010 Dec 16
2
dovecot 2.0.8 LDA with MYSQL issues
..., gid, '/var/vmail/%d/%n' as home FROM users WHERE
userid = '%u'
[root at testip5 conf.d]# dovecot -n
# 2.0.8: /usr/local/etc/dovecot/dovecot.conf
# OS: Linux 2.6.18-194.el5PAE i686 CentOS release 5.5 (Final) ext3
auth_mechanisms = plain login cram-md5
first_valid_uid = 101
last_valid_uid = 101
login_greeting = MegaNet Mail Server Ready.
mail_gid = vmail
mail_location = maildir:/var/vmail/%d/%u
mail_uid = vmail
passdb {
args = /usr/local/etc/dovecot/conf.d/sql.conf
driver = sql
}
plugin {
acl = vfile:/usr/local/etc/dovecot/acls
quota = maildir:storage=10240:message...