Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an FTP folder and when a user uploads a file, I'd like to receive an email. Is there a daemon that will do that?

share|improve this question
up vote 1 down vote accepted

You can do something like it's suggested on this question.

share|improve this answer
Agreed - I was going to suggest something using inotify... – EEAA Sep 8 '10 at 4:16

I usually leave a tail -f running against a log in a terminal for situations like that.

You could configure logtwatch to watch the log for a string and e-Mail. Also, more recent versions of syslog-ng support similar functionality.

Additional solutions could include a host based IDS or the Linux auditing system. However, host IDS are typically not realtime and auditd/auditctl does not provide anything that the log solutions would not for this particular application.

share|improve this answer

Recent versions of ProFTPd include a ftpmail module which might do exactly what you asked for.

share|improve this answer

You could use incron for that purpose, which will use the inotify API of the Linux kernel.

You can create a rule which sends a mail to you every time a file is created (or modified, or deleted, or accessed...) in a certain directory.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.