Sorry guys, my fault :-) I forgot to put smtp auth required pam_pgsql.so try_first_pass smtp account required pam_pgsql.so try_first_pass in my pam.conf file Dmitry