Cameron Camp a écrit :
> LuKreme said to use:
actually, it was mouss...
>
> check_sender_access hash:/etc/postfix/mydomain
>
> == mydomain
> example.com REJECT you cannot send on behalf of example.com
> .example.com REJECT you cannot send on behalf of example.com
>
> can I use:
>
> check_sender_access proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
>
yes.
query = SELECT 'REJECT blah blah' from yourtable where
'%d' = domain or '%d' like concat('%.', domain);
the last part (to catch '.domain' variant) may or may not be needed,
depending on parent_domain_matches_....
> and if so, what entry should I add in mysql db mail table domains?
>
> thx,
> Cameron
>