Re: How to get Spamassassin and Postfix to work with each other

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

 



> Hello all,
>
> OK, I've got postfix working great on my system. But I hate the amount of
> spam coming across. I have SpamAssassin, but even though it is on (daemon
> running), mail isn't being filtered. I've done a Google search and all I
> get is answers that are confusing and/or not applicable to Fedora. Can
> anyone provide any tips? Thanks for any help!

Good morning, Gilbert.

Postfix, itself, does not interface with SpamAssassin, directly.

As noted, you can run amavisd, which will detect and use SpamAssassin in
its checks, but it's actually much simpler than that.

All you need to do is

 - Edit the /etc/procmailrc file to include this:

:0 fw
| spamc

:0 e
{
        EXITCODE=$?
}

   which will push each mail delivery through SpamAssassin

 - Then, in each user's .procmailrc, set up something like this:

:0:
* ^X-Spam-Status: Yes
/path/to/spam/folder

   Which will cause procmail to a spam folder.

Alternately, you could use /dev/null, which would dump everything marked
as spam to the bitbucket, but it's not recommended, as SA does, sometimes,
mark false positives.  Until you've built up a large, solid corpus of spam
in your users' bayesian databases, for SA to compare against, it's
probably better to drop the suspected spam into a folder.

-- 
Mike Burger
http://www.bubbanfriends.org

Visit the Dog Pound II BBS
telnet://dogpound2.citadel.org or http://dogpound2.citadel.org

To be notified of updates to the web site, visit:

https://www.bubbanfriends.org/mailman/listinfo/site-update

or send a blank email message to:

site-update-subscribe@xxxxxxxxxxxxxxxxx

-- 
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