Re: CentOS HowTos

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

 



On Tue, Dec 31, 2013 at 01:00:40AM +0100, Timothy Murphy wrote:
> On Monday, December 30, 2013 03:38:46 PM Robert Moskowitz wrote:
> 
> > > I collect email on my server from various (remote) mail-servers.
> > > This is then processed by postfix/amavis/clamav/spamassassin .
> > > Spam is marked by addition of [SPAM] or ***Spam*** to the Subject header,
> > > as well as addition of several other headers.
> > > 
> > > As I understand it, the email is then passed through dovecot(?),
> > > to ~/Maildir/cur/ .
> > > 
> > > This must be a standard setup.
> > > So how normally is spam dealt with, at this stage?
> > > What is the norm?
> 
> > I strongly doubt there is a norm.  :)
> > 
> > But the howtos on amavis (which integrates clamav), show how it can do
> > all sorts of things with spam.  What helped me a lot was:
> > 
> > http://campworld.net/thewiki/pmwiki.php/LinuxServersCentOS/Cent6VirtMailServ
> > er
> 
> Thank you for your response.
> I looked at the above document, but as far as I can see it said nothing
> to answer my query, namely, how is spam email marked as spam
> by the addition of the header
>   X-Spam-Flag: YES
> normally filtered into a Spam folder,
> preferably by dovecot, but possibly earlier by amavis or postfix?

Probably uses procmail for that. In procmail I use headers inserted
by spambayes like this:

	########### Feed it thru SPAMBAYES first ################
	:0 fw:hamlock
	| /usr/bin/sb_filter.py -f -d $HOME/.hammiedb

	# then filter out spam and unsure stuff....
	:0
	* ^X-Spambayes-Classification: spam
	$HOME/Mail/newspam

	:0
	* ^X-Spambayes-Classification: unsure
	$HOME/Mail/unsure

which filters based on what the X-Spambayes-Classification: header says.


-- 
---- Fred Smith -- fredex@xxxxxxxxxxxxxxxxxxxxxx -----------------------------
               But God demonstrates his own love for us in this: 
                         While we were still sinners, 
                              Christ died for us.
------------------------------- Romans 5:8 (niv) ------------------------------
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux