Displaying 20 results from an estimated 95 matches for "result_failure".
2014 Jun 01
0
Combining userdbs
...doesn't work as expected from the documentation.
The goal would be to set user-specific quotas for a few users with a
specific passwd-file like this :
cat /etc/dovecot/quotas
foo:x::::::userdb_quota_rule=*:storage=2G
The first userdb is passwd (with pam passwd):
userdb {
driver = passwd
result_failure = return-fail
result_internalfail = return-fail
result_success = continue-ok
skip = never
}
The second one is for the specific quota
userdb {
args = username_format=%n /etc/dovecot/quotas
driver = passwd-file
result_failure = continue
result_internalfail = continue
result_success =...
2020 Mar 30
2
Panic/Assert dns-lookup.c
...use -P to show it
first_valid_uid = 48
import_environment = TZ
last_valid_uid = 48
login_trusted_networks = 192.168.11.0/24
mail_gid = pop
mail_plugins = " mail_log notify zlib quota"
mail_uid = pop
passdb {
args = /etc/dovecot/conf.d/dovecot-ldap-domain-proxy.conf.ext
driver = ldap
result_failure = return-fail
result_success = continue-ok
}
passdb {
args = allow_real_nets=192.168.11.0/24
driver = static
result_failure = continue-ok
}
passdb {
args = /etc/dovecot/conf.d/dovecot-ldap-domain-protocol-deny.conf.ext
driver = ldap
result_failure = return-ok
result_success = return...
2018 Oct 17
2
dovecot passdb driver=checkpassword as external script for block ip
Refer to
https://dovecot.org/pipermail/dovecot/2015-March/099971.html
https://wiki.dovecot.org/PasswordDatabase
I tried to repeat the same thing.
Set these passdb:
passdb {
args = /myscript.sh ip=%r
driver = checkpassword
result_failure = return-fail
result_success = continue
}
passdb {
args = /etc/dovecot/dovecot-sql.conf.ext ( my working auth method )
driver = sql
}
Created executable /myscript.sh:
#!/bin/sh
exit 1
But I saw in the logs:
dovecot[15111]: auth: Error:
checkpassword(techdept at nestormedia.com,192.168.99.1...
2020 Mar 30
0
Panic/Assert dns-lookup.c
..._environment = TZ
> last_valid_uid = 48
> login_trusted_networks = 192.168.11.0/24
> mail_gid = pop
> mail_plugins = " mail_log notify zlib quota"
> mail_uid = pop
> passdb {
> args = /etc/dovecot/conf.d/dovecot-ldap-domain-proxy.conf.ext
> driver = ldap
> result_failure = return-fail
> result_success = continue-ok
> }
> passdb {
> args = allow_real_nets=192.168.11.0/24
> driver = static
> result_failure = continue-ok
> }
> passdb {
> args = /etc/dovecot/conf.d/dovecot-ldap-domain-protocol-deny.conf.ext
> driver = ldap
>...
2015 Nov 17
2
Disabling auth fallback to PAM
Hi folks,
According to the wiki,? it's considered a feature of Dovecot and its
ability to support multiple authentication sources that "if the
password doesn't match in the first database, it checks the next
one".
?) http://wiki.dovecot.org/Authentication/MultipleDatabases
I think it's great that Dovecot allows auth sources to be stacked
like this, but I am not sold on the
2014 Nov 21
1
Unable to see virtual users
...dy
----------
As an aside, when I copied the sample config entries from
http://wiki2.dovecot.org/UserDatabase it got config errors:
userdb {
driver = passwd-file
args = username_format=%n /etc/dovecot/users
default_fields = uid=vmail gid=vmail
override_fields =
skip = never
result_failure = continue
result_internalfail = continue
result_success = return-ok
}
The 'skip', 'result_failure', etc. entries all generated config
errors as being unknown. Since these were just explicitly setting
config variables to their default values, I deleted them. It does
seem...
2014 May 11
1
Segfault with passwd as a second userdb at auth_fields_rollback
...t_fields);
===============================================
$ dovecot --version
2.2.12
$ doveconf # passdb/userdb/auth related
passdb {
args = username_format=%u scheme=CRYPT /etc/dovecot/users
default_fields =
deny = no
driver = passwd-file
master = no
override_fields =
pass = no
result_failure = continue
result_internalfail = continue
result_success = return-ok
skip = never
}
passdb {
args =
default_fields =
deny = no
driver = pam
master = no
override_fields =
pass = no
result_failure = continue
result_internalfail = continue
result_success = return-ok
skip =...
2017 Mar 03
2
passdb evaluation order
Hello,
I could have several password databases in dovecot. And according to
http://wiki.dovecot.org/PasswordDatabase these passwdbs could allow or
deny users and they could have different result_failure and
result_sucess behaviors. So the order in which they are evaluated may be
significant.
So, how do I define this order?
--
Angel L. Mateo Mart?nez
Secci?n de Telem?tica
?rea de Tecnolog?as de la Informaci?n
y las Comunicaciones Aplicadas (ATICA)
http://www.um.es/atica
Tfo: 868889150
Fax: 86...
2020 Sep 03
0
ltmp delivery with ldap and prefetch
...rs =
uid=%{ldap:uidNumber},gid=%{ldap:gidNumber},home=%{ldap:homeDirectory}
[2] pass / user db's
passdb {
args = /etc/dovecot/dovecot-ldap.conf.ext
auth_verbose = default
default_fields =
deny = no
driver = ldap
master = no
mechanisms =
name =
override_fields =
pass = no
result_failure = continue
result_internalfail = continue
result_success = return-ok
skip = never
username_filter =
}
userdb {
args = /etc/dovecot/special-userdb
auth_verbose = default
default_fields =
driver = passwd-file
name =
override_fields =
result_failure = continue
result_internalfa...
2007 Jul 30
1
MeetMe through DeadAGI has changed to return -1 on Hangup
...s = ast_playstream(fs);
> if (res) {
> fdprintf(agi->fd, "200 result=%d endpos=%ld\n",
res, sample_offset);
> if (res >= 0)
> return RESULT_SHOWUSAGE;
> else
> return RESULT_FAILURE;
> }
625c632,639
< ast_playstream(fs);
---
> res = ast_playstream(fs);
> if (res) {
> fdprintf(agi->fd, "200 result=%d endpos=%ld\n",
res, sample_offset);
> if (res >= 0)
>...
2017 Jan 19
5
Segfault on LIST Command
...service imap {
executable = imap postlogin
}
service pop3 {
executable = pop3 postlogin
}
service postlogin {
executable = script-login -d rawlog
}
service quota-warning {
executable = script /bin/quota-warning.sh
}
ssl = no
userdb {
args = /etc/dovecot/userdb-ldap.conf
driver = ldap
result_failure = return-fail
result_internalfail = return-fail
result_success = continue-ok
}
userdb {
default_fields = quota_bytes=42M
driver = bdb_quota
override_fields = quota_rule=*:bytes=%{userdb:quota_bytes}
result_failure = return-fail
result_internalfail = return-fail
result_success = cont...
2020 Mar 30
2
Panic/Assert dns-lookup.c
...48
> > login_trusted_networks = 192.168.11.0/24
> > mail_gid = pop
> > mail_plugins = " mail_log notify zlib quota"
> > mail_uid = pop
> > passdb {
> > args = /etc/dovecot/conf.d/dovecot-ldap-domain-proxy.conf.ext
> > driver = ldap
> > result_failure = return-fail
> > result_success = continue-ok
> > }
> > passdb {
> > args = allow_real_nets=192.168.11.0/24
> > driver = static
> > result_failure = continue-ok
> > }
> > passdb {
> > args = /etc/dovecot/conf.d/dovecot-ldap-domain-pro...
2015 Mar 05
1
RBL with stock Dovecot 2.2.15 (was Re: IP drop list)
...SIGNED MESSAGE-----
Hash: SHA1
Steffen Kaiser wrote:
> passdb { driver = ipdeny args = <host>/matchpattern/action ....
> *** }
>
With next passdb{} as 1st in chain:
passdb {
driver = checkpassword
args = "/tmp/chktst ip=%r service=%s"
result_success = continue
result_failure = return-fail
}
and this script
BEGIN /tmp/chktst
#!/bin/bash
echo "$@" >>/tmp/chktst.log
# return OK
exit 0
# return FAIL
exit 1
END
I get the log entry:
ip=127.0.0.1 service=imap
/usr/local/dovecot-2.2.15/libexec/dovecot/checkpassword-reply
and with exit 0, the next passdb{} l...
2015 Nov 21
0
Disabling auth fallback to PAM
...ic is PAM.. And PAM doesn't necessarily tell you if the problem is that the user doesn't exist or that the password doesn't match. Another similar problem is checkpassword script. And LDAP with auth_bind=yes. And some ways of configuring SQL..
But.. Right now passdb has result_success, result_failure and result_internalfail. I suppose it should be possible to add result_user_unknown there that defaults to result_failure if it's not explicitly set. It wouldn't work with all passdb setups, but it would work for some. I've added it to my TODO list, but that's quite long already and...
2017 Jan 23
1
Log authentication attempts
...d successful login attempts. We need to record remote IP, entered password in plain text, and if possible whether auth request is for SMTP or IMAP session.
I checked http://wiki.dovecot.org/PostLoginScripting and noticed that post-login scripts are executed only after result_success, but not after result_failure (password mismatch).
Also I read http://wiki.dovecot.org/PasswordDatabase where I saw that since version 2.2.10 it is possible to control what happens after passdb check, but allowed result values don't include executing custom script.
Does anyone know a way to call external binary / script,...
2017 Feb 24
2
Users with multiple password
Hi!
~ dovecot --version
2.2.22 (fe789d2)
I am wondering if there is a way to set up virtual users with multiple
valid passwords. We want to be able to provide users with
device/app-specific passwords for their email accounts, as well as being
able to create temporary "access tokens" for technical support when
required.
I quickly found out that passdb using passwd-file or an
2014 Jan 25
1
userdb maildir permission denied in 2.1.7
Dear All,
I'm using version 2.1.7 which currently ships with debian stable.
I'd like to use
userdb {
driver = passwd-file
args = username_format=%n /etc/dovecot/users
default_fields = uid=vmail gid=vmail
override_fields =
skip = never
result_failure = continue
result_internalfail = continue
result_success = return-ok
}
from [1].
The error message is:
Jan 25 14:02:03 post1 dovecot: lda(chris): Error: user chris:
Initialization failed: Namespace '': stat(/home/vmail/chris/Maildir)
failed: Permission denied (euid=1000(chris) egid=1...
2014 Sep 22
0
numeric username
...jklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@
auth_username_format = %Ln
auth_username_translation =
...
lmtp_address_translate =
...
passdb {
args = cache_key=%u%s dovecot
default_fields =
deny = no
driver = pam
master = no
name =
override_fields =
pass = no
result_failure = continue
result_internalfail = continue
result_success = return-ok
skip = never
}
...
service lmtp {
chroot =
client_limit = 1
drop_priv_before_exec = no
executable = lmtp
extra_groups =
group =
idle_kill = 0
privileged_group =
process_limit = 0
process_min_...
2016 Aug 22
2
LMTP doing passdb queries ?
Hi,
I can see dovecot is doing a passdb query when handling the LMTP RCPT
command.
That's kinda unexpected for me. I would have thought it only did a
userdb lookup.
I have disabled lmtp_proxy to be sure it didn't do a passdb lookup to
check the proxy field.
Is this expected? Doesn't the LDA only do userdb lookups?
/Peter
2016 Jul 10
3
Panic: file mdbox-save.c: line 337: unreached
..." {
special_use = \Sent
}
mailbox Spam {
auto = no
autoexpunge = 90 days
special_use = \Junk
}
mailbox Trash {
autoexpunge = 90 days
special_use = \Trash
}
prefix =
separator = /
}
passdb {
args = /etc/dovecot/dovecot-ldap-old.conf.ext
driver = ldap
result_failure = continue-fail
result_internalfail = continue-fail
result_success = continue-ok
skip = authenticated
}
passdb {
args = /etc/dovecot/dovecot-ldap-new.conf.ext
driver = ldap
result_failure = return-fail
result_internalfail = return-fail
result_success = continue-ok
skip = authentic...