FTP Email Alerts / No Security Logs

Hi there,

I have a small FTP server we use here at work. I just set it up with OpenSSH so we can use SFTP. I am Running IIS 6.

Ok, I would like to be emailed everytime somebody logs into the ftp server. How can I have a batch file run at every login? I have a simple command line email program that will suffice, but I need to invoke it at ftp login.

Also....

Ever since going to SFTP my ftp logs are not being generated. However, if I ftp directly to port 21 using regular ftp they are...but if I SFTP in through 22...they are not generated. Does anybody have an idea about this?