Miles Fidelman a écrit :
> Hi Folks,
> 
> I'm not really sure where to ask this question, but I expect that
> someone on this list will have ideas.
> 
> I find myself, more and more, having to send large files to people by
> email - which, of course runs into lots of problems both on the outgoing
> and receiving ends.
> 
> I've started to use some of the on-line services that will upload a file
> to temporary storage, then forward a link, by email, to recipients - who
> can then click the link and download the files (e.g., filemail.com,
> pando.com).
> 
> But, since I happen to run several servers (standard LAMP environment,
> Postfix for email), I've started to look for a utility I can install
> that will provide this same functionality.
> 
> Anybody out there running such a beast?  Suggestions?
> 

depends how do you send the files and whether they are "public" or
should only be accessible to mail recipients.

In its simplest form, it could be

scp $file [EMAIL PROTECTED]:/var/www/files/
cp message.template message.tmp
echo "" >> message.tmp
echo "http://www.example.com/maillink/$file"; >> message.tmp
sendmail -f $sender $recipients < message.tmp
rm message.tmp

and configure apache so that /maillink/ uses /var/www/files (Alias
directive, ... etc).

and use cron to purge old files.

if the files are not public, use a "secret" filename.

if you want to track access, use a different filename for each recipient
(you can use ln to avoid copying the files multiple times).



Reply via email to