|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
SpamAssassin: How to *NOT* filter certain mails?
From: Alexander Skwar (not-NOSPAM-from
email-server.info)
Date: Tue Mar 23 2004 - 13:56:43 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello.
Postfix 2.0.16
SpamAssassin 2.63
Debian/GNU Linux
I've setup my Postfix to filter every incoming mail through a "spamcfilter"
content-filter. For this, I've got in master.cf:
smtp inet n - - - - smtpd
-o content_filter=spamcfilter:
smtps inet n - n - - smtpd
-o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
-o content_filter=spamcfilter:
spamcfilter unix - n n - - pipe
flags=RqO user=filter argv=/local/scripts/spamc-filter.sh
-f ${sender} -- ${recipient}
/local/scripts/spamc-filter.sh:
#!/bin/sh
/usr/bin/spamc | /usr/sbin/sendmail -i "$
"
exit $?
With this setup, every incoming mail is ran through spamc-filter.sh and
thus SA.
Now I'd like to modify this setup a bit. I want to accomplish, that "my"
mails (ie. mails that I send) are not scanned. Or, I want to accomplish,
that only mails which "Postfix" will store locally are scanned.
Mails are storred using cyrdeliver from Cyrus, for which I have in
master.cf:
cyrus unix - n n - - pipe
flags=RO user=cyrus argv=/usr/sbin/cyrdeliver -r ${sender}
-m ${extension} ${user}
and in main.cf:
mailbox_transport = cyrus
How would I go about it?
Thanks,
Alexander Skwar
--
Bei den Vegetariern heißt der Beischlaf "Bestäubung".
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]