Displaying 20 results from an estimated 539 matches for "user_queries".
2010 May 03
4
Dovecot SQL user_query
Hello folkz,
Is it possible to setup in dovecot-sql.conf file to run user_query
twice if its first run didn't yield any values.
And likewise don't proceed with the second run if the first user_query
execution produced the result.
I have to query two tables which specify there email messages shall be
delivered via Dovecot deliver LDA
depending on the incoming email addresses.
Please
2007 Jul 11
1
Fixing lda user_query error introduces new fault in mail delivery
I was getting these errors below and after fixing it delivery errors
were introduced
dovecot/error_log
==============
dovecot: Jul 11 06:19:28 Error: auth-worker(default):
sql(user at domain.com): User query failed: Table 'postfix.users' doesn't
exist
deliver(user at domain.com): Jul 11 06:19:28 Error: BUG: Unexpected input
from auth master: FAIL 1
dovecot: Jul 11 06:21:41 Error:
2010 Sep 25
1
password_query, user_query and unrelated userid and emails
Let's say one has a SQL table with following fields for John Doe:
login: u0007
password: {SHA1}...
mailhome: /path/to/joeshome
email: john.doe at example.com
To log in, for internal policy reasons, John MUST make use of his userid "u0007".
So, in the password_query, one would need something like:
... WHERE login = '%u' ...
On the other hand, for receiving mail thru
2011 May 16
1
user_query and mail_plugins in database
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all,
I have a problem with mail_plugins in dovecot-2.0.x. I will use
mail_plugins within a database, so that I can define plugins for users
in the database.
But I get errors like this.
- -----------------------------%<------------------------------------
lmtp(3933): Error: Can't load plugin imap_quota_plugin: Plugin is
intended to be
2008 Jul 06
1
Dovecot failed with a correct sql user_query
Dovecot (1.1.1) criticises a sql user_query that's working on the sql
console and thats correct.
DOVECOT-LOG:
"dovecot: Jul 06 22:58:29 Error: auth(default): sql(nti): User query
failed: ERROR: syntax error at or near "mbox"
dovecot: Jul 06 22:58:29 Error: auth(default): LINE 1: ...gid, home,
(CASE WHEN smtp like '/var/pop3/ THEN 'mbox:' || ..."
QUERY:
2017 Oct 10
2
Mail Alias Stores in mySQL Not working
First of all excuse.. I am having an issue getting maillist responses so I may be responding to this worng
No on topic
I commented out the first user_quesry
The second query was not copied correctly , reads
user_query = SELECT CONCAT('/var/vmail/mail/', maildir) AS home, 5000 AS uid, 5000 AS gid, CONCAT('*:bytes=', quota) AS quota_rule FROM mailbox WHERE username = '%u'
2008 Feb 05
1
Quota + MySQL
Hello, Im having problems getting Dovecot to read the quota info from
MySQL. My current dovecot.conf file is below.
If I run the user_query of:
user_query = SELECT 1000 AS uid, 1000 AS gid, maildir AS home FROM
mailbox WHERE username = '%u' AND active = '1'
Everything works fine but if I run the user_query of:
user_query = SELECT 1000 AS uid, 1000 AS gid, maildir AS home,
2009 May 17
2
Problem with domain part in user_query in dovecot 1.1.14
Hi.
I'm using dovecot 1.1.14 with pgsql.
I tried to configure dovecot to get the domain part in user_query by specifying different variants of auth_username_format variable such as %Lu, %Lu@%Ld, %Lu-at-%Ld and so on... So dovecot gets domain part in password_query, but not in user_query. I noticed the username is changed like this: kostas at mgupb.net->kostas in log. For some reason it
2008 Jan 24
2
SQL user_query question
Hi,
I am working through setting up a virtual hosting system using
Dovecot, Postfix and Postgres on a CentOS 5 box running an install of
the dovecot-1.0-1.2.rc15.el5 RPM.
The question I have is, given this password_query SELECT clause, which
all return valid values from the database:
user
password
domain
can I use a %d in the WHERE clause of my user_query? The reason I ask
is that the
2007 Sep 13
1
Dovecot + virtual users
Hi,
I'm running FreeBSD, Dovecot, Postfix (virtual users), MySQL,
Squirrelmail. I have installed squirrelmail-quota_usage-plugin, but I
cannot make it work. It mentions "If you have an IMAP server with QUOTA
Extension capability...". In dovecot.conf I have enabled "mail_plugins =
quota" near protocol pop3 and protocol lda, near protocol imap I have
"mail_plugins
2017 Oct 10
1
Mail Alias Stores in mySQL Not working
This apparently was a problem that i was not aware since i redid my mail server configuration to make use of Postfixadmin. I have update the conf files using the postfix document fromthe down load. The download document seems to be fpr an early version of dovecot (I am using 2.2.4) as it focuse of dovecot.conf which is now broken into file in the conf.d subdirectory I get "dovecot:
2010 Jan 14
3
LDA and POP3/IMAP user_query
How do I get IMAP+POP3 vs. LDA to use different user_query statements?
The problem is that the input fields are different.
IMAP/POP3 is an email address
LDA is a username
I have written a long statement to try and cater for both however it still
only works 99% of the time, and the remaining 1% fails. The 1% that fails
sees the mail being delivered to the wrong mbox. In this particular case
2005 Jun 20
0
MySQL user_query ignored
Hi all,
i installed Dovecot 0.99.14. Everything works fine except that
the mysql setup directive "user_query" seems to be ignored -
however the password_query works.
Instead the default user query in db-mysql.c always takes effect.
Might this be a bug or is something worng wit my setup below?
(To keep on working i changed the default query in db-mysql.c..)
Helmut
2010 Feb 14
1
Virtual plugin and user_query
Hello,
As per a previous reply regarding POP3 I'm now trying to configure the
virtual plugin.
However I don't really understand how to modify the sql user_query to
properly indicate inbox=yes.
I created 3 namespaces as per wiki instructions and I've modified the
password and user queries as bellow:
password_query = \
SELECT email, password, login , concat('*:bytes=',
2011 Jun 05
1
doveadm problem with mail_plugins in database
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all,
I use this user_query:
- -------------------------------%<--------------------------------
user_query = SELECT LOWER(CONCAT(t2.login,'@',t1.name)) AS
user,t2.home,t2.mail,5000 AS uid,5000 AS
gid,CONCAT('*:storage=',quota_mb,'MB') AS quota_rule,t2.acl_groups,case
when '%s'='lda' then 'acl quota
2009 Jan 13
2
Can not Create Maildir using userdb
Thank you for your reply.
So, you mean that both user_query and password_query should have the same amount of parameter and the mail parameter from user_query should have the exact parameter as userdb_mail from password_query?
And also I've to turn on userdb prefetch {}
Kind Regards,
Henry
From: Timo Sirainen [mailto:tss at iki.fi]
To: Dovecot Mailing List [mailto:dovecot at dovecot.org]
2005 Oct 11
3
FreeBSD Ports Issues
Installed dovecot for the first time, using the FreeBSD port. Found 2 issues
with the port, and I've only been able to resolve one of them.
First of all, the port, (or perhaps dovecot) does work with mysql 4.1
encryption. I had to create a user with access to the mysql table, then do
'set password = old_password('password');' in order to get dovecot to talk
to the server.
The
2007 Mar 07
1
Question about auth-master, deliver, and SQL maps
I have been running Postfix/Dovecot with a Postgresql backend for
several months, and everything has been running great.
Now I want to add server side filtering, so I'm attempting to configure
deliver.
The SQL maps for Postfix are all keyed upon the recipient email address.
The SQL map (user_query) for Dovecot is keyed upon the IMAP login name,
which is potentially unrelated to the email
2020 Mar 19
2
Headsup on feature removal
Il 19/03/20 02:01, John Stoffel ha scritto:
> Alessio> ### user_query for vpopmail
> Alessio> user_query = SELECT pw_dir AS home, 89 AS uid, 89 AS gid,
> Alessio> concat('*:backend=', pw_shell) AS quota_rule FROM vpopmail
> Alessio> WHERE pw_name = '%n' AND pw_domain = '%d'
>
> Careful! You need to explain that 89 is the UID and GID of the
2007 Aug 28
2
quota imap_quota
Hello,
I've been frying my brain with quota and mysql... Here is what I do:
protocol imap {
mail_plugins = quota imap_quota
imap_client_workarounds = outlook-idle delay-newmail
}
plugin {
# 10 MB + 1000 messages quota limit
# quota = maildir:storage=10240:messages=1000
driver = mysql
connect = host=/var/lib/mysql/mysql.sock user=mail_admin
password=XXXXXXXX dbname=mail