[opensuse] Where to find openSuSE/Spamassassin how-to
I followed the former SPAMASSASSIN discussion with great interest. - underfortunately, the thread wasn't exactly what I was looking for. - I've got one machine that receives mail for 15 users. I use postfix. I'd like to setup SA on that machine so that it performs an (albeit) very basic spam filtering using procmail/spamassassin. As I understand, postfix recieves the mail quite as usual. It's delivered to procmail which then - trough the use of certain rules - decides what to do with it. For example, it may send it to SA. Which then will mark spam with an altered header for filtering by the individual users mailprogramme (kmail etc.). Now, does SA send the mail back to procmail - or does SA deliver it to the user? My setup/macine is a rather plain vanilla openSuSE11.1. I've looked - and read - a number of SA documents, but those I found seemed to be outdated or delt with SA being setup by a single user? Any hints and links? Thank you! -- ------------------------------ Med venlig hilsen/Best regards Verner Kjærsgaard -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tue, 2009-09-08 at 22:16 +0200, Verner Kjærsgaard wrote:
I followed the former SPAMASSASSIN discussion with great interest. - underfortunately, the thread wasn't exactly what I was looking for.
It really doesn't matter what distro you are on; if you are using Postfix then that is what you are configuring.
- I've got one machine that receives mail for 15 users. I use postfix. I'd like to setup SA on that machine so that it performs an (albeit) very basic spam filtering using procmail/spamassassin. As I understand, postfix recieves the mail quite as usual. It's delivered to procmail which then - trough the use of certain rules - decides what to do with it. For example, it may send it to SA. Which then will mark spam with an altered header for filtering by the individual users mailprogramme (kmail etc.).
Yep.
Now, does SA send the mail back to procmail - or does SA deliver it to the user?
My advice is to forget about procmail. You don't need it. Install SPAMAssassin Modify /etc/postfix/master.cf adding SPAMAssassin ... smtp inet n - n - - smtpd -o content_filter=spamassassin ... spamassassin unix - n n - - pipe user=nobody argv=/usr/bin/spamc -f -e /usr/sbin/sendmail -oi -f ${sender} ${recipient} --- possibly you may need to adjust paths slightly. Start spamd, HUP postfix, and away you go.
My setup/macine is a rather plain vanilla openSuSE11.1. I've looked - and read - a number of SA documents, but those I found seemed to be outdated or delt with SA being setup by a single user? Any hints and links?
Agree, most of the HOWTOs are rubbish. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tue, 2009-09-08 at 16:46 -0400, Adam Tauno Williams wrote:
My advice is to forget about procmail. You don't need it.
Perhaps not for dealing with spam. But I use procmail to sort incoming mail into various Maildir/IMAP folders. Is there a better (not simply different) way? I also plan on eventually changing a few google lists (e.g., comp.lang.tcl) to send periodic archives that, I think, procmail can unpack into individual mails. -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 8-615 60 20 Mobile: Int +46 70-815 1696 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Roger Oberholtzer wrote:
On Tue, 2009-09-08 at 16:46 -0400, Adam Tauno Williams wrote:
My advice is to forget about procmail. You don't need it.
Perhaps not for dealing with spam. But I use procmail to sort incoming mail into various Maildir/IMAP folders. Is there a better (not simply different) way?
Probably not better, but at least different :-) - I use my email agent to do that. (Thunderbird). /Per -- Per Jessen, Zürich (14.0°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed, 2009-09-09 at 09:02 +0200, Per Jessen wrote:
Roger Oberholtzer wrote:
On Tue, 2009-09-08 at 16:46 -0400, Adam Tauno Williams wrote:
My advice is to forget about procmail. You don't need it.
Perhaps not for dealing with spam. But I use procmail to sort incoming mail into various Maildir/IMAP folders. Is there a better (not simply different) way?
Probably not better, but at least different :-) - I use my email agent to do that. (Thunderbird).
I read my mail from different locations. I got very tired of having to set up each e-mail reader. Also, IMAP makes it easier for me to switch e-mail clients locally when I want to see the state of the various programs. -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 8-615 60 20 Mobile: Int +46 70-815 1696 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Roger Oberholtzer wrote:
On Wed, 2009-09-09 at 09:02 +0200, Per Jessen wrote:
Roger Oberholtzer wrote:
On Tue, 2009-09-08 at 16:46 -0400, Adam Tauno Williams wrote:
My advice is to forget about procmail. You don't need it. Perhaps not for dealing with spam. But I use procmail to sort incoming mail into various Maildir/IMAP folders. Is there a better (not simply different) way? Probably not better, but at least different :-) - I use my email agent to do that. (Thunderbird).
I read my mail from different locations. I got very tired of having to set up each e-mail reader. Also, IMAP makes it easier for me to switch e-mail clients locally when I want to see the state of the various programs.
Some Imap servers understand SIEVE. That protocol is designed for server-based mail handling. Examples are Cyrus Imap and Dove Imap. There are some plugins available for Squirrelmail and probably other webmail clients to handle Sieve filter rules. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Sandy Drobic wrote:
Some Imap servers understand SIEVE. That protocol is designed for server-based mail handling. Examples are Cyrus Imap and Dove Imap.
There are some plugins available for Squirrelmail and probably other webmail clients to handle Sieve filter rules.
I think Kmail allows you to manipulate sieve scripts directly. The problem with sieve is that it is not easy, and you can't turn it over to your typical office staff. It is nice to have server side sorting of mail. Gmail does server side sorting (with labels) and if accessed by imap its a pretty good approximation of sieve scripts. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Some Imap servers understand SIEVE. That protocol is designed for server-based mail handling. Examples are Cyrus Imap and Dove Imap. There are some plugins available for Squirrelmail and probably other webmail clients to handle Sieve filter rules. I think Kmail allows you to manipulate sieve scripts directly. The problem with sieve is that it is not easy, and you can't turn it over to your typical office staff. It is nice to have server side sorting of mail.
We provide SIEVE to ~500 end-user via Horde's Ingo web interface. Our "typical office staff" don't seem to have any problem understanding it. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Adam Tauno Williams wrote:
Some Imap servers understand SIEVE. That protocol is designed for server-based mail handling. Examples are Cyrus Imap and Dove Imap. There are some plugins available for Squirrelmail and probably other webmail clients to handle Sieve filter rules. I think Kmail allows you to manipulate sieve scripts directly. The problem with sieve is that it is not easy, and you can't turn it over to your typical office staff. It is nice to have server side sorting of mail.
We provide SIEVE to ~500 end-user via Horde's Ingo web interface. Our "typical office staff" don't seem to have any problem understanding it.
With "it" being the Ingo interface, not the Sieve language ? Do they use it a lot? (just curious). /Per -- Per Jessen, Zürich (17.7°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Some Imap servers understand SIEVE. That protocol is designed for server-based mail handling. Examples are Cyrus Imap and Dove Imap. There are some plugins available for Squirrelmail and probably other webmail clients to handle Sieve filter rules. I think Kmail allows you to manipulate sieve scripts directly. The problem with sieve is that it is not easy, and you can't turn it over to your typical office staff. It is nice to have server side sorting of mail. We provide SIEVE to ~500 end-user via Horde's Ingo web interface. Our "typical office staff" don't seem to have any problem understanding it. With "it" being the Ingo interface, not the Sieve language ?
Yep. Of course users can directly compose SIEVE or procmail scripts.
Do they use it a lot? (just curious).
About 20% of our users maintain SIEVE scripts beyond vacation notices. Many of those have quite a selection of rules, to the point where I had to raise the limit of the maximum SIEVE script on the server. On current versions of Cyrus SIEVE scripts are compiled to byte-code rather than interpreted which reduced the performance cost to nearly nothing. And the nature of the language eliminates the security concerns of procmail scripts. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Adam Tauno Williams wrote:
Some Imap servers understand SIEVE. That protocol is designed for server-based mail handling. Examples are Cyrus Imap and Dove Imap. There are some plugins available for Squirrelmail and probably other webmail clients to handle Sieve filter rules. I think Kmail allows you to manipulate sieve scripts directly. The problem with sieve is that it is not easy, and you can't turn it over to your typical office staff. It is nice to have server side sorting of mail.
We provide SIEVE to ~500 end-user via Horde's Ingo web interface. Our "typical office staff" don't seem to have any problem understanding it.
I've not yet taken a look at that, and was referring to raw scripts made by hand and usually made wrong. It was something that disparately cried out for a user friendly interface, so I'll take a look at that. Thanks. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed, 2009-09-09 at 08:55 +0200, Roger Oberholtzer wrote:
On Tue, 2009-09-08 at 16:46 -0400, Adam Tauno Williams wrote:
My advice is to forget about procmail. You don't need it. Perhaps not for dealing with spam. But I use procmail to sort incoming mail into various Maildir/IMAP folders. Is there a better (not simply different) way?
SIEVE -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wednesday 09 September 2009 12:20:26 Adam Tauno Williams wrote:
On Wed, 2009-09-09 at 08:55 +0200, Roger Oberholtzer wrote:
On Tue, 2009-09-08 at 16:46 -0400, Adam Tauno Williams wrote:
My advice is to forget about procmail. You don't need it.
Perhaps not for dealing with spam. But I use procmail to sort incoming mail into various Maildir/IMAP folders. Is there a better (not simply different) way?
SIEVE
KMail has a Sieve script manager in the Settings menu. Anyone using it? Will -- Will Stephenson, openSUSE Team SUSE LINUX Products GmbH - Nürnberg - AG Nürnberg - HRB 16746 - GF: Markus Rex -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday, 2009-09-08 at 22:16 +0200, Verner Kjærsgaard wrote: ...
Now, does SA send the mail back to procmail - or does SA deliver it to the user?
Neither :-) I suppose you have something like: :0fw | /usr/bin/spamc :0 a * ^X-Spam-Status: Yes $HOME/Mail/SPAM It is simply a pipe: I understand that spamc receives the email text on the standard input (fed by procmail), and outputs it to the standard output, where procmail gets that and passes it directly to the next rule. Or something similar :-)
My setup/macine is a rather plain vanilla openSuSE11.1.
I've looked - and read - a number of SA documents, but those I found seemed to be outdated or delt with SA being setup by a single user?
Yes, most deal with single user configuration. More, the bayesian filter only works easily with that configuration.
Any hints and links?
Have a look here: http://spamassassin.org/ http://en.wikipedia.org/wiki/SpamAssassin - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkqm12AACgkQtTMYHG2NR9WmqgCfaUxf/t23rK2Y+HiZZVfrJ+QE TvwAn2SRAHnH1Yo4jiKn5MT/96VA/bJz =bOKk -----END PGP SIGNATURE-----
Verner Kjærsgaard wrote:
I've looked - and read - a number of SA documents, but those I found seemed to be outdated or delt with SA being setup by a single user?
I wrote this a few years ago. It's not entirely up to date, but I think it's still useful: http://jessen.ch/articles/spamassassin-and-postfix/ /Per -- Per Jessen, Zürich (13.9°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Per Jessen skrev:
Verner Kjærsgaard wrote:
I've looked - and read - a number of SA documents, but those I found seemed to be outdated or delt with SA being setup by a single user?
I wrote this a few years ago. It's not entirely up to date, but I think it's still useful:
http://jessen.ch/articles/spamassassin-and-postfix/
/Per
Thanks to all! - excellent reading, all of it! - will get to it now, omitting procmail alltogether :-) -- ------------------------------ Med venlig hilsen/Best regards Verner Kjærsgaard -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (8)
-
Adam Tauno Williams
-
Carlos E. R.
-
John Andersen
-
Per Jessen
-
Roger Oberholtzer
-
Sandy Drobic
-
Verner Kjærsgaard
-
Will Stephenson