Re: How to set up an Internet by e-mail Server?

2010-12-10 Thread Jan Wagemakers
2010/12/2  rodol...@cimex.com.cu:

 This is a calling for those who know it, to share the knowledge concerning
 how to setup such a basic service with the minimum effort and time.

I can explain how I have setup the service at w...@dommel.be which is running
on a PC with Debian GNU/Linux. Note that in the current state this is NOT
easy to setup with minimum effort and time :-(

1. Create a Email address for your www2email service :
--

I have create two e-mail adresses:

w...@dommel.be
www2em...@gmx.com

2. On the PC, create a user www, setup fetchmail to send the Emails to user
   www:
---

In my /etc/fetchmailrc I have :

poll pop.gmx.com   proto pop3 user www2em...@gmx.com password
*, is www here fetchall
poll pop.dommel.be proto pop3 user w...@dommel.be password *,
is www here fetchall

3. In /home/www, create the following files :
-

 pts/7  jan ~$ cat /home/www/.forward
| /home/www/mail2queue
 pts/7  jan ~$ cat /home/www/mail2queue
#!/bin/sh
ulimit -u 10
cat -  /home/www/queue/$$.mail
#cat /home/www/queue/$$.mail  /home/www/mail.log
 pts/7  jan ~$

When user www receives an Email, this Email will be forwarded to the script
mail2queue. This script creates a file in /home/www/queue/ with a unique
number. So for every Email, a file in /home/www/queue/ will be created.

4. create a script that scans /home/www/queue/ for files and send the result
   back as an Email


You can find the script that I use at
http://www.janw.dommel.be/tmp/queue2mail;

5. set up a cronjob that runs this script every 5 minutes :
---

I have this in /etc/crontab

# w...@dommel.be bot
*/5 *   * * *   www /home/www/queue2mail 2 /dev/null 1 /dev/null

-- 
Met vriendelijke groetjes - Jan Wagemakers -

--
To contribute to the discussion, email to accmail@listserv.aol.com
To unsubscribe, email to the *admin* address lists...@listserv.aol.com
with UNSUBSCRIBE ACCMAIL as the message body.
WWW: http://emailonly.szs.net/
Archives: http://news.gmane.org/gmane.mail.emailonly
--


Re: How to set up an Internet by e-mail Server?

2010-12-09 Thread Lena
 From:rodol...@cimex.com.cu

 I think there must be many people out there interested in set up an
 Internet by e-mail Service, but just don't know how to do it or do not
 have the time.
 
 This is a calling for those who know it, to share the knowledge
 concerning how to setup such a basic service with the minimum effort and
 time.

Don't hope for minimum effort and time. When I used accmail (until 2005),
I used my own accmail server, I wrote it myself (in Perl).
It's the mail2ftp server I described on http://mail2ftp.org.ua , it also
has undocumented feature to request webpages in source and text modes.
But I made this feature restricted only to my email addresses,
because else the inevitable abuse would cause destroying the server
by the host operator. I didn't implement any limits besides restricting
email addresses which may request pages.

One of my mail2ftp servers works on a free web-hosting, currently
heliohost.org. Or another free webhosting with cPanel can be used,
a list of them: http://www.free-webhosts.com/free-cpanel-hosting.php
If you register an account on a web-hosting with cPanel,
successfully access cPanel of your account (by accmail methods
or using full Internet access) and describe me how you do that
then I can give you sources of the server I wrote.
But no support, I'll not do the work to set up the server for you,
and I'll not give you detailed instructions. It'll be much work for you
without help.

Lena
l...@lena.kiev.ua

--
To contribute to the discussion, email to accmail@listserv.aol.com
To unsubscribe, email to the *admin* address lists...@listserv.aol.com
with UNSUBSCRIBE ACCMAIL as the message body.
WWW: http://emailonly.szs.net/
Archives: http://news.gmane.org/gmane.mail.emailonly
--