Specify options in configuration and adapt package for virtual users.

Thu, 23 Apr 2009 15:20:21 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 23 Apr 2009 15:20:21 +0200
changeset 192
62106debeb75
parent 191
d980506f80fc
child 193
9f27b979db4d

Specify options in configuration and adapt package for virtual users.

spamassassin/local.cf file | annotate | diff | comparison | revisions
spamassassin/rc.spamassassin file | annotate | diff | comparison | revisions
spamassassin/spamassassin.spec file | annotate | diff | comparison | revisions
     1.1 --- a/spamassassin/local.cf	Thu Apr 23 15:16:09 2009 +0200
     1.2 +++ b/spamassassin/local.cf	Thu Apr 23 15:20:21 2009 +0200
     1.3 @@ -13,3 +13,29 @@
     1.4  #whitelist_from         *@example.com
     1.5  #whitelist_to           *@example.com
     1.6  
     1.7 +#   use a terse header instead of X-Spam-Report
     1.8 +remove_header all Report
     1.9 +
    1.10 +#   encapsulate spam in an attachment
    1.11 +report_safe             0
    1.12 +
    1.13 +#   enable the Bayes system
    1.14 +use_bayes               1
    1.15 +
    1.16 +#   enable Bayes autolearning
    1.17 +bayes_auto_learn        1
    1.18 +
    1.19 +#   enable or disable network checks
    1.20 +#skip_rbl_checks         1
    1.21 +#use_razor2              1
    1.22 +#use_dcc                 1
    1.23 +#use_pyzor               1
    1.24 +
    1.25 +#   mail using languages used in these country codes will not
    1.26 +#   be marked as being possibly spam in a foreign language.
    1.27 +#ok_languages            all
    1.28 +
    1.29 +#   mail using locales used in these country codes will not
    1.30 +#   be marked as being possibly spam in a foreign language.
    1.31 +#ok_locales              all
    1.32 +
     2.1 --- a/spamassassin/rc.spamassassin	Thu Apr 23 15:16:09 2009 +0200
     2.2 +++ b/spamassassin/rc.spamassassin	Thu Apr 23 15:20:21 2009 +0200
     2.3 @@ -7,7 +7,7 @@
     2.4      spamassassin_enable="$openpkg_rc_def"
     2.5      spamassassin_bind="127.0.0.1"
     2.6      spamassassin_port="783"
     2.7 -    spamassassin_flags="-A 127. --local"
     2.8 +    spamassassin_flags="-x -u @l_rusr@ -A 127. --local --virtual-config-dir=@l_prefix@/var/spamassassin/spool/%u"
     2.9      spamassassin_stop_delay="2"
    2.10      spamassassin_log_prolog="true"
    2.11      spamassassin_log_epilog="true"
     3.1 --- a/spamassassin/spamassassin.spec	Thu Apr 23 15:16:09 2009 +0200
     3.2 +++ b/spamassassin/spamassassin.spec	Thu Apr 23 15:20:21 2009 +0200
     3.3 @@ -37,7 +37,7 @@
     3.4  Group:        Mail
     3.5  License:      ASF
     3.6  Version:      %{V_here}
     3.7 -Release:      20090420
     3.8 +Release:      20080612
     3.9  
    3.10  #   package options
    3.11  %option       with_fsl  yes
    3.12 @@ -112,16 +112,17 @@
    3.13          %{SOURCE local.cf} \
    3.14          $RPM_BUILD_ROOT%{l_prefix}/etc/spamassassin/
    3.15  
    3.16 -    #   create directory for PID file
    3.17 +    #   create directories for PID file and virtual users
    3.18      %{l_shtool} mkdir -f -p -m 755 \
    3.19 -        $RPM_BUILD_ROOT%{l_prefix}/var/spamassassin
    3.20 +        $RPM_BUILD_ROOT%{l_prefix}/var/spamassassin \
    3.21 +        $RPM_BUILD_ROOT%{l_prefix}/var/spamassassin/spool
    3.22  
    3.23      #   strip installation
    3.24      chmod u+w $RPM_BUILD_ROOT%{l_prefix}/bin/*
    3.25      strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
    3.26      rm -rf $RPM_BUILD_ROOT%{l_prefix}/man/man3
    3.27  
    3.28 -    #   install run-command script
    3.29 +    #   install runcommand script
    3.30      %{l_shtool} mkdir -f -p -m 755 \
    3.31          $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
    3.32      %{l_shtool} install -c -m 755 %{l_value -s -a} \
    3.33 @@ -142,6 +143,7 @@
    3.34          '%config %{l_prefix}/etc/fsl/fsl.spamassassin' \
    3.35          '%config %{l_prefix}/etc/spamassassin/*' \
    3.36          '%attr(775,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/spamassassin' \
    3.37 +        '%attr(755,%{l_susr},%{l_sgrp}) %{l_prefix}/var/spamassassin/spool' \
    3.38          '%attr(4755,%{l_rusr},%{l_mgrp}) %{l_prefix}/bin/spamc' \
    3.39          `cat perl-openpkg-files`
    3.40  

mercurial