Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Suggest HOWTO

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 20th November 2009, 08:08
almeister9 almeister9 is offline
Join Date: Sep 2008
Posts: 36
Thanks: 6
Thanked 3 Times in 3 Posts
Default [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:
up to step 10 and then adding postfix

Then installing Pure-FTP as per Falkos:

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
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:
echo "$1 uploaded" | mail -s "New Upload : $1" test@mydomain.com

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.

Last edited by almeister9; 24th November 2009 at 08:10. Reason: RESOLVED
Reply With Quote
Sponsored Links


falko, notification, pureftp, ubuntu, upload

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sender does not recieve mail delivery system email nor virus notification email. kameelperdza Installation/Configuration 1 2nd October 2009 17:48
hotmail rejects outgoing email nzimas Server Operation 3 1st May 2009 04:39
Impossible to send email with Icedove kdclaver Installation/Configuration 8 9th September 2007 01:02
how to configure postfix to send email out for a hosted domain nox171 Server Operation 24 13th July 2007 12:48
Can't send email with attachments to another email nysprite Installation/Configuration 2 29th June 2006 19:09

All times are GMT +2. The time now is 01:58.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.