search for: imaplib

Displaying 14 results from an estimated 14 matches for "imaplib".

2019 Aug 14
1
ACL ignored for master users
Hi there! I can't get ACL working for master users. Login as master user works fine though, and I am able to access any mailbox using the auth_master_user_separator "*", tested e.g. via Python's imaplib: import imaplib imap = imaplib.IMAP4_SSL('imap.example.com') imap.login('foo at example.com*admin-acldemo', '**********') ('OK', [b'Logged in']) My /etc/dovecot/dovecot-acl looks like this: * user=admin lr bar at example.com user=admin-acldemo lr So, if I...
2015 Jun 19
2
setting quota through IMAP
I'd like to set the quota of a user through the IMAP protocol. I use Pythons imaplib: imap.setquota("test1m at uni.dtr", "(storage 8192)") ('NO', ['Quota can be changed only by admin.']) So... which user is the "admin" user in a virtual user setting (passwd: PAM, userdb: LDAP)? Greetings Daniel -------------- next part -------------...
2019 Aug 12
0
ACL ignored for master users
Hi there! I can't get ACL working for master users. Login as master user works fine though, and I am able to access any mailbox using the auth_master_user_separator "*", tested e.g. via Python's imaplib: >>> import imaplib >>> imap = imaplib.IMAP4_SSL('imap.example.com') >>> imap.login('foo at example.com*admin-acldemo', '**********') ('OK', [b'Logged in']) My /etc/dovecot/dovecot-acl looks like this: * user=admin lr bar at exam...
2014 Jun 02
2
list all emails from command line?
This is not strictly Dovecot question, but a more general IMAP one. I'm running a Dovecot server and have a user who is claiming that some email sent to him, say, on 30 May, showed up in his mailbox on 02 Jun. I've checked Postfix logs, and the message was correctly received on 30 May and passed to Dovecot. A similar issue happens every few days. This leaves me with two possibilities:
2018 Jul 09
1
slow mailbox refreshes
Hello, I am using dovecot 2.3.2 on my private email server in conjunction with: centos 7.5 apache 2.4.6 mariadb 10.2.16 roundcube mail 1.3.6 php 5.6.36 postfix 2.10.1 I have one mailbox with nearly 30k messages in it dispersed across several folders. it's often very slow in refreshing the message list, especially in the one largest 25k+ message folder. is this simply to be expected
2005 Feb 15
2
Speed up large maildirs
Hi, I'm very fond of maildirs, they are simple, I like that. But I've never really understood the significance of maildir/new/. The only use I can see is that (for example in the case of dovecot), you'd move a message from new to cur and then update the index-file, that's it. So to make put it more direct, you'd know when and with what to update the index-file, based on
2015 Feb 16
4
OT: Extracting Subject Lines from IMAP Mailbox
Looking for a command-line way to extract only the Subject lines from my mailbox on my ISP's IMAP server, without actually downloading/modifying the contents of the mailbox. Sort of the remote equivalent of locally doing: $ grep ^Subject /var/spool/mail/mymailbox > subjectlistfile Thanks. -- Tim Evans | 5 Chestnut Court UNIX System Admin Consulting | Owings Mills, MD 21117
2015 Jun 19
1
setting quota through IMAP
Am 19.06.2015 um 16:16 schrieb Steffen Kaiser: > On Fri, 19 Jun 2015, Daniel Tr?der wrote: > >> I'd like to set the quota of a user through the IMAP protocol. I use >> Pythons imaplib: > >> imap.setquota("test1m at uni.dtr", "(storage 8192)") >> ('NO', ['Quota can be changed only by admin.']) > >> So... which user is the "admin" user in a virtual user setting (passwd: >> PAM, userdb: LDAP)? > >...
2011 May 08
0
Issues with authentication failure delays
...type of failure delay) was intended to start at 2 seconds and double for each failure (see auth_penalty_to_secs), but be capped at 15 seconds. However, a simple test which tries to log in 5 times with a random password and times each attempt shows something different: $ cat authtest.py import imaplib import time import random conn = imaplib.IMAP4('localhost') for i in range(5): try: start = time.time() conn.login('testusers', str(random.random())) except Exception, e: print e print time.time() - start $ python autht...
2012 Nov 04
5
Quota
Hi, is it possible to ask Dovecot for a users quota by talking to the Dovecot server over TCP? I know about doveadm quota -u <user>, but I would like to know, if I can query for that over a network connection (on the Postfix ML they suggested writing a policy service that checks quota. Postfix is not always on the same server as Dovecot is). Does the LMTP protocol give that information
2015 Jun 19
0
setting quota through IMAP
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, 19 Jun 2015, Daniel Tr?der wrote: > I'd like to set the quota of a user through the IMAP protocol. I use > Pythons imaplib: > > imap.setquota("test1m at uni.dtr", "(storage 8192)") > ('NO', ['Quota can be changed only by admin.']) > > So... which user is the "admin" user in a virtual user setting (passwd: > PAM, userdb: LDAP)? You can't. Use a LDAP-Li...
2007 May 11
2
Problems with BEFORE searches.
Ok, I am trying to modify some code given to me by the author of the dspam plugin for dovecot (sorry the name eludes me). I am modifying it to handle UNSEEN differently than SEEN. Below is the python code. I am not a python programmer, but I get the basic idea. ok, uids = conn.search(None, 'BEFORE', unreadsentbefore, 'SEEN') "11-May-2007 06:18:29 -0600" is the value
2012 May 20
1
GETQUOTAROOT under roundcube
...mand: GETQUOTAROOT INBOX Example dump of the roundcube <-> dovecot communication: > GETQUOTAROOT inbox < QUOTAROOT "inbox" "User quota" < QUOTA "User quota" (STORAGE 1198415 10485760) < OK Getquotaroot completed. The same communication using python imaplib: > GETQUOTAROOT inbox < QUOTAROOT "inbox" "User quota" < QUOTA "User quota" (STORAGE 1431260 10485760) < OK Getquotaroot completed. Quota reported to python client is the same as the one reported to Thunderbird and seems to be the proper one. Python test...
2014 Jun 24
1
Bug/feature: mail fs pollution on IMAP select namespace/{non-existent}
...ed "Accounts" that hosts the shared folder for the users (prefix Accounts/%%n/). However, When I issue an IMAP select command on a random non-existent mailbox name under "Accounts", dovecot auto-creates it and pollutes my mail root directory: Python test code snippet: imapConn=imaplib.IMAP4_SSL(serverIP, serverPort) imapConn.login(serverLogin, serverPass) print imapConn.select("Accounts/NonExistentMailbox") imapConn.logout() Resulting in this: drwxr-x--- 1 vmail vmail 4096 Jun 12 10:00 _attachments_ >>> drwx------ 1 vmail vmail 4096 Jun 24 14:27 NonExistentM...