Matt wrote:
> I want to have a server (call it "spamgate") that can:
> 1. Score and tag ALL inbound mail with Spamassassin headers, whether it
> be deemed spam, virus or perfectly legitimate email.
> 2. Deliver NO mail locally but relay ALL mail to a single destination
> or host (sadly, an Exchange machine.)
> 3. Accept mail for three domains only, all of which are owned and managed by
> our
> organization. All three domains have the same (Exchange server)
> host/destination.
> 4. For now, the spamgate box will not quarantine, reject or delete ANYTHING
> on the
> basis of it being spam
> # Modified for use with Debian by Gary V, mr88talent at yahoo dot com
Hmm, looks familiar.
> @bypass_virus_checks_maps = (1); # uncomment to DISABLE anti-virus code
You will want to comment this out if you install a virus scanner like
ClamAV.
> $sa_tag_level_deflt = undef; # add spam info headers if at, or above that
> level
Ok, mail included in @local_domains_maps should get X-Spam headers
> $sa_kill_level_deflt = 9999;
> $sa_kill_level_deflt = 8.0;
This is defined twice, the last one will be used.
> $sa_local_tests_only = 1; # only tests which do not require internet
> access?
You will be missing network tests (which can make a big difference in
scoring).
$final_virus_destiny = D_DISCARD;
$final_banned_destiny = D_BOUNCE;
$final_spam_destiny = D_PASS;
$final_bad_header_destiny = D_PASS;
Spam will pass (even though you $sa_kill_level_deflt = 8.0;).
However, because you have $sa_kill_level_deflt = 8.0;, a copy of
every spam message will get quarantined at that level, so you either
need to set this at 9999, or set your *_quarantine_to setting at
undef.
> $virus_quarantine_to = 'virus-quarantine';
> $banned_quarantine_to = '[EMAIL PROTECTED]';
The syntax is wrong, - single and double quotes are different.
The first one is Ok, the second one should be:
$banned_quarantine_to = "[EMAIL PROTECTED]";
> $bad_header_quarantine_to= 'bad-header-quarantine';
> $spam_quarantine_to = '[EMAIL PROTECTED]';
Same here, should be "[EMAIL PROTECTED]";
But if you don't want to quarantine anything (personally I *would*
quarantine banned so you can rescue them) you might consider:
$virus_quarantine_to = undef;
$banned_quarantine_to = "[EMAIL PROTECTED]";
$bad_header_quarantine_to= undef;
$spam_quarantine_to = undef;
> # ['ClamAV-clamd',
> # \&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd.ctl"],
> # qr/\bOK$/, qr/\bFOUND$/,
> # qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
I suggest setting up ClamAV.
> ------------------------------ main.cf ---------------------------------
> mynetworks = 198.76.121.0/24
I would also include 127.0.0.0/8
> ----------------------------- end main.cf ----------------------------
> 127.0.0.1:10025 inet n - - - - smtpd
> -o content_filter=
> -o smtpd_restriction_classes=
> -o smtpd_delay_reject=no
> -o smtpd_client_restrictions=permit_mynetworks,reject
> -o smtpd_helo_restrictions=permit_mynetworks
> -o smtpd_sender_restrictions=
> -o
> smtpd_recipient_restrictions=permit_mynetworks,permit_relaydomains,reject
> -o smtpd_data_restrictions=reject_unauth_pipelining
> -o smtpd_end_of_data_restrictions=
> -o mynetworks=127.0.0.0/8, 198.76.121.0/24
> -o smtpd_error_sleep_time=0
> -o smtpd_soft_error_limit=1001
> -o smtpd_hard_error_limit=1000
> -o smtpd_client_connection_count_limit=0
> -o smtpd_client_connection_rate_limit=0
> # -o smtpd_milters=
> -o local_header_rewrite_clients=
> -o local_recipient_maps=
> -o relay_recipient_maps=
> -o
> receive_override_options=no_header_body_checks,no_unknown_recipient_checks
Probably makes no difference at all, but if I comment something out
this, I place the commented out setting at the bottom.
Gary V
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/