From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1E3Uzv-0001UN-NA for garchives@archives.gentoo.org; Fri, 12 Aug 2005 08:34:40 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j7C8XYlg012281; Fri, 12 Aug 2005 08:33:34 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j7C8XX1n002021 for ; Fri, 12 Aug 2005 08:33:33 GMT Message-Id: <200508120833.j7C8XX1n002021@robin.gentoo.org> Received: from lark.gentoo.osuosl.org ([140.211.166.177] helo=lark.gentoo.org) by smtp.gentoo.org with smtp (Exim 4.43) id 1E3Uzn-00055a-Py for gentoo-doc-cvs@lists.gentoo.org; Fri, 12 Aug 2005 08:34:31 +0000 Received: by lark.gentoo.org (sSMTP sendmail emulation); Fri, 12 Aug 2005 08:34:23 +0000 From: "swift" Date: Fri, 12 Aug 2005 08:34:23 +0000 To: gentoo-doc-cvs@lists.gentoo.org Subject: [gentoo-doc-cvs] cvs commit: mailfilter-guide.xml Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-doc-cvs@gentoo.org Reply-to: docs-team@lists.gentoo.org X-Archives-Salt: 4389931d-7e74-4ce0-a12f-e4016976a758 X-Archives-Hash: 005cd18c69f7aa3c23cc67f943295234 swift 05/08/12 08:34:23 Modified: xml/htdocs/doc/en mailfilter-guide.xml Log: #102150 - Miscellaneous updates Revision Changes Path 1.12 +33 -30 xml/htdocs/doc/en/mailfilter-guide.xml file : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/mailfilter-guide.xml?rev=1.12&content-type=text/x-cvsweb-markup&cvsroot=gentoo plain: http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/mailfilter-guide.xml?rev=1.12&content-type=text/plain&cvsroot=gentoo diff : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/mailfilter-guide.xml.diff?r1=1.11&r2=1.12&cvsroot=gentoo Index: mailfilter-guide.xml =================================================================== RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/mailfilter-guide.xml,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- mailfilter-guide.xml 12 Aug 2005 08:15:33 -0000 1.11 +++ mailfilter-guide.xml 12 Aug 2005 08:34:23 -0000 1.12 @@ -1,6 +1,6 @@ - + @@ -23,7 +23,7 @@ -0.7.10 +0.8.0 2005-08-12 @@ -98,9 +98,12 @@ setup special IMAP folders for learning of the Bayesian filter and for delivery of false positives + +
  • setup greylisting with Postfix
  • +
  • setup Amavisd-new to use a MySQL backend for user preferences
  • +
  • setup Spamassassin to use a MySQL backend for AWL and Bayes data
  • @@ -260,7 +263,7 @@ -o smtp_data_done_timeout=1200 -o smtp_send_xforward_command=yes #Equivalently when using lmtp: -#smtp-amavis unix - - n - 2 lmtp +#lmtp-amavis unix - - n - 2 lmtp # -o lmtp_data_done_timeout=1200 # -o lmtp_send_xforward_command=yes @@ -292,7 +295,7 @@ The smtp-amavis line specifies that a maximum of two of these processes may run at any time. If you need a greater degree of concurrency tune this number to fit your needs. Remember that to match -the number with $max_servers= in amavisd.conf +the number with $max_servers in amavisd.conf @@ -422,6 +425,7 @@ --> + +

    Edit the following lines in /etc/amavisd.conf

    @@ -481,6 +486,10 @@ # chmod 750 /var/amavis/virusmails + +Amavisd-new offers finer policy tuning by using policy banks. + +
    @@ -702,7 +711,7 @@ -In a future version of this guide I plan to implement per-user policies using +In a later chapter I will show how to implement per-user policies using MySQL. @@ -744,7 +753,6 @@

    -# echo "mail-filter/spamassassin-ruledujour  ~x86" >> /etc/portage/package.keywords
     # emerge "mail-filter/spamassassin-ruledujour"
     
    @@ -845,6 +853,8 @@ If you want to see the complete output from amavisd-new start amavisd debug-sa as the amavis user and send a mail. +For this to work you might have to change the default shell in +/etc/passwd.

    @@ -1447,15 +1457,6 @@ Postgrey is now in Portage, currently still unstable. - -Instead of trusting the IO-Multiplex ebuild you can simply -emerge it using g-cpan.pl, a Perl script that automatically -downloads the latest version of a Perl module, creates an ebuild for it -and installs it on your system: g-cpan.pl IO-Multiplex. This does require -that your CPAN environment is set up correctly. - - -

    After installing postgrey we have to edit main.cf. Changes are almost exactly like the built in greylisting. @@ -1530,11 +1531,16 @@

    -The upcoming Spamassassin 3.0 has support for SPF, however it is only in -the prerelease stage and the new policy daemon in Postfix supports SPF -so let's install SPF support for Postfix. +Spamassassin 3.0 has support for SPF, however it is not enabled by default +and the new policy daemon in Postfix supports SPF so let's install SPF support +for Postfix.

    + +If you want to use SPF with Spamassassin instead simply +emerge dev-perl/Mail-SPF-Query and restart Amavisd-new. + +
    @@ -1548,7 +1554,7 @@

    -# cp postfix-2.1.0/examples/smtpd-policy/spf.pl /usr/bin/
    +# cp postfix-<version>/examples/smtpd-policy/spf.pl /usr/local/bin/
     
    @@ -1566,16 +1572,9 @@

    -# echo "dev-perl/Mail-SPF-Query ~x86" >> /etc/portage/package.keywords
    -# echo "dev-perl/Net-CIDR-Lite ~x86" >> /etc/portage/package.keywords
    -# echo "dev-perl/Sys-Hostname-Long ~x86" >> /etc/portage/package.keywords
     # emerge Mail-SPF-Query Net-CIDR-Lite Sys-Hostname-Long
     
    - -The above Perl libraries are now in Portage, currently still unstable. - -

    Now that we have everything in place all we need is to configure Postfix to use this new policy. @@ -1583,7 +1582,7 @@

     policy-spf  unix  -       n       n       -       -       spawn
    -   user=nobody argv=/usr/bin/perl /usr/bin/spf.pl
    +   user=nobody argv=/usr/bin/perl /usr/local/bin/spf.pl
     

    @@ -2025,6 +2024,10 @@ Postfix README

  • Amavisd-new +Policy bank documentation +
  • +
  • Spamassassin SQL README
  • Greylisting
  • -- gentoo-doc-cvs@gentoo.org mailing list