Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
spamass-milter
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
sinetific
n00b
n00b


Joined: 05 Nov 2003
Posts: 26

PostPosted: Tue May 23, 2006 2:27 pm    Post subject: spamass-milter Reply with quote

I want to configure my spamass-milter to use the -x option to parse the recipient name through sendmail's virtual user table in order to get per user prefrences properly working.

The /etc/conf.d/spamass-milter file looks like this:
Code:

# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamass-milter/files/spamass-milter.conf,v 1.2 2004/07/14 22:29:01 agriffis Exp $

DAEMON=/usr/sbin/spamass-milter
SOCKET=/var/run/spamd/spamass-milter.sock
PIDFILE=/var/run/spamd/spamass-milter.pid
DESC="Sendmail milter plugin for SpamAssassin"


I'm not exactly sure where I put flags if i want them to be enabled. Could i modify the init file and add an option to the conf.d file for OPTIONS like so:
Code:

#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamass-milter/files/spamass-milter.rc,v 1.2 2004/07/14 22:29:01 agriffis Exp $

# NB: Config is in /etc/conf.d/spamass-milter

depend() {
        need net spamd
        use logger
        before sendmail
}

start() {
        ebegin "Starting $DESC"
        start-stop-daemon --start --quiet --make-pidfile --pidfile ${PIDFILE}\
                --exec ${DAEMON} -- -p ${SOCKET} -f ${OPTIONS}
        eend $? "Failed to start ${DAEMON}"
}

stop() {
        ebegin "Stopping $DESC"
        {
                killall ${DAEMON}
                /bin/sleep 5s
                /bin/rm -f ${SOCKET}
                /bin/rm -f ${PIDFILE}
        } && kill -1 `head -n 1 /var/run/sendmail.pid`
        eend $? "Failed to stop ${DAEMON}"
}

and
Code:

# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamass-milter/files/spamass-milter.conf,v 1.2 2004/07/14 22:29:01 agriffis Exp $

DAEMON=/usr/sbin/spamass-milter
SOCKET=/var/run/spamd/spamass-milter.sock
PIDFILE=/var/run/spamd/spamass-milter.pid
OPTIONS=-x
DESC="Sendmail milter plugin for SpamAssassin"


Maybe I'm just missing something really simple here.
Back to top
View user's profile Send private message
sinetific
n00b
n00b


Joined: 05 Nov 2003
Posts: 26

PostPosted: Tue May 23, 2006 2:57 pm    Post subject: Reply with quote

nvm filed under bugs.gentoo.org
https://bugs.gentoo.org/show_bug.cgi?id=134118
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum