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.
Dovecot wiki site has detailed tutorial: http://wiki2.dovecot.org/PostLoginScripting
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.
Dovecot wiki site has detailed tutorial: http://wiki2.dovecot.org/PostLoginScripting