search for: postloginscript

Displaying 20 results from an estimated 97 matches for "postloginscript".

2009 Jun 02
5
Help please- Post - Login Script--- Migration
...torage, users are authenticated using mysql, User home directories as passed using variable mail ( usign mysql query). I am trying to execute postlogin script which does the conversion but unable to pass the user home directories . --*/etc/dovecot.conf mail_executable = /usr/libexec/dovecot/postloginscript.sh %h ---* %h ---- for home directory. ---*postloginscript.sh #!/bin/sh /usr/libexec/dovecot/courier-dovecot-migrate.pl --quiet --to-dovecot --recursive --convert $1 # This is for pop3 exec /usr/libexec/dovecot/pop3 ----* When i pass %h as argument its creating "%h" directory and...
2012 Jul 15
3
Last login datetime on accounts
I have searching for the best way to tell if a Dovecot user is idle by finding the last time they have logged in. Right now the best way I can tell is to do something like "touch" a file in the users homedir via a post login exec. This seems like a LOT of overhead, to accomplish such a simple task, especially if your doing a lot of dozens of logins per second. Is there an
2018 Jan 12
2
Save login's to a table
Hi, I'd like to have the logins that the accounts do, saved in a *sql table, with login name | IP | datetime, for audit porposes. How could I achieve that, if possible? Thanks in advanced, -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20180112/10e98846/attachment.html>
2018 Jan 12
1
Save login's to a table
...IP | datetime, for audit porposes.<br><br> <br><br>How could I achieve that, if possible?<br><br> <br><br>Thanks in advanced,</blockquote><br>A post-login script could do that:<br><br> <a href="https://wiki.dovecot.org/PostLoginScripting" rel="noopener noreferrer" target="_blank">https://wiki.dovecot.org/PostLoginScripting</a><br><br>-- <br>Alex JOST</blockquote><p>or https://wiki2.dovecot.org/Plugins/LastLogin</p><p class="io-ox-signature">---...
2008 Dec 24
2
verbose_proctitle not working with post-login
Happy Xmas, when using a post-login procedure the "verbose_proctitle = yes" has no effect. If it is feature then please explain else please fix the bug fi --Frank Elsner
2010 Oct 13
1
Last login tracking with login_executable
Hi, I'm using Dovecot 1.2.14, and I've read PostLoginScripting on the wiki. Is there any way to make Dovecot use the same username/password for database access as userdb and passdb queries? Specifying the password with -p doesn't seem like a good idea, so I'm wondering if it can be handled by Dovecot directly. Or is it possible to track last login...
2010 Dec 03
2
Problem with ACLs
Hi, i want to use unix groups in my ACLs. http://wiki2.dovecot.org/ACL says, I can do that with a post-login script (http://wiki2.dovecot.org/PostLoginScripting). I have verified, that the script is running, and that ACL_GROUPS is correct. But I still can't access the Mailbox. Logfile says: Dec 3 11:19:35 mailint1 dovecot: imap(micha): Debug: acl vfile: reading file /var/mail/mailboxes/shared/mails/server-root/dovecot-acl Dec 3 11:19:35 maili...
2014 Oct 25
2
imap-postlogin and doveadm
We are configuring location= running a bash-script during imap-postlogin setting $MAIL in $USERDB_KEYS, as described in wiki/PostLoginScripting.txt This works fine. However, running a command like 'dovadm index [-u user] folder' only works for users with settings that match the default in mail_location= Would it be possible to make the location available for doveadm in a similar way, either with command line arguments or in t...
2010 Apr 11
4
Virusscanning
Hello list, I use currently a non-dovecot pop3 proxy which has the ability to scan all passing mails for viruses. And I like dovecot. I have to combine both. One (and the only) idea is to call a virusscanner a shellscript, installed as PostLoginScript. But I see multiple disadvantages: 1. it's a shellscript which tents to be slow. 2. it's called *on* the mailbox-host, not on a dedicated proxy 3. I think it's slow and I dont't know howto measure. 4. I thint it's slow. 5. I think it's slow. 6. I like a "Plan B"...
2010 Jun 28
2
Replacing real inbox by virtual inbox
...o it. Here's my problem, if I look to the wiki page [1], I don't really understand what the _NAMESPACE_1_INBOX_ and the _NAMESPACE_2_INBOX_ stands for. Plus, I can't put my paths in my scripts, as they use %d and %u (see below) which, if I understand correctly, aren't available for PostLoginScripts. Thanks for your help, -- Fran?ois-Xavier Payet fx.payet at tfdn.org Jabber : fx.payet at tfdn.org Links: ------ [1] http://wiki.dovecot.org/Plugins/Virtual
2007 Sep 26
7
Auto create folder(s)
Hi All, does anyone know of a way to automatically create user folder(s)? Like creating a Spam folder on login if not already there. I've googled a bit but couldn't find anything relevant. Any advice appreciated R /Lars
2009 Apr 30
4
Disabling users whilst still allowing logins with a 'master password'
Hi, I'm having trouble coming up with an authentication configuration that does what we want with dovecot, and thought it would be worth passing it by the list in case anyone can spot an easy fix, or confirm my suspicions that code changes are required. You should probably be aware that this is to support a migration away from Dovecot to a certain Microsoft-provided mail platform, so if this
2017 Jan 23
1
Log authentication attempts
...TP authentication. Because we are building some monitoring application, we will need to record all failed and 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...
2017 May 22
1
Dovecot pop3 feature
Hi all, we are using dovecot since several years without any problems or trouble. Now we are having trouble with a few of our customers - they are trying to fetch their emails every few seconds (3-5!). These customers are using Microsoft Exchange Server and also all of these customers are cared by the same IT Professional... Is it possible to send a pop3 "LOGIN-DELAY" if the
2019 Dec 09
1
Execute a script from dovecot when authentication fails
Hello, My name is Noury, and I?m new here. I?ve been using dovecot IMAP for years, but I want to do now some extra things. I want to call a script from within dovecot, to build a suspicious IP addresses list when authentication fails. I have tried the PostLoginScripting technic. It works fine but it doesn?t suit my needs. The script executes only after a successful login. I want to execute my script only when auth fails. If I can execute a script and check into it if auth failed, I would be nice too. A kind of ? PreLoginScript" Is there a way to achieve...
2008 Nov 07
2
limit logins by time
Hello, i want to limit the count of pop3 logins for users by time. Whats the correct way to do this? I searched the webpage and conf parameters but did not find a fitting solution. Please give me litte hint. Thanks, Andre
2007 Nov 30
1
last logon time
Hi list, How can I detect when user last time logon into their mailbox? For what file I should look and compare change time?
2010 Mar 19
2
Triggering mailbox fetch
Greetings, I would like to migrate mailboxes into a Dovecot system by using an IMAP transfer from the old system - and I'd like this to take place automatically at the time the user first logs into the new system. I have a script which will perform an IMAP fetch and dump it into the local maildir. In courier-imap I could create a '.loginexec' file which is executed when the user
2011 Jun 14
1
ACL Groups
...rated acl_groups extra field <http://wiki2.dovecot.org/UserDatabase/ExtraFields> from userdb, which contains all the groups the user belongs to. User's UNIX groups have no effect on ACLs (you can "enable" them by using a special post-login script <http://wiki2.dovecot.org/PostLoginScripting>). I've read that over several times - I still don't understand that. Are "ACL Groups" defined and managed by Dovecot - and described somewhere else in the docs - or are they UNIX groups that previously had no affect on mail access but by being listed in the "acl_...
2011 Oct 31
2
setting namespaces using script-login environment in 2.0
Hi! With dovecot 1.x, I was using a post-login script to dynamically add shared mailboxes using NAMESPACE_X.. environment variables, based on filesystem permissions: After login, the post-login script was executed with user permissions (mail_drop_priv_before_exec=yes). It added all subdirectories of "/var/spool/mail/Shared" as namespaces for which the user had write permissions. E.g.: