Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jan 2008 10:59:57 +0100 (CET)
From:      Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>
To:        Rakhesh Sasidharan <rakhesh@rakhesh.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: OT: Downloading file by sending email
Message-ID:  <20080130105507.I4812@wojtek.tensor.gdynia.pl>
In-Reply-To: <20080130092413.K4947@obelix.home.rakhesh.com>
References:  <20080130092413.K4947@obelix.home.rakhesh.com>

next in thread | previous in thread | raw e-mail | index | archive | help
>
> I want to setup a service such that sending a mail to say 
> "someaddress@mydomain" with a list of links per line results in my machine 
> downloading the files at these links replying with all these files attached.
>
> Is there any port which provides a functionality like this? Or is it possible 
> to put together such a setup in place? I tried a Google search but didn't

very easy using just bash curl metamail etc...

but first think about protecting it from abuse like

a) someone will use it as spamming machine, writing advert as image, and 
sending it through your service to 100000 users (using your bandwidth) by 
using robot that will 100000 times request to send an URL to mail.

b) someone else will be trying to overload your service requesting to mail 
lots of huge files many times (limit total size+size of one file)



you must do something like "captcha" or at least - first sending mail 
without attachment like this

- Someone - possibly you - requested to download and send such files:

URL list here

to your mail.

if it's you, jest use reply with this code: <unique code here>





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080130105507.I4812>