Peter wrote:

> Side question: Let's say a few SQL-defined users DO NOT want their mail
> passed (D_PASS). How do I accomodate them?

Let's just consider spam. I think you would have to rethink the structure.
If you are passing spam to everyone right now, if it were me, I would
start by insuring every user who wishes to receive tagged spam uses
a policy that has spam_lover="Y" (possibly set every existing policy to
spam_lover="Y"). In amavisd.conf, I would also set:
$sa_kill_level_deflt = 9999; # triggers spam evasive actions
as a precaution for users not in the SQL database (it is cleaner if
everyone is in SQL).

At this point you could set $final_spam_destiny to something other than D_PASS.
Let's say you set $final_spam_destiny to D_BOUNCE
(and)
$sa_dsn_cutoff_level = 10; # spam level beyond which a DSN is not sent
(I prefer D_DISCARD for spam, but it depends on what spam_kill_level
is set to and whether someone is there to monitor the quarantine or not.)

Then you can create new policies for those who wish not to
receive spam. They would need spam_lover="N" and whatever they
wanted spam_tag2_level and spam_kill_level to be.

The gist is now you decide up front, instead of later in the game.
There may be other ways to accomplish this (but I'm not seeing them).

> Also, I am unclear on what a 'local' user is.
> --
> Peter

>From amavisd.conf-sample:

# Lookup list of local domains (see README.lookups for syntax details)
#
# @local_domains_maps list of lookup tables are used in deciding whether a
# recipient is local or not, or in other words, if the message is outgoing
# or not. This affects inserting spam-related headers for local recipients,
# limiting recipient virus notifications (if enabled) to local recipients,
# in deciding if address extension may be appended, and in SQL lookups
# for non-fqdn addresses. Set it up correctly if you need features
# that rely on this setting (or just leave empty otherwise).
#
# With Postfix (2.0) a quick hint on what local domains normally are:
# a union of domains specified in: mydestination, virtual_alias_domains,
# virtual_mailbox_domains, and relay_domains.

Gary V



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
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/

Reply via email to