|
|||||||||||
|
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 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
~/.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` :0:
:0
:0: .$YEARMONTH-Gentoo/ } :0:
:0fw
:0:
:0:
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 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*
Regards
This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:33:22 EDT |
||||||||||
|
|||||||||||