Hi,

>
> I’m trying to whitelist all our internal subdomains but I can’t seem to
> get it to work.****
>
> We have so many of them that it’s impractical to do them individually. For
> instance, we have _...@logs.domain.com, @admin-sql.domani.com etc. etc.
> etc.****
>
> I was thinking that whitelist_from *.domain.com would work but it doesn’t
> ****
>
> I can’t seem to find any documentation on the net anywhere – is it even
> possible to do this? ****
>
I don't think that's going to work, because it uses the header From
information, which can be spoofed easily.

Are you using amavisd-new? It might be easier/better to do this right
within your MTA glue application instead.

@client_ipaddr_policy = (
  [qw( 192.168.1.1/32 )] => 'TRUSTED', # smtp.inside.example.com
  [qw( 0.0.0.0/8 127.0.0.1/8 [::] [::1] )] => 'TRUSTED',
  \@mynetworks => 'MYNETS',
);

$policy_bank{'TRUSTED'} = {
  originating => 1,
  bypass_virus_checks_maps  => [1],
  bypass_spam_checks_maps   => [1],
  bypass_banned_checks_maps => [1],
};

Regards,
Alex

Reply via email to