Here is what I did. First I created a user named spam with a home directory.
I have been running this since Feb. 2003 with no problems.

I then created a /etc/sysconfig/spamassassin file with the following
information.

# Start /etc/sysconfig/spamassassin

OPTIONS="-d -c -a -q -x -u spam"

# End /etc/sysconfig/spamassassin

I then created a startup script for spamassassin. Which I setup to start
right before courier.

#!/bin/bash
# Begin $rc_base/init.d/spamassassin

# Based on sysklogd script from LFS-3.1 and earlier.
# Rewritten by Gerard Beekmans  - [EMAIL PROTECTED]

source /etc/sysconfig/rc
source $rc_functions

if [ -f /etc/sysconfig/spamassassin ]
        then
                source /etc/sysconfig/spamassassin
fi


case "$1" in
        start)
                echo "Starting Spam Assassin..."
                loadproc spamd $OPTIONS
                ;;

        stop)
                echo "Stopping Spam Assassin..."
                killproc spamd
                ;;

        restart)
                $0 stop
                sleep 1
                $0 start
                ;;

        status)
                statusproc spamd
                ;;

        *)
                echo "Usage: $0 {start|stop|restart|status}"
                exit 1
                ;;
esac

# End $rc_base/init.d/spamassassin

I modified my courierd file DefaultDelivery

DEFAULTDELIVERY="| /usr/bin/spamc -f | /usr/bin/maildrop"


----- Original Message ----- 
From: "Mirko Zeibig" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 17, 2003 1:17 AM
Subject: [courier-users] Virtual domain users (UserDB) with own
.spamassassin/user_prefs


> Hello,
>
> I am running spamc from /etc/courier/maildroprc, having only virtual
accounts
> underneath /home/vmail/domain.com/username. Right now I only have one
pref-file
> for spamassassin in /home/vmail/.spamassassin/user_prefs, but I'd like to
have
> this on a per-virtual-user base.
>
> I see I could invoke "spamc -u $USER" in maildroprc, however "spamd" uses
> a programm called vuserinfo to get the homedir information. Has anybody a
better
> solution than to patch "spamd", maybe using $HOME directly, which is set
to the
> right directory already?
>
> Regards
> Mirko
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> _______________________________________________
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
>



-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to