[Kroupware] configuring fetchmail

Thorsten Schnebeck schnebeck at ifw.uni-hannover.de
Wed Jul 30 10:46:27 CEST 2003


Hi,

I'm using procmail for server side filtering (as long as I don't know how to 
use sieve ;-)

This is my working setup, maybe you have change it a bit for a real world 
multi-user setup.

For historical reasons I still use my system fetchmail/procmail combo.
For some unknown reasons cyrdeliver does not like the new UID scheme of Kolab 
when using user.userid.mailbox for the -m option. But using the userid as 
separate parameter is fine :-) (See "man cyrdeliver")

master root # cat /etc/fetchmailrc
set syslog
poll mail.mymailprovider.tld  proto pop3 user "mailproviderusername" password 
"mailproviderpassword" mda "/usr/bin/procmail /etc/procmailrc"

master root # cat /etc/procmailrc
PATH=/bin:/usr/bin:/usr/local/bin:/usr/sbin
LOGFILE="/var/log/procmail"
USER=kolab at UID.tld
DELIVERMAIL="/kolab/bin/cyrdeliver"
IMAP="$DELIVERMAIL -a $USER -q  -m "
VERBOSE=no
SPAMIT="$IMAP _Trash $USER"

###########################################################
### Spam Assassin
###########################################################

:0fw
| spamassassin -a

:0
* ^X-Spam-Status: Yes
| $SPAMIT


# Add a Content-Length to mails that don't have them
:0 hfw
* !^Content-Length:
| formail -a "Content-Length: 0000000000"

:0fhw
| formail -I "From "

#Mailinglist KDE-Kolab
:0
* ^List-Id:.*kroupware\.mail\.kde\.org
| $IMAP KDE-Kolab $USER

# Rest
:0
| $IMAP _Post $USER

***
If you have any problems, try the verbose option and watch the log!

Bye

  Thorsten



More information about the Kroupware mailing list