]]>Thu, 24 Jan 2013 11:49:32 +0000http://www.iredmail.org/forum/post20005.html#p20005http://www.iredmail.org/forum/post20004.html#p20004
Thanks very much for your sharing. ]]>Thu, 24 Jan 2013 11:37:29 +0000http://www.iredmail.org/forum/post20004.html#p20004http://www.iredmail.org/forum/post20002.html#p20002
finally i got it works, the problem was in the script because postgres use PGPASSFILE to use comman line not like MySql.

Did you simply append new lines in dovecot.conf? That might not work, because it must contain duplicate settings.

]]>Wed, 16 Jan 2013 11:45:28 +0000http://www.iredmail.org/forum/post19880.html#p19880http://www.iredmail.org/forum/post19857.html#p19857
Hello, if i put the lines in dovecot.conf, the service don't start.

If i put only the code below the service start but postlogin not start.

If i uncomment the line #executable = imap imap-postlogin under protocol imap service don't start.

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?

]]>Mon, 14 Jan 2013 14:32:13 +0000http://www.iredmail.org/forum/post19846.html#p19846http://www.iredmail.org/forum/post19800.html#p19800
i think that the problem is the psql command that not accept the password.I'm looking for a solution, the env variable PGPASSWORD seems non function.]]>Thu, 10 Jan 2013 10:37:50 +0000http://www.iredmail.org/forum/post19800.html#p19800http://www.iredmail.org/forum/post19799.html#p19799
Why not just try to print values of variables in your trackLastLogin.sh in a plain text file first? So that you can verify whether you have correct data.

# 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 { }}