Martin Dvorak <[EMAIL PROTECTED]> wrote:

Jeff gave you one way to make this possible.  Another is...

> 1. Have POP3/IMAP server on FreeBSD GW. This server should
>    download messages from various accounts on Internet servers
>    when dial-up link to ISP is up, and it should place them
>    in corresponding local mailboxes thus allowing LAN boxes
>    to retrieve mail from FreeBSD GW even when it's not connected
>    to Internet.

I'd recommend my own getmail over fetchmail; however, if you want to use
fetchmail, configure it to use an MDA rather than delivering by
re-injecting with SMTP.  Postmasters all over the net will thank you for
it.
 
> 2. Have SMTP server on FreeBSD GW. This server should cache
>    all outgoing messages and send them when dial-up link to ISP
>    goes up (probably using ISP's SMTP server, or, if it is no
>    harm, send them directly). When the dial-up link is up, it
>    should send any received messages immediately and not wait
>    for next time dial-up link goes up.

Use a catchall virtual domain and  maildirsmtp.  In your link-up script,
call maildirsmtp to deliver all the mail to your ISP's smarthost.  You
can deliver directly, but maildirsmtp isn't meant for this; you'd have
to do a lot more fiddling.

> 3. Messages which are addressed to mailboxes which are later
>    downloaded to local POP3/IMAP server should never be sent
>    to Internet but instead immediately sent to corresponding
>    local mailboxes (no matter what is the status of the dial-up
>    link).

If the local domain is in locals or virtualdomains (as it should be),
this is automatic.

Charles
-- 
-----------------------------------------------------------------------
Charles Cazabon                            <[EMAIL PROTECTED]>
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
-----------------------------------------------------------------------

Reply via email to