sinetific n00b
Joined: 05 Nov 2003 Posts: 26
|
Posted: Tue May 23, 2006 2:27 pm Post subject: spamass-milter |
|
|
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. |
|