On Sat, 25 Aug 2001, Martin Dvorak wrote:
> Hi,
>
> I have a small LAN (7 computers) connected through FreeBSD
> dial-up server to Internet. Internet connection is automatically
> established a few times a day. Architecture looks like this:
<snip>
> What I would like to do is following:
>
> 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.
Try fetchmail. it's perfect for this.
http://www.tuxedo.org/~esr/fetchmail/
>
> 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.
>
1. In /var/qmail/control/smtproutes, add :your.isp.mailserver.com
(flavor the path, to taste.)
2. Add a script called /etc/ppp/ppp-linkup (IIRC this is the script fbsd
executes upon creating a ppp connection) simply have it send qmail-send
an -ALRM signal (killall -ALRM qmail-send will work nicely on fbsd)
> 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).
>
Qmail will do this by default. if it can deliver locally, it will
regardless of the dial-up connection.
> I am pretty sure qmail together with some addons is capable
> of doing this. I would appreciate your opinion on what
> combination of what packages is best for this scenario. It
> is my first attempt to implement such system and have minimal
> experience with it although I use qmail in many other scenarios.
>
> Thanks very much for your opinions.
>
These are just that, my opinions.
Jeff Palmer
[EMAIL PROTECTED]