Open Relay testing based on recipient domain? Disable?
Mark Martinec
Mark.Martinec+amavis at ijs.si
Thu Aug 4 17:05:55 CEST 2011
> CREATE TABLE mydomains (domain_name bytea PRIMARY KEY);
> INSERT INTO mydomains (domain_name) VALUES
> ('localhost'), ('example.com'), ('example.si');
>
> @local_domains_maps = (); # no statical lookups, SQL is implicit
> $sql_lookups_no_at_means_domain = 1;
> $sql_select_policy =
> "SELECT 1 AS id FROM mydomains WHERE ('.' || domain_name) IN (%k)";
Shoul have added:
@lookup_sql_dsn =
(['DBI:Pg:database=mail_prefs', 'amavis', 'secrethjkhjkyiutiuypassword']);
Mark
More information about the amavis-users
mailing list