From: kai.grossjohann@uni-duisburg.de (Kai Großjohann)
Subject: Re: road warrior trying to simplify a mail setup
Date: Fri, 07 Feb 2003 16:52:49 +0100 [thread overview]
Message-ID: <84adh86qb2.fsf@lucy.is.informatik.uni-duisburg.de> (raw)
In-Reply-To: <yorsr8ak7e3k.fsf@lamppc3.epfl.ch>
Michel Schinz <Michel.Schinz@epfl.ch> writes:
> The major one is mail splitting. Gnus, Mail.app and IMP all have ways
> to sort mail, but of course they are not compatible. Which means that
> you either have to install an IMAP server with server-side splitting,
> or have to find another way. I didn't experiment with server-side
> splitting, but I fear that the solutions available now (i.e. SIEVE)
> are not powerful enough to filter SPAM using external tools
> (SpamAssassin or whatever).
I'm not a SpamAssassin poweruser (in fact, I just installed it and
then forgot about it until a few seconds ago), but my setup works
nicely with this: incoming mail is passed by Postfix through SA,
before ending up in the Cyrus server. There, Sieve can be used to
split based on the headers added by SA.
I didn't know what I was doing, so I'm rather surprised it works.
In /etc/postfix/master.cf, augment the smtp line as follows:
smtp inet n - - - - smtpd
-o content_filter=filter:
And also add a filter line (okay, two lines), like this:
filter unix - n n - - pipe
flags=Rq user=spamassassin argv=/etc/postfix/spamassassin.sh -f ${sender} -- ${recipient}
Hm. I'm not sure if the script does the right thing. It seems it
should just frob the headers and dump the message to standard out.
But it invokes sendmail. Hm. I got the script from some readme or
other, or maybe from the web:
#!/bin/sh
INSPECT_DIR=/var/spool/spamassassin
SENDMAIL="/usr/sbin/sendmail -i"
# Exit codes (snarfed from sysexists.h)
EX_TEMPFAIL=75
EX_UNAVAILABLE=69
# Clean up when done or when aborting.
trap "rm -f in.$$ out.$$" 0 1 2 3 15
# Start processing.
cd $INSPECT_DIR || { echo $INSPECT_DIR does not exist; exit $EX_TEMPFAIL; }
cat >in.$$ || { echo Cannot save mail to file; exit $EX_TEMPFAIL; }
#( echo "X-Filtered: yes" ; cat in.$$ ) > out.$$ || \
# { echo Filter failure; exit $EX_UNAVAILABLE; }
/usr/bin/spamc -f <in.$$ >out.$$ || \
{ echo Message content rejected; exit $EX_UNAVAILABLE; }
$SENDMAIL "$@" <out.$$
exit $?
--
A turnip curses Elvis
next prev parent reply other threads:[~2003-02-07 15:52 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-05 17:04 Randal L. Schwartz
2003-02-05 21:47 ` Vasily Korytov
2003-02-05 21:49 ` Randal L. Schwartz
2003-02-06 9:30 ` James Leifer
2003-02-06 21:37 ` Kirk Strauser
2003-02-06 15:46 ` Kai Großjohann
2003-02-07 1:27 ` Stainless Steel Rat
2003-02-07 2:04 ` Randal L. Schwartz
2003-02-07 2:24 ` Stainless Steel Rat
2003-02-07 5:41 ` Randal L. Schwartz
2003-02-07 16:28 ` Stainless Steel Rat
2003-02-07 16:39 ` David S Goldberg
2003-02-07 18:14 ` Randal L. Schwartz
2003-02-07 18:49 ` David S Goldberg
2003-02-07 18:13 ` Randal L. Schwartz
2003-02-07 19:38 ` Stainless Steel Rat
2003-02-07 19:53 ` Randal L. Schwartz
2003-02-07 20:06 ` Stainless Steel Rat
2003-02-07 20:18 ` Randal L. Schwartz
2003-02-07 23:18 ` Stainless Steel Rat
2003-02-07 21:45 ` Kai Großjohann
2003-02-07 7:18 ` Michel Schinz
2003-02-07 9:07 ` Niklas Morberg
2003-02-07 15:44 ` Randal L. Schwartz
2003-02-07 16:34 ` David S Goldberg
2003-02-07 15:52 ` Kai Großjohann [this message]
2003-02-14 21:53 ` David Wuertele
2003-02-15 5:50 ` Randal L. Schwartz
2003-02-15 6:02 ` Randal L. Schwartz
2003-03-01 0:32 ` David Wuertele
2003-03-03 8:50 ` Bjørn Mork
2003-03-03 17:27 ` David Wuertele
2003-03-04 12:11 ` Bjørn Mork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=84adh86qb2.fsf@lucy.is.informatik.uni-duisburg.de \
--to=kai.grossjohann@uni-duisburg.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).