Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: sendmail + courier-imap + procmail

From: Alexander Farber <Alexander.Farber(at)t-online.de>
Date: Tue Mar 04 2003 - 10:02:57 EST

Hi,

On Sun, Mar 02, 2003 at 05:58:35AM -0600, Jay Moore wrote:
> I'm trying to get courier-imap working on my OBSD 3.2 box. I think I

I use fetchmail to fetch the mails via POP3 from my provider and then pass them to procmail/SpamAssassin/Courier-IMAP(SSL) - all from ports on an OpenBSD 3.2-stable PC. And then I access those mails from mutt and also from Outlook Express. Here are my config files:

~/.fetchmailrc (ok in your setup with Sendmail you probably need to tweak /etc/mail/sendmail.cf instead):

    set postmaster alex
    set no bouncemail
    set no spambounce
    set daemon 300
    set syslog
    poll pop.t-online.de with proto POP3 user Alexander.Farber is alex password . is alex pass8bits fetchall mda "/usr/local/bin/procmail -d %T"

~/.procmailrc (note .mailbox/ names for Courier-IMAP):

    PATH=/bin:/usr/bin:/usr/local/bin

    MAILDIR=$HOME/Maildir		# you'd better make sure it exists
    DEFAULT=$MAILDIR/INBOX		# completely optional
    LOGFILE=$MAILDIR/logfile		# recommended
    VERBOSE=on

    YEARMONTH=`date +%Y-%m`
Do you need help?X

    :0:

  • ^TO_.*openbsd\.(org|com) .$YEARMONTH-OpenBSD/

    :0

  • ^List-Id:.*gentoo-user\.gentoo\.org { :0hf | formail -fc | sed -e '/^Subject:/ s,\[gentoo-user\] ,,g'
	:0:
	.$YEARMONTH-Gentoo/

    }

    :0:

  • ^TO_.*openbsd\.ru .$YEARMONTH-OpenBSD-ru/

    :0fw

  • < 262144 | spamassassin

    :0:

  • ^X-Spam-Status: Yes .Spam/

    :0:
    .$YEARMONTH-Inbox/

Part of /etc/rc.local (I don't use spamd):

    # openssl s_client -connect localhost:993     if [ -e /etc/ssl/private/imapd.pem ]; then

	if [ X"${imapd}" = X"YES" -a -x /usr/local/bin/imapd ]; then
	    echo -n ' imapd'
	    mkdir -p /var/run/courier-imap/
	    /usr/local/libexec/imapd-ssl.rc start
	fi

    fi
Do you need more help?X

Part of /etc/rc.shutdown:

    echo -n 'halting local daemons:'

    if [ -e /var/run/courier-imap/pid ]; then

        echo -n ' imapd'; /usr/local/libexec/imapd-ssl.rc stop     fi

    if [ -e /var/run/squid.pid ]; then

        echo -n ' squid'; /usr/local/sbin/squid -k shutdown     fi

    echo '.'

You also need to adapt /etc/courier-imap/imapd*

Can we help you?X

Regards
Alex Received on Tue Mar 4 10:08:27 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:33:22 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library