🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.linux.networking
Article #146

Re: Mail downloading and sorting

#146
From: Zebee Johnstone
Date: Sun, 15 Jul 2001 23:02
71 lines
4369 bytes
In aus.computers.linux on Sun, 15 Jul 2001 21:01:17 +1000
Michael Junek <micjunek@ihug.com.au> wrote:
>
>if anyone has any clues on how to set up sendmail, fetchmail or any other
>program that they know how to do it with, that would be FANTASTIC!........
>currently this is all handled by a program on the Netware server that doesnt
>do it that well, has many problems.

Many people will recommend procmail, I hate it :)

Try a perl module called Mail::Audit.  Admittedly procmail may be
easier if you don't know perl, but the tute on Simon Cozen's site is
pretty good - see simon-cozens.org/writings/mail-audit.html 

Reason I like it is that it was easier to handle complex things than
procmail, and while sorting on the to field's not that hard, you may want
to do other things. Admittedly if you don't know perl then procmail's
probably a better short term choice.

Fetchmail's fairly simple, thre's a fetchmailconf program that can
take a lot of the pain out of it.

Get your stuff via a "getmail" account, have procmail sort that into
the user's maildirs.



>
>also, this server needs to do one other thing.
>we have 2 64k ISDN lines.....what i need it to do is sit there with one line
>connected 24 hours. it needs to monitor the traffic running through this
>line, and when it reaches a certain threshold, to bring up the other line
>and then use channel bonding to double the speed of the link. When the
>bandwidth usage drops back down below a low water mark, it needs to shut
>down the 2nd ISDN line. Again the Netware server is having MAJOR problems
>with this.   This (linux) server will also be running squid as a web cache
>(i have to have about 100 clients handing off these 2 isdns, its a school on
>a low budget).........
>

Hmm...  There may be linux software out there for this, but I don't
know of any, try searching on google.com

I can see a couple of ways to do it, but they all require some scripting
and network knowledge, how much do you have?

As a quick and dirty fix, I'd monitor /proc/net/dev with a shellscript
every few minutes, and if the numbers tell me to, bring the thing up.
You could use MRTG (www.mrtg.org) which graphs usage via SNMP or a
shellscript you write, and use the graphs to finetune the numbers.  I
have found /proc/net.dev a better bet than SNMP for a number of
reasons.

Have you searched freshmeat for any of this?  www.freshmeat.net

A lot of what's there is alpha or beta, but some things are usable.

I seem to recall seeing a couple of webmail things.

You might also want to search the SAGE-AU archives - see .sig - as I
seem to recall someone asking about webmail a while back.

(Of course if you joined SAGE-AU, then you could get lots more working
sysadmins helping.  Yes, that was a plug!)

Zebee
-- 
SAGE-AU: The System Administrator's Guild. www.sage-au.org.au
  To advance the profession of System Administration by raising 
  awareness of the need for System Administrators, and educating 
  System Administrators in technical as well as professional issues.
Technical Details
Message-ID: <slrn9l489n.62k.zebee@zipperii.zip.com.au>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!netnews.com!xfer02.netnews.com!newsfeed.zip.com.au!203.12.97.119.MISMATCH!nostril.pacific.net.au!zebee
References: <9irt8e$pt0$1@lust.ihug.co.nz>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111240,15564fea28543c5e
X-Google-Attributes: gid111240,public
X-Google-Thread: 1154bf,15564fea28543c5e
X-Google-Attributes: gid1154bf,public
X-Google-Thread: 10669a,15564fea28543c5e
X-Google-Attributes: gid10669a,public
X-Google-Thread: 102983,15564fea28543c5e
X-Google-Attributes: gid102983,public
X-Google-ArrivalTime: 2001-07-15 16:03:25 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!netnews.com!xfer02.netnews.com!newsfeed.zip.com.au!203.12.97.119.MISMATCH!nostril.pacific.net.au!zebee
From: zebee@zip.com.au (Zebee Johnstone)
Newsgroups: comp.os.linux.networking,linux.redhat.misc,aus.computers.linux,alt.os.linux.redhat
Subject: Re: Mail downloading and sorting
References: <9irt8e$pt0$1@lust.ihug.co.nz>
Reply-To: zebee@zip.com.au
Message-ID: <slrn9l489n.62k.zebee@zipperii.zip.com.au>
User-Agent: slrn/0.9.5.7 (UNIX)
Lines: 71
Date: Sun, 15 Jul 2001 23:02:12 GMT
NNTP-Posting-Host: 61.8.0.87
X-Complaints-To: news@pacific.net.au
X-Trace: nostril.pacific.net.au 995238132 61.8.0.87 (Mon, 16 Jul 2001 09:02:12 EST)
NNTP-Posting-Date: Mon, 16 Jul 2001 09:02:12 EST
Organization: Pacific Internet (Australia)