I do just what you are talking about myelf.

Here is how I set it up..

get postfix working..
you will then need to look for "relayhost" in the main.cf file, (its well
commented.)

set that as your ISP's mail server.

If you have a dialup account, you can also have postfix queue mail without
trying to send till it gets a "sendmail -q"

so in your dialup scripts, you can just add "sendmail -q" without the
quotes. and in main.cf
add defer_transport = smtp

that why your logs won't get filled by postfix trying to send mail when its
not connected.

I also used amavisd with postfix and content filtering and Trend Filescan
for linux.(all free.)
it scans all incoming and outgoing mail for virus's and stops them if they
have any. (it will also decompress archive files of about 10 different types
to check if they contain virus's as well.)

as for the retrieving of mail, I set fetchmail up in deamon mode, have
/roots .fetchmailrc file contains all the different pop3 accounts to get and
what user they are for.

a user in .fetchmailrc looks like this:

poll mail.somewhere.com with proto POP3
        user 'franki' there with password 'mypasswd' is franki2 here options
fetchall

if you want fetchmail to run in deamon mode, and check every 20 seconds for
email, here is what I did.
at the top of .fetchmailrc add these:

set postmaster "postmaster"
set bouncemail
set no spambounce
set deamon 20 # This is the one that tells fetchmail to run as a deamon and
check every 20 seconds.

by default, fetchmail will pass the incoming mail onto postfix, which scans
it, gives it to the local delivery agent. (MDA) ususally procmail or WHY...

thats it, add all your other uses in the above format. and add fetchmail to
ip-up.local or whatever you use to start stuff in you external connection.


rgds

Frank

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of wim
Sent: Thursday, 21 February 2002 7:13 PM
To: [EMAIL PROTECTED]
Subject: [expert] Mail server on home LAN


Hello,

I'd like to set up a mail server for two users on my home LAN. I have a
mail account at my provider and I created two aliasses. Now my questions
are:

- Can I configure sendmail to send mail to the SMTP server of my        ISP?
- Is it possible use fetchmail to retrieve th email from my ISP and
process it with procmail (I 'd like to create two mailboxes on my LAN
and deliver the mail, depending on the alias, in the right mailbox.).
- Where can I find info on setting up such a 'mailserver'?
- If you can point me to the right direction, I would be very happy...

--
Kind regards,

Wim De Hul
Belgacom Belbone
--------------------------------
  Mail   : [EMAIL PROTECTED]
  Mobile : +32 479 952004
  Ripe   : WDH25-RIPE
  Registered Linux User: #260015
--------------------------------




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to