[RESOLVED] PureFTP that send email notification on Upload Hi All, I am trying to piece together little snippets from all over the place to get this to work and I just cant get it to work. What I want is a stand alone FTP server that sends an email to me when a file is uploaded. I have started by building an Ubuntu 9.04 server as per Falkos: http://www.howtoforge.com/perfect-server-ubuntu-9.04-ispconfig-2 up to step 10 and then adding postfix Then installing Pure-FTP as per Falkos: http://www.howtoforge.com/virtual-h...quota-and-bandwidth-management-on-ubuntu-9.04 I then try to enable the pure-uploadscript by donig this (found on the net): Step 1: vi /etc/default/pure-ftpd-common Run Pure-FTPd in standalone mode (not inetd mode). Change the option "STANDALONE_OR_INETD" to "STANDALONE" in Step 2: Tell Pure-FTPd the user ID under which the script should be run. Pure doesn't like usernames, so you have to provide the numeric UID. In case of www-data it is UID 33. # if set, pure-uploadscript will spawn $UPLOADSCRIPT running as the # given uid and gid UPLOADUID=2001 UPLOADGID=2001 Step 3: Tell pure-ftpd where the script is located: Change the option UPLOADSCRIPT in /etc/default/pure-ftpd. # example: UPLOADSCRIPT=/usr/local/sbin/uploadhandler.pl UPLOADSCRIPT=/usr/local/sbin/uploadhandler.pl Step 4: Enable the option itself: echo "yes" > /etc/pure-ftpd/conf/CallUploadScript Step 5: Start or Restart Pure-ftpd /etc/init.d/pure-ftpd-mysql restart And then I made my first ever shell script which went like this: #!/bin/bash # echo "$1 uploaded" | mail -s "New Upload : $1" [email protected] but It doesn't work. FTP Server part of things works fine. The only function that the mailer side of this needs to be able to do is send me an email when a file is uploaded. It needs no incoming mailboxes or anything like that. The Server is a FTP server and nothing else. It sits in our office so it could even send me a message across the network if that is possible, but I use a windows machine(Windows 7) and a mac (OSX 10.4) as a pair of work stations. If someone could show me a concise way of istalling Pure-FTP on an Ubuntu 9.04 server with upload notification, I would be very appreciative. Cheers AL.