Matt--
If you want to copy the new mail files to a directory on your own box, what about a program like ftpmirror or ftpgrab?
I haven't used either one, mind, so I don't know if you can set them to operate on some sort of timed basis; but you could most likely do it as a cron job if they don't have this facility built in.
David
--- In LINUX_Newbies@yahoogroups.com, matt1027 <box1027@...> wrote:
>
> Hi guys,
>
> I'm trying to come up with a way to monitor a directory in my account
> at my web host and copy any files that get created there into another
> directory so I can investigate them later.
>
> Here is the reason. I have a Cron job running that notifies me of
> any changes in the files or directories in my account. I keep seeing
> that one of the mail accounts keeps having mail files come through it
> but that mail is never downloaded by my email program and it is never
> there when I go there and check it with cPanel.
>
> My web site has been hacked a couple of times and I want to find out
> what is going on with this mail account.
>
> I have Linux shared web hosting and I don't think I have shell access.
>
> I have thought about doing a cron job something like this.
>
>
> watch cp -r /mail/mydomain.com/username/* /mail/backup_directory/
>
>
> But I don't know how to turn it off after a few hours. And it would
> be better not to copy the same file every 2 seconds. Plus there are
> probably other issues I'm not even aware of.
>
> Any thoughts, ideas or suggestions would be appreciated.
>
> Thanks,
> Matt
>
Monday, December 13, 2010
[LINUX_Newbies] Re: Monitor a directory at web host
__._,_.___
To unsubscribe from this list, please email LINUX_Newbies-unsubscribe@yahoogroups.com & you will be removed.
.
__,_._,___
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment