You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by "Scott C. Villinski" <sc...@villinski.com> on 2004/07/26 22:16:24 UTC
Modifying the envelope information
I've got SA running with Postfix and it's working just fine. However, I
wanted to modify spamd so that any detected SPAM would be routed to a
different user. How can I go about modifying the envelope information?
Right now I'm able to modify the headers, but Postfix still routes the
message onto the original recipient.
Thanks!
Scott
Re: Modifying the envelope information
Posted by Ralph Seichter <ma...@seichter.de>.
Scott C. Villinski wrote:
> How can I go about modifying the envelope information? Right now I'm
> able to modify the headers, but Postfix still routes the message onto
> the original recipient.
I don't think that this is a job for Postfix, nor would I try to alter
the envelope information. Use a filter like amavisd-new:
Incoming -> Postfix -> amavisd-new -> SpamAssassin
Postfix <- amavisd-new <---+
amavisd-new allows you to quarantine spam and viruses, either on the
file system or by sending it to i.e. <sp...@yourdomain.tld>.
SpamAssassin and virus scanners can easily be invoked by amavisd-new.
--
Mit freundlichen Grüßen / Yours sincerely
Dipl. Inform. Ralph Seichter
HORUS-IT
Ahornweg 10
D-57635 Oberirsen
Tel +49 2686 987880
Fax +49 2686 987889
http://horus-it.de/
Re: Modifying the envelope information
Posted by "Scott C. Villinski" <sc...@villinski.com>.
Bob McClure Jr wrote:
> On Mon, Jul 26, 2004 at 02:16:24PM -0600, Scott C. Villinski wrote:
>
>>I've got SA running with Postfix and it's working just fine. However, I
>>wanted to modify spamd so that any detected SPAM would be routed to a
>>different user. How can I go about modifying the envelope information?
>> Right now I'm able to modify the headers, but Postfix still routes the
>>message onto the original recipient.
>>
>>Thanks!
>>
>>Scott
>
>
> SpamAssassin doesn't do that. Assuming you are using procmail for a
> local delivery agent, just put a .procmailrc in the HOME directory of
> the original recipient with a recipe like this:
>
> :0:
> * ^X-Spam-Status: Yes
> /var/spool/mail/otheruser
>
> The .procmailrc should be owned by the (first) user and have perms
> 644.
>
> Cheers,
In my case, I'm running this on my Mailman server - so there are no
locally delivered messages (except to Mailman). I guess I could modify
mailman to look for the Spam flags and then just drop the message.
Scott
Re: Modifying the envelope information
Posted by Bob McClure Jr <ro...@earthlink.net>.
On Mon, Jul 26, 2004 at 02:16:24PM -0600, Scott C. Villinski wrote:
> I've got SA running with Postfix and it's working just fine. However, I
> wanted to modify spamd so that any detected SPAM would be routed to a
> different user. How can I go about modifying the envelope information?
> Right now I'm able to modify the headers, but Postfix still routes the
> message onto the original recipient.
>
> Thanks!
>
> Scott
SpamAssassin doesn't do that. Assuming you are using procmail for a
local delivery agent, just put a .procmailrc in the HOME directory of
the original recipient with a recipe like this:
:0:
* ^X-Spam-Status: Yes
/var/spool/mail/otheruser
The .procmailrc should be owned by the (first) user and have perms
644.
Cheers,
--
Bob McClure, Jr. Bobcat Open Systems, Inc.
robertmcclure@earthlink.net http://www.bobcatos.com
Worry is the darkroom in which negatives are developed.
Re: Modifying the envelope information
Posted by Homer <hp...@homershut.net>.
On Mon, 2004-07-26 at 16:47, Ryan Thompson wrote:
> nadim wrote to spamassassin-users@incubator.apache.org:
>
> > On Monday 26 July 2004 10:45 pm, Daniel Quinlan wrote:
> > > nadim <na...@khemir.net> writes:
> > > >
> > > > I'm also very interrested by an answer as I want my daughters spam (6
> > > > years old) to be routed to me.
> > >
> > > If it's a six-year-old's email, you really want some sort of parental
> > > mail filtering system where EVERY sender or EVERY email is okayed by
> > > you. A spam filter is not enough.
> >
> > I could look at all the mails she gets but that not really "nice".
I block all Windows from internet access in my firewall.. Most spam
comes in with links to the pretty pictures on the net.. Everyone uses
Evolution for their MUA, and it doesn't load graphics off the net by
default... A cure all, no... But it keeps said pretty pics out of their
face ;)
--
Homer Parker /"\ ASCII Ribbon Campaign
BOFH for homershut.net \ / No HTML/RTF in email
http://www.homershut.net x No Word docs in email
telnet://bbs.homershut.net / \ Respect for open standards
"Bill Gates reports on security progress made and the challenges ahead."
-- Microsoft's Homepage, on the day an SQL Server bug crippled large
sections of the Internet.
Re: Modifying the envelope information
Posted by Ryan Thompson <sp...@sasknow.com>.
nadim wrote to spamassassin-users@incubator.apache.org:
> On Monday 26 July 2004 10:45 pm, Daniel Quinlan wrote:
> > nadim <na...@khemir.net> writes:
> > >
> > > I'm also very interrested by an answer as I want my daughters spam (6
> > > years old) to be routed to me.
> >
> > If it's a six-year-old's email, you really want some sort of parental
> > mail filtering system where EVERY sender or EVERY email is okayed by
> > you. A spam filter is not enough.
>
> I could look at all the mails she gets but that not really "nice".
<ETHICAL OPINION>
IMNSHO, a parent's reasonable obligation to protect their young child
from harm certainly overrides the right to privacy in this case.
Entitled to my opinion as I may be, however, my opinion is not
particularly relevant to your technical question about SpamAssassin...
so I'll hereby note my strong objection, and attempt to answer your
question below. :-)
</ETHICAL OPINION>
> I could also whitelist all the friends she has but when they get the
> latest outlook worm, sh'll also get the contents.
Take the time to configure a good anti-virus solution. clamav currently
has my vote, and can be integrated into most MTAs. At the very least,
get a good desktop anti-virus package that will scan email.
> Add an internet connection to that and you have me all sweat.She just
> got the computer but I have to find some solutions soon.
As someone else already pointed out, SpamAssassin can not change the
envelope information; it's a content filter. You need your MTA (or some
tool of the MTA) to change envelope information. procmail will do
nicely, if you already use procmail. I like MIMEDefang, but it is
probably overkill for your needs. There are also other packages out
there that will assist you with this kind of thing; essentially you just
need to be able to set up a simple matching rule to divert all messages
containing (for example) the header "X-Spam-Level: *****" to another
mailbox.
If, for some reason, you can't do this, you can, of course, have her MUA
(mail program) resend all spam flagged messages to you, and delete them
from her inbox. Most MUAs have simple filtering rules that will be
adequate for this job.
- Ryan
--
Ryan Thompson <ry...@sasknow.com>
SaskNow Technologies - http://www.sasknow.com
901-1st Avenue North - Saskatoon, SK - S7K 1Y4
Tel: 306-664-3600 Fax: 306-244-7037 Saskatoon
Toll-Free: 877-727-5669 (877-SASKNOW) North America
Re: Modifying the envelope information
Posted by nadim <na...@khemir.net>.
On Monday 26 July 2004 10:45 pm, Daniel Quinlan wrote:
> nadim <na...@khemir.net> writes:
> > I'm also very interrested by an answer as I want my daughters spam (6
> > years old) to be routed to me.
>
> If it's a six-year-old's email, you really want some sort of parental
> mail filtering system where EVERY sender or EVERY email is okayed by
> you. A spam filter is not enough.
I could look at all the mails she gets but that not really "nice". I could
also whitelist all the friends she has but when they get the latest outlook
worm, sh'll also get the contents. Add an internet connection to that and you
have me all sweat.She just got the computer but I have to find some solutions
soon.
Cheers, Nadim.
Re: Modifying the envelope information
Posted by Daniel Quinlan <qu...@pathname.com>.
nadim <na...@khemir.net> writes:
> I'm also very interrested by an answer as I want my daughters spam (6
> years old) to be routed to me.
If it's a six-year-old's email, you really want some sort of parental
mail filtering system where EVERY sender or EVERY email is okayed by
you. A spam filter is not enough.
Daniel
--
Daniel Quinlan
http://www.pathname.com/~quinlan/
Re: Modifying the envelope information
Posted by LuKreme <kr...@kreme.com>.
On 26 Jul 2004, at 14:21, nadim wrote:
> On Monday 26 July 2004 10:16 pm, Scott C. Villinski wrote:
>> I've got SA running with Postfix and it's working just fine.
>> However, I
>> wanted to modify spamd so that any detected SPAM would be routed to a
>> different user.
> I'm also very interrested by an answer as I want my daughters spam (6
> years
> old) to be routed to me.
I used to use procmail for this on my son's account:
:0
* ^X-Spam-Status:(.*\<)?Yes
! <my account>
Now I have a different method. All mail that is not from someone in a
procmail whitelist file gets forwarded to me (there was still too much
spam getting through).
It's not perfect, still, but it's pretty darn good as the only things
that get through are things with forged froms and low spammishness.
--
You too will get old. And when you do you'll fantasize that when you
were young prices where reasonable, politicians were noble, and
children respected their elders.
Re: Modifying the envelope information
Posted by nadim <na...@khemir.net>.
On Monday 26 July 2004 10:16 pm, Scott C. Villinski wrote:
> I've got SA running with Postfix and it's working just fine. However, I
> wanted to modify spamd so that any detected SPAM would be routed to a
> different user. How can I go about modifying the envelope information?
> Right now I'm able to modify the headers, but Postfix still routes the
> message onto the original recipient.
I'm also very interrested by an answer as I want my daughters spam (6 years
old) to be routed to me.
Thanks, Nadim.