Opt in/out scan or spam.
Spam Opt out..
recipients_reject_except = mysql;MYSQL_OPTOUT_SPAM
MYSQL_OPTOUT_SPAM = SELECT recipient FROM optoutspam WHERE recipient='$key'
CREATE TABLE optoutspam (
id int(4) DEFAULT '0' NOT NULL auto_increment,
recipient varchar(128) NOT NULL,
note varchar(128) NOT NULL,
PRIMARY KEY (id),
KEY id (id, recipient),
UNIQUE id_2 (id)
);
Scan Opt out..
MYSQL_OPTOUT_SCAN = SELECT recipient FROM optoutscan WHERE
recipient='${local_part}@${domain}'
(put this director before the scanmails director)
localuser_novir:
driver = aliasfile
search_type = mysql
query = MYSQL_OPTOUT_SCAN
include_domain = true
transport = local_delivery
CREATE TABLE optoutscan (
id int(4) DEFAULT '0' NOT NULL auto_increment,
recipient varchar(128) NOT NULL,
note varchar(128) NOT NULL,
PRIMARY KEY (id),
KEY id (id, recipient),
UNIQUE
);
The general idea is here you can modify it or combine the tables
whatever.... This works in every test I have done on it... Just drop in the
recipient address in either table and it will be excluded from either spam
or scan..
I use mysql because I can interface with mysql with php and write a custom
control panel for the customers to change their own prefs without me having
to deal with it.
Oh if anyone is interested I also have send/recip rejection working... I
currently have it routing rejected mail to /dev/null but you can setup a way
to choose either.. I think I posted my results of that to the list.. let me
know if you would like that also! :)
Thanks,
Brian
Exim rocks me!
----- Original Message -----
From: "Rainer Link" <link@???>
To: "Brian K. West" <brian@???>
Cc: <Matraquilla@???>; "Exim Group" <exim-users@???>
Sent: Monday, June 12, 2000 5:14 AM
Subject: Re: [Exim] Re: Amavis FreeBSD README.exim file?
> Hello!
>
> > Its just the README.exim
> > http://www.unixzone.com/virus/tarballs/amavis-0.2.0-pre6-clm-rl-8.tar.gz
>
> Thanks. Just a note, the official URL is http://dev.amavis.org/, which
> currently forwards to www.unixzone.com
> Latest stuff can be found in CVS:
> http://sourceforge.net/cvs/?group_id=6006
>
>
> > and I convinced her to use exim! :P ). I have also setup a method to opt
out
> > of scanning but that relies on mysql to work unless you can figure out
how
> > to get it working otherwise.
> Well, any more details on this?
>
> [cut]
> > PS: Also have opt in/out spam protection if anyone is interested!
> I'am :-)
>
> Thanks
>
> best regards,
> Rainer Link
>
> --
> Rainer Link | Member of Virus Help Munich (www.vhm.haitec.de)
> rainer@??? | Member of AMaViS Development Team (dev.amavis.org)
> rainer.w3.to | Maintainer FAQ "antivirus for Linux" (av-linux.w3.to)
>
>
> --
> ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim
details at
http://www.exim.org/ ##
>
>