0

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?

Matt Williamson
  • 323
  • 2
  • 4
  • 10

4 Answers4

1

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

coredump
  • 12,713
  • 2
  • 36
  • 56
0

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.

Warner
  • 23,756
  • 2
  • 59
  • 69
0

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

Janne Pikkarainen
  • 31,852
  • 4
  • 58
  • 81
0

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.

joschi
  • 21,387
  • 3
  • 47
  • 50