On Thu, 25 Jan 2007 19:22:30 -0700, Eric "Shubes" wrote:
>> %{qdir}/supervise/spamd/run
>
> I don't think of this as a configuration file. [...]
It's not really a "configuration file" but because it is something that might
be fine-tuned there is a strong advantage to adding the %config(noreplace) flag
in the rpm spec. By doing so we only ensure that upgrades will not overwrite
this file if it is changed. The drawback is that if this file *is* modified as
in a new version, the new copy will not be installed immediately, instead it
will be installed in the same location with a .rpmnew extension (and a message
printed to screen during install). The user will then need to compare their
modified file (run) with the .rpmnew file (run.rpmnew). But this gives them the
chance to merge the upgrade changes with their own modifications.
> As recently discussed on the
> this list, I think it'd be good if the toaster had
> /var/qmail/control/supervise/${service}/concurrent (or some such) control
> files where tailoring of tcpserver parameters would be specified. These
> control files, when present, should then be specified as %config(noreplace).
> In the case of spamd, the -L switch should be tailorable. So there might be
> a /var/qmail/control/supervise/spamd/switches file, which would contain
> "-L", and the corresponding run file would include in the exec command line
> if the "switches" file exists.
I think that's really too much complexity and it makes it harder for everybody.
How many control files would be needed to customize spamd the way I'm running
it, which is:
exec /usr/bin/spamd -q -x -u vpopmail -s stderr -P -m 15 --min-spare=2
--max-spare=5 --max-conn-per-child=50 --timeout-child=20 --timeout-tcp=20 2>&1
>> %{_sysconfdir}/mail/spamassassin/v310.pre
>> %{_sysconfdir}/mail/spamassassin/v312.pre
>
> I'm not so sure about these two.
These too are definitely config files (the .pre extension simply means they are
loaded before other .cf files). 7 lines are different in mine than those
distributed (i.e. I've enabled 7 plugins). A normal spamassassin upgrade with
never overwrite files in /etc/mail/spamassassin, so we shouldn't either.
> The wiki instructions for SURBL say to
> modify v310.pre to add the loading of URIDNSBL. Couldn't this be included in
> the stock toaster without changing its behavior (given the -L switch)? I
> think this would be desirable to have in the stock toaster.
I'm not sure if URIDNSBL is enabled by -L. But then again, there are so many
different permutations I think the best option is simply providing stock
spamassassin configuration files and assume the installing sysadmin will know
what he needs (or ask the spamassassin list for advice).
> Is there a local type of configuration file where non-stock plugins
> could/should be loaded so that the v31?.pre files aren't normally modified?
> These files seem to me to be ones that might change with upgrades, so
> shouldn't be modified to tailor the configuration.
The naming scheme of the .pre files gives it away. If additional features are
released in a future version of spamassassin a new plugin config file will be
included as v3XX.pre (indicating the version it was released with).
> FWIW, if you use qtp-newmodel to do the upgrade, your former configuration
> files are be backed up in /usr/src/qtp-upgrade/backups/. This includes the
> mail/spamassassin files, but not the run files. If the run files need to be
> included in this process, let me know and I'll add them.
I run a backup script daily with a the following save set:
/etc/clamd.conf
/etc/courier
/etc/freshclam.conf
/etc/httpd/conf.d/toaster.conf
/etc/isoqlog/isoqlog.conf
/etc/mail/spamassassin
/etc/tcprules.d
/home/vpopmail/.spamassassin
/home/vpopmail/domains/.overquota.msg
/home/vpopmail/domains/.procmailrc-template
/home/vpopmail/domains/.qmail-user-template
/home/vpopmail/domains/.quotawarn.msg
/home/vpopmail/etc
/usr/share/clamav
/usr/share/qmailadmin/html
/usr/share/qmailadmin/images
/usr/share/qmailadmin/lang
/usr/share/toaster/include/admin.htpasswd
/usr/share/toaster/mrtg/qmailmrtg.cfg
/var/qmail/alias
/var/qmail/control
/var/qmail/supervise/authlib/run
/var/qmail/supervise/clamd/run
/var/qmail/supervise/imap4-ssl/run
/var/qmail/supervise/imap4/run
/var/qmail/supervise/pop3-ssl/run
/var/qmail/supervise/pop3/run
/var/qmail/supervise/send/run
/var/qmail/supervise/smtp/run
/var/qmail/supervise/spamd/run
/var/qmail/users
What do you think Erik?
Q
---------------------------------------------------------------------
Strangecode :: Internet Consultancy
http://www.strangecode.com/
+1 530 624 4410
---------------------------------------------------------------------
QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]