From owner-freebsd-questions@FreeBSD.ORG Wed Jan 30 10:24:45 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B389916A419 for ; Wed, 30 Jan 2008 10:24:45 +0000 (UTC) (envelope-from rakhesh@rakhesh.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.152]) by mx1.freebsd.org (Postfix) with ESMTP id 446E413C4D5 for ; Wed, 30 Jan 2008 10:24:44 +0000 (UTC) (envelope-from rakhesh@rakhesh.com) Received: by fg-out-1718.google.com with SMTP id 16so200865fgg.35 for ; Wed, 30 Jan 2008 02:24:43 -0800 (PST) Received: by 10.82.121.15 with SMTP id t15mr1050483buc.26.1201688683273; Wed, 30 Jan 2008 02:24:43 -0800 (PST) Received: from smtp.home.rakhesh.com ( [82.178.100.245]) by mx.google.com with ESMTPS id f13sm10410133gvd.9.2008.01.30.02.24.39 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 30 Jan 2008 02:24:42 -0800 (PST) Received: from obelix (obelix [192.168.17.13]) by smtp.home.rakhesh.com (Postfix) with ESMTP id B9FB71140D; Wed, 30 Jan 2008 14:24:27 +0400 (GST) Date: Wed, 30 Jan 2008 14:24:27 +0400 (GST) X-X-Sender: rakhesh@obelix.home.rakhesh.com To: Wojciech Puchar In-Reply-To: <20080130105507.I4812@wojtek.tensor.gdynia.pl> Message-ID: <20080130142131.O8239@obelix.home.rakhesh.com> References: <20080130092413.K4947@obelix.home.rakhesh.com> <20080130105507.I4812@wojtek.tensor.gdynia.pl> X-Blog: http://rakhesh.com/ X-Notes: http://rakhesh.net/ MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed From: Rakhesh Sasidharan Cc: freebsd-questions@freebsd.org Subject: Re: OT: Downloading file by sending email X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jan 2008 10:24:45 -0000 Wojciech Puchar wrote: >> >> 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 Thanks Wojciech. Actually, I am setting this up just for my use. (Place I work doesn't allow downloads, and sometimes I need to download a thing or two, so thought let me set something like this up for my own use). But your points make sense. I'll try and make sure the service isn't abuse-able. Thanks again for the pointers! Regards, Rakhesh > > 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: > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > Rakhesh --- http://rakhesh.net/