Quantcast
Channel: iRedMail
Viewing all articles
Browse latest Browse all 14119

PostLoginScript

$
0
0

==== Required information ====
- iRedMail version: Pro 1.1
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Linux/BSD distribution name and version: Ubuntu 12.04 LTS
- Related log if you're reporting an issue:
====

Hi, i've a problem with the implementation of postloginscript.

I just want to update the lastlogindate in vmail db, but i've no found information about dovecot 2.x and backend DB PGSQL.

I had copy the script trackLastLogin.sh and paste it in /usr/local/bin.

I've changed the /etc/dovecot/conf.d/10-master.conf in

service imap {
  # Most of the memory goes to mmap()ing files. You may need to increase this
  # limit if you have huge mailboxes.
  #vsz_limit = 256M
executable = imap imap-postlogin

  # Max. number of IMAP processes (connections)
  #process_limit = 1024
}

service pop3 {
  # Max. number of POP3 processes (connections)
  #process_limit = 1024
}

# The service name below doesn't actually matter.
service imap-postlogin {
  # all post-login scripts are executed via script-login binary
  executable = script-login /usr/local/bin/trackLastLogin.sh

  # the script process runs as the user specified here (v2.0.14+):
  user = $default_internal_user
  # this UNIX socket listener must use the same name as given to imap executable
  unix_listener imap-postlogin {
  }
}

what's wrong?

Thanks in advance


Viewing all articles
Browse latest Browse all 14119

Trending Articles