This is a discussion on Re: [AMaViS-user] Spam-handling email only for selected users within the Amavis User forums, part of the Anti-Spam and Anti-Virus Related Forums category; Richard, > If I wanted to only perform spam-handling for specific user email > addresses and allow all other ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Richard,
> If I wanted to only perform spam-handling for specific user email > addresses and allow all other email to the domain to avoid > spam-handling, would the following work: > > @spam_lovers_maps = ( read_hash("$MYHOME/spam_lovers") ); > @local_domains_maps = ( [".xyz.com"] ); > > where $MYHOME_/spam_lovers contains: > > # Perform spam-handling for these users > !user1@xyz.com > !user2@xyz.com > !user3@xyz.com > # All other users opt out of spam-handling > .xyz.com Almost, but you got the syntax wrong. You are using a syntax for ACL but using a hash lookup. You can either do: @spam_lovers_maps = ( read_hash("$MYHOME/spam_lovers") ); user1@xyz.com 0 user2@xyz.com 0 user3@xyz.com 0 # All other users opt out of spam-handling # (no right-hand side implies true) ..xyz.com Or use a lookup list instead of a hash: spam_lovers_maps = ( read_array("$MYHOME/spam_lovers") ); !user1@xyz.com !user2@xyz.com !user3@xyz.com # All other users opt out of spam-handling ..xyz.com Mark ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/...fo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/ |