ok i've controlled the script and it's ok.
As wiki say i've modified the /etc/dovecot/conf.d/10-master.conf
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 {
}
}
but i have no success.
the script work good.
May you help me?