Re: How is local mail delivery accomplished using postfix?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

tfreeman@xxxxxxxxxxxxxxxxxx wrote:
> What I want to happen is to use postfix and spamassassin to que up
> the email to either accessed locally or by imap by the remote son or
> daughters. What I'm not finding out (google & RH docs etc) is how
> postfix hands off email for delivery to local spool, such that
> spamassassin can get it's paws on the message.

You can do this with just a few edits.  In /etc/postfix/main.cf,
specify the path to procmail for $mailbox_command:

mailbox_command = /usr/bin/procmail

Create /etc/procmailrc and include the spamassassin-spamc.rc file:

INCLUDERC=/etc/mail/spamassassin/spamassassin-spamc.rc

There are issues with procmail and SELinux, which don't appear to be
fixed with the latest selinux policy I have installed (2.2.40-1.fc5),
so you may need to disable that or work out the proper policy changes
until the official selinux policy gets updated.

(See the fedora-selinux-list archives for some details.  Paul Howarth
brought this up and pointed me toward it, so he may well be able to
offer some specific tips in this area.)

As with most things, there are other ways to do this and plenty of
ways you could tweak things further.  The postfix, procmail, and
spamassassin manuals will be of help, as will google.  FWIW though, I
just made the changes I outlined and tested them, so I know that they
do at least work.  YMMV.

After that, you can setup your email clients to do whatever they want
with mail that's marked as spam by spamassassin.  Setting up a method
to train the Bayesian filters is something I'd highly recommend.

- -- 
Todd        OpenPGP -> KeyID: 0xD654075A | URL: www.pobox.com/~tmz/pgp
======================================================================
Authority has every reason to fear the skeptic, for authority can
rarely survive in the face of doubt.
    -- Robert Lindner

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: When crypto is outlawed bayl bhgynjf jvyy unir cevinpl.

iG0EARECAC0FAkR1JbcmGGh0dHA6Ly93d3cucG9ib3guY29tL350bXovcGdwL3Rt
ei5hc2MACgkQuv+09NZUB1pwCgCg4okkXQU1qQdAt9HRzqwG/qZ0cB8AoJbuWvqm
LKfrzp4psh0pbam1JA3C
=mqyy
-----END PGP SIGNATURE-----

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux