Re: IO and an encoded email attachment



Cliff Cyphers wrote:
Jon Leighton wrote:
Hi all,

I have been trying to set up a small Ruby script as a spam filter. It
would be used as a content_filter from Postfix, and then pass the
message to SpamAssassin. I didn't use SA as a direct content filter
because I wanted the flexibility to be able to do things like pick and
choose which email addresses get filtered.

If you use procmail for your MDA you can set up recipes so that you can
pass incoming message that match these rules to spamd. This is a much
faster solution than implementing in Ruby. Just something to consider.

Thanks for the suggestion. I considered procmail but didn't really want
to use it because I already had set up a working system using Postfix
and virtual mailboxes. I'm sure that's possible in procmail too but just
adds another technology to the chain and something else to learn.
However, if we can't find a reasonable solution to this problem I may
reconsider it.

--
Posted via http://www.ruby-forum.com/.

.



Relevant Pages

  • Re: [SLE] Copy spool mail files?
    ... Knowing next to nil about imap, this is as close as I can come: ... Postfix is a mail transfer agent which handles SMTP ... Procmail is used to actually deliver the email, ... SpamAssassin is a spam email filter. ...
    (SuSE)
  • Re: [SLE] Procmail + postfix
    ... > procmail all the exe, bat, pif ... ... I prefer to just reject those messages using header checks ... in postfix, but that's just me. ... filter in postfix rather than as a global procmail rule. ...
    (SuSE)
  • Re: redhat-list digest, Vol 1 #8452 - 26 msgs
    ... You have to tell postfix to send the mail through spamc, ... talks to spamd to filter the mail. ... If you need help mail me off list and I'll help if I can. ... site-wide filtering, rather than procmail. ...
    (RedHat)
  • Re: IO and an encoded email attachment
    ... I have been trying to set up a small Ruby script as a spam filter. ... It would be used as a content_filter from Postfix, and then pass the message to SpamAssassin. ... I didn't use SA as a direct content filter because I wanted the flexibility to be able to do things like pick and choose which email addresses get filtered. ... If you use procmail for your MDA you can set up recipes so that you can pass incoming message that match these rules to spamd. ...
    (comp.lang.ruby)
  • Re: procmail recipe for a given message body
    ... Some of you experienced with procmail hopefully can help me out ... to filter these messages out. ... recipe for that. ... filter messages based on regular expression matches on the "body" ...
    (comp.unix.bsd.freebsd.misc)