Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Aug 2005 12:55:06 -0400
From:      Louis LeBlanc <FreeBSD@keyslapper.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: IMAP Server suggestions
Message-ID:  <20050820165506.GA41165@keyslapper.net>
In-Reply-To: <43074973.9050704@ntlworld.com>
References:  <20050820062754.GA3065@blackguy.unixtechs.org> <20050820130601.7c4f456c.albi@scii.nl> <810a540e05082004152d8c1a87@mail.gmail.com> <FC9EDCCE-808C-4A67-8852-BD284E2431DB@HiWAAY.net> <20050820142359.GB70620@keyslapper.net> <43074973.9050704@ntlworld.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--l76fUT7nc3MelDdI
Content-Type: multipart/mixed; boundary="Q68bSM7Ycu6FN28Q"
Content-Disposition: inline


--Q68bSM7Ycu6FN28Q
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 08/20/05 04:17 PM, Glyn Tebbutt sat at the `puter and typed:
> Louis LeBlanc wrote:
> > On 08/20/05 08:00 AM, David Kelly sat at the `puter and typed:
> >=20
> >>On Aug 20, 2005, at 6:15 AM, Pat Maddox wrote:
> >>
> >>
> >>>I run courier-imap, works really well for me.
> >>
> >>I'm reading this thread because courier-imap works but I'm less than =
=20
> >>happy with maillog being flooded with:
> >>
> >>Aug 20 07:41:12 Grumpy imapd: Failed to create cache file: =20
> >>maildirwatch (dkelly)
> >>Aug 20 07:41:12 Grumpy imapd: Error: Input/output error
> >>Aug 20 07:41:12 Grumpy imapd: Check for proper operation and =20
> >>configuration
> >>Aug 20 07:41:12 Grumpy imapd: of the File Access Monitor daemon (famd).
> >>
> >>Also MacOS X Mail.app often has connection problems. Suspect that =20
> >>problem has something to do with mutt modifying my Maildir between =20
> >>Mail.app connections as once Mail.app has a good connection it stays =
=20
> >>good. OTOH procmail delivers to my Maildir INBOX which isn't much =20
> >>different than what I do with mutt.
> >=20
> >=20
> >=20
> > Never seen these problems.  IIRC, there was a thread about error
> > messages coming from famd several months ago.  As I understand the
> > message, it's just a famd config issue, but I don't know for sure.
> >=20
> > I use procmail to pipe through SpamAssassin (spamd) and do some other
> > sorting before delivering to maildirs, but I never have connection
> > problems (unless I forget to recheck configs after upgrading the
> > courier auth package).  Of course, I haven't talked my wife into
> > letting me buy that PowerBook yet . . .
> >=20
> > Courier-imap has been running flawlessly for me for around 3 years.  I
> > understand it can handle several hundreds (or thousands) of times more
> > load than I can give it.  It's not idiot proof, but running a mail
> > server really shouldn't be, don't you think?
> >=20
> > Lou
> I also use courier-imap which just sit's back and does it's job nicely.
> Can I ask to take a look at your .procmailrc as I've had some issue's
> with procmail not filtering my mail into the inbox's properly (all over
> folder's were find thou)
> Cheers

No problem.  You'll find it attached.  Hopefully the commentary is
clear enough what my intention is.

Lou
--=20
Louis LeBlanc                          FreeBSD-at-keyslapper-DOT-net
Fully Funded Hobbyist,                   KeySlapper Extrordinaire :)
Please send off-list email to:         leblanc at keyslapper d.t net
Key fingerprint =3D C5E7 4762 F071 CE3B ED51  4FB8 AF85 A2FE 80C8 D9A2

QOTD:
  "Don't let your mind wander -- it's too little to be let out alone."

--Q68bSM7Ycu6FN28Q
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: attachment; filename="my.procmailrc"

FOLDER = $1

PATH="$HOME/bin:/usr/local/cyrus/bin:/usr/bin:/bin:/usr/local/bin:/usr/include:/usr/local/sbin:/bin:/sbin:/usr/sbin:."
SHELL=/bin/sh
MAILDIR=$HOME/.Maildir
LOGFILE=$HOME/.procmail_log
DEFAULT=$HOME/.Maildir
# VERBOSE=on
VERBOSE=off
LOGABSTRACT=all
NL="
"
TIMEOUT=1200

VIRDIR=$MAILDIR/.virus
NIGDIR=$MAILDIR/.spam
PORNDIR=$MAILDIR/.spam

# Need to remove the bogus 'From ' header if it's there.
:0hfw
| formail -I "From "

#############################################################
##    NEVER CHANGE ANYTHING ABOVE THIS LINE ON YOUR OWN    ##
#############################################################

# Place any antispam or other filtering recipes here.
# Don't write to files or pipe to programs unless you
# are ABSOLUTELY SURE you know what you are doing!

:0
* $ ^To:.*add2list
{
  # whitelist - subject with add2white <email@address> will add the email
  # address to my SA whiltelist. Make sure the whitelistpasswd is in the body.
  :0
  * ^Subject:.*add2white[    ]*\/[^  ].+
  {
    ADDR=$MATCH
    :0Bi:whitelist.lck
    * ^whitelistpasswd
    |nice -n 20 spamassassin --add-addr-to-whitelist=$ADDR

    :0
    /dev/null
  }

  # blacklist - subject with add2black <email@address> will add the email
  # address to my SA blacklist. Make sure the whitelistpasswd is in the body.
  :0
  * ^Subject:.*add2black[    ]*\/[^  ].+
  {
    ADDR=$MATCH
    :0Bi:blacklist.lck
    * ^whitelistpasswd
    |nice -n 20 spamassassin --add-addr-to-blacklist=$ADDR

    :0
    /dev/null
  }
}

# I have many "honeypot" addresses which I seeed into newsgroups when I'm
# bored.  They are all aliased to myaddress+trap@mydomain.com.  This catches
# them and automagically teaches them to the bayes db.  Make sure any posting
# is presented with a very clear warning that the address is a honeypot and
# what is done with messages recieved.
:0
* FOLDER ?? ^^trap^^
{
  # VERBOSE=off
  # ls -l ~/.honeypot_hits tells you how many you've caught
  LOGFILE=$HOME/.honeypot_hits
  LOG="."
  LOGFILE=$HOME/.procmail_log
  # VERBOSE=on
  # Report spam
  :0c:honeypot.lock
  | nice -n 20 /usr/local/bin/spamassassin -r

  :0:salearn.lock
  | nice -n 20 /usr/local/bin/sa-learn --spam --no-rebuild

  :0
  /dev/null
}

# VERBOSE=on
# Check for some obvious virii - YAVR adaptations
# this never gets anything since I installed clamav and f-prot
INCLUDERC=/usr/local/etc/mail/procmail/nkvir-rc
# VERBOSE=off

# If the message isn't too big, hasn't already been scanned, and isn't a direct
# dump, scan it.  Also, don't scan anything from the SpamAssassin list, since
# it often includes tags that might skew my bayes DB.
:0
* B ?? < 256000
* FOLDER ?? !spam
* FOLDER ?? !assassin
{
  # Always try spamc first, if spamd is running and not overloaded, this is
  # more efficient.
  :0fw
  | spamc -x

  # If that doesn't work, use spamassassin directly, but count it.
  # ls -l ~/.backup_sacheck will tell us how much overflow is occurring.
  :0e
  {
    # VERBOSE=off
    LOGFILE=$HOME/.backup_sacheck
    LOG="."
    LOGFILE=$HOME/.procmail_log
    # VERBOSE=on

    :0fw
    | spamassassin
  }

  # I segregate autolearned spam (definitely spam) from regular (probably)
  # spam.
  :0
  * autolearn=spam
  {
    :0
    { FOLDER=spam_autolearn }
  }

  # My spamlearn.pl will take "confirmed" spam (that marked as "read" which is
  # moved to the .../cur/ directory in the spam folder) and pipe it through the
  # bayes learner every night.
  :0E
  * ^X-Spam-Status: YES
  {
    :0
    { FOLDER=spam }
  }

#   VERBOSE=off
}


#############################################################
##    NEVER CHANGE ANYTHING BELOW THIS LINE ON YOUR OWN    ##
#############################################################

# By this time, $FOLDER must be the name of the folder you want this
# message delivered to, or blank if it is to go into the INBOX.

:0
* FOLDER ?? !spam
{
  ##
  ## PGP
  ##
  :0
  * FOLDER ?? !spam
  * FOLDER ?? !trash
  * !^Content-Type: message/
  * !^Content-Type: multipart/
  * !^Content-Type: application/pgp
  {
    :0 fBhw
    * ^-----BEGIN PGP MESSAGE-----
    * ^-----END PGP MESSAGE-----
    | formail -Y -f -i "Content-Type: application/pgp; format=text; x-action=encrypt"

    :0 fBhw
    * ^-----BEGIN PGP SIGNED MESSAGE-----
    * ^-----BEGIN PGP SIGNATURE-----
    * ^-----END PGP SIGNATURE-----
    | formail -Y -f -i "Content-Type: application/pgp; format=text; x-action=sign"
  }
}

:0 fhw
* FOLDER ?? !trash
* FOLDER ?? !spam
* 1^0
* B ?? 1^1 ^.*$
* B ?? -1^0 ($)($)^^
| formail -f -I "Lines: $="

VERBOSE=on
:0 w
* FOLDER ?? .
$MAILDIR/.$FOLDER/

# Only if there was no extension do we try this
:0 wE
$MAILDIR/

# Whichever one we tried, failed
EXITCODE=$?
LOG="$NL"
$DEFAULT

--Q68bSM7Ycu6FN28Q--

--l76fUT7nc3MelDdI
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQFDB2Bqr4Wi/oDI2aIRAtCTAJ0YUtH50VwuyQvjOaaSsupBZxM/XQCeOK4t
UY1ksluu4g+Tqh5wYe/bwI8=
=5KkG
-----END PGP SIGNATURE-----

--l76fUT7nc3MelDdI--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050820165506.GA41165>