Patricio,

> Anyway to have White and Black Lists on SQL DB or LDAP.
> For now im using:
>   read_hash(\%whitelist_sender, '/etc/postfix/whitelist');
>   read_hash(\%blacklist_sender, '/etc/postfix/blacklist');
> But i need to restart Amavisd every time i modify the files.

Yes, white and blacklisting is available on SQL and LDAP too.

See README.sql for a schema and some examples.

Table 'mailaddr' is used to keep sender addresses,
table 'users' keeps recipient addresses as usual,
and table 'wblist' brings records from both tables into
a relation, either for black or white listing, or just
to contribute some score points (soft white/black listing).

>From README.lookups:

  The following order (implemented by sorting on the 'priority' field
  in DESCending order, zero is low priority) is recommended, to follow
  the same specific-to-general principle as in other lookup tables:

  - lookup for user+...@example.com
  - lookup for u...@example.com (only if $recipient_delimiter is '+')
  - lookup for user+foo (only if domain part is local)
  - lookup for user     (only local; only if $recipient_delimiter is '+')
  - lookup for @example.com
  - lookup for @.example.com
  - lookup for @.com
  - lookup for @.       (catchall)


With LDAP the approach is similar in concept, see README.ldap.

  Mark

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net 
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