Displaying 20 results from an estimated 30000 matches similar to: "LMTP plugin with MySQL query"
2008 Apr 19
1
using mysql from within a plugin
Hello,
I'm trying to access a mysql database in a plugin.
-What special compiler flags do I need? I discovered that when I don't
explicitly link lib-sql/libsql.a in, then I get an undefind symbol error
about sql_init when loading the plugin.
Shouldn't the imap process itself have sql support linked in, rather
than each plugin?
-It appears that I need to call sql_drivers_init() and
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
2014 Oct 18
1
last_login plugin with MySQL
Hi,
I have a Dovecot test installation with MySQL userbase and authentication where
I am trying to setup last_login plugin with SQL dictionary
I read http://wiki2.dovecot.org/Plugins/LastLogin and I addes this to my
configuration
plugin {
last_login_dict = sql:/etc/dovecot/dovecot-sql.conf.ext
}
mail_plugins = $mail_plugins stats
protocol imap {
mail_plugins = $mail_plugins imap_stats
2010 Sep 06
1
Plugin execution order and Sieve
Hello,
I use dovecot 2.0.1 and pigeonhole Sieve (version of August),
I try to create a deliver plugin (lda or lmtp), but if I declare, in
addition to my plugin, sieve, sieve is called first, and my plugin is
never called.
I tried to change the order of declaration of plugins, but nothing changes.
If I remove Sieve, my plugin is properly called.
protocol lmtp {
#mail_plugins = $mail_plugins
2012 Jul 11
1
MySQL dict issues
Testing using the mysql dict for quota storage
(dovecot-2.0.12-2_127.el5), and ran into a couple issues. First is a
permissions issue:
dovecot: lmtp(26786, dude at test.tld): Error:
net_connect_unix(/var/run/dovecot/dict) failed: Permission denied
(euid=5000(<unknown>) egid=5000(<unknown>) missing +r perm:
/var/run/dovecot/dict, euid is not dir owner)
The file
2014 Aug 13
1
LMTP re-reading all messages
Hi all,
I have a little problem with Dovecot 2.1.17 and MailDir accounts.
I was using a shared file system (MooseFS), and all was pretty stable.
Now I'm switching to CephFS, and Dovecot LMTP have problem to deliver mails.
Very often, on large accounts, LMTP processes are running for a few hours
before delivering the message.
When I strace it, I can see that they are reading (open and stat
2010 Nov 02
2
Converting to 2.0 and LMTP have userdb and auth-worker complaints
Using rpms and converted dovecot.conf with doveconf. Need assistance to
determine how to resolve 'auth-worker' and userdb complaint.
logging into mysql from commandline with mail admin acct and using
dovecot sql query is successful but the following fails:
doveadm auth -x service=imap -x lip=127.0.0.1 john
Password:
passdb: john auth failed
extra fields:
temp
doveadm(root): Fatal:
2018 Sep 23
2
Last_login plugin and mysql
Hello,
i have problems configuring the last_login plugin with mysql.
I have extended the postfixadmin database with a new field,
configured the plugin as described in the wiki.
Finally i got errors: table is not writable, INSERT failed.
Why is the insert required? The plugin should only UPDATE
the column for existing rows.
Or am i missing some configuration options?
Here is my dictionary
2017 Apr 28
2
Dovecot last_login plugin and Mysql
Hi Aki,
Thanks. Can you tell me how you implemented it?
Thanks.
Dave.
On 4/28/17, Aki Tuomi <aki.tuomi at dovecot.fi> wrote:
>
>> On April 28, 2017 at 8:08 PM David Mehler <dave.mehler at gmail.com> wrote:
>>
>>
>> Hello,
>>
>> Is anyone using the last_login plugin with a Mysql database? I'd like
>> to track when users were last on
2016 Mar 22
2
Upgrade Dovecot from 2.1.17 to 2.2.13 lmtp child killed with signal 6
After upgrade Debian (Wheezy to Jessie) Dovecot version 2.1.17 is
upgraded to 2.2.13.
I have random crash of lmtp-a and I got lot message in queue. Any
solution for this problem?
---------- Postqueue ----------
7A5B77F72B 1160457 Tue Mar 22 10:10:15 ivan at jurisic.org
(delivery temporarily suspended: lost connection with
mail.jurisic.org[private/dovecot-lmtp] while sending end of data --
2014 Sep 24
2
LMTP proxying
How exactly is LMTP proxying supposed to work?
According to the example on
http://wiki2.dovecot.org/PasswordDatabase/ExtraFields/Proxy
I'm only seeing "proxy" in the password_query statements.
But LMTP never sends a password.
IMAP Proxying is working OK:
Sep 24 12:51:09 imap-login: Info: proxy(ralf.hildebrandt at charite.de): started proxying to dovecot.charite.de:993:
2012 Feb 17
2
Quota warnings and LMTP
Hello,
I have dovecot 2.0 configured with virtual users in MySQL, SMTP is
handled by exim which uses dovecot LMTP transport.
I'd like to test quota warning messages, but in wiki2 there is only
an example for delivering it with dovecot-lda. I tried several ways
of using lmtp binary, but without success.
How to replace this:
cat << EOF | /usr/local/libexec/dovecot/dovecot-lda -d $USER
2008 Mar 29
3
Expire plugin with Mysql
Hey guys, got a question about the expire plugin. According to the
wiki, the expire plugin "keeps an internal database (Berkeley DB or
SQL)". I was wondering what fields in the mysql table are needed for
expire to work.
I assume it is setup is similar to the quota dict
setup, so was just wondering what fields are required (i.e:
select_field, where_field, username_field, for quota).
2011 Dec 07
2
sql dict: commit failed: MySQL server has gone away
Following on from this thread:
http://www.dovecot.org/list/dovecot/2010-September/052704.html
<https://owa2010.webfusion.com/owa/redir.aspx?C=a447887e3d204944a8c766142df41453&URL=http%3a%2f%2fwww.dovecot.org%2flist%2fdovecot%2f2010-September%2f052704.html>
in 2.0.16 I am seeing the same issues. I believe this would be related
to some timeouts set on our mysql servers which are pretty
2010 Dec 16
2
Expire plugin does not work
Hello,
I followed the instructions on http://wiki2.dovecot.org/Plugins/Expire to
configure the expire plugin, but when I move a message to the Trash folder, I
get the following error messages in my logfile:
dovecot: dict: Error: sqlite: exec(INSERT INTO expires
(expire_stamp,username,mailbox) VALUES ('1292525469','christoph','Trash'))
failed: unable to open database
2018 Nov 15
2
Quota in MySql Dict not recalculate automatic
Hi,
I have a working Installation with:
Ubuntu 16.04 LTS
Dovecot 2.2.22
MySql 5.7.24
Postfixadmin 3.2
Apache 2.4.18
Rainloop 1.12.1
I manage the E-Mail Accounts with postfixadmin in a MySql-DB.
Also I use quotas with Quota Backend postfixadmin-DB (dict).
Everything works fine.
Now I installed a new Server with the following Versions and
migrate the Configs to the new System.
Ubuntu 18.04 LTS
2012 Jan 13
7
MySQL server has gone away
I'm running 2.0.17 and I'm still seeing a decent amount of "MySQL
server has gone away" errors, despite having multiple hosts defined in
my auth userdb 'connect'. This is Debian Lenny 32-bit and I'm seeing
the same thing with 2.0.16 on Debian Squeeze 64-bit.
E.g.:
Jan 12 20:30:33 auth-worker: Error: mysql: Query failed, retrying:
MySQL server has gone away
Our mail
2013 Feb 18
2
Quota Problems with LMTP in HG 62a930eb22b5
Since updating to the latest HG these errors occur. Nothing else changed in the config:
$ dovecot --version
2.2.beta1 (62a930eb22b5)
==> /var/log/dovecot/dovecot.log <==
Feb 18 09:47:32 spectre dovecot: lmtp(14340): Connect from local
Feb 18 09:47:32 spectre dovecot: lmtp(14340, tlx at leuxner.net): Error: mkdir_parents(/var/vmail/domains/leuxner.net/tlx/mdbox) failed: File exists
Feb 18
2010 Sep 02
1
Maybe wrong quota recalculation behaviour on overquota delivery try
Hi all,
we are experencing some, may be strange, slowness in our dovecot/postfix
mail system.
We have three dovecot 2.0.1 server with LMTP, POP3 and IMAP enabled.
Three shared OCFS2 filesystem are used for mail storage.
We have too a load balancer based on dovecot director in front of these
three server.
Our SMTP cluster receives mail and send by LMTP to load balancer.
Everything work flowless,
2018 Nov 16
3
Antwort: Re: Quota in MySql Dict not recalculate automatic
With quota count and quota_clone it works, but can I use noenforcing with
quota count?
quota = count:User quota:noenforcing
When I test this config, I receive no quota-warning E-Mail:
service quota-warning {
executable = script /usr/local/bin/quota-warning.sh
# user = dovecot
user = vmail
unix_listener quota-warning {
user = vmail
group = vmail
mode = 0660
}
}
plugin {