Zbigniew Szalbot wrote:
> Hello again,
>
> accept hosts = +relay_from_hosts
>
> accept
> senders = :
> condition = ${if >{$recipients_count}{1}{0}{1}}
>
> deny dnslists = zen.spamhouse.org
> !authenticated = *
> !hosts = +relay_from_hosts
> condition = ${if
> match{${mask:$sender_host_address/0}}{${mask:::0/0}}{no}{yes}}
> message = DNSBL: Your mail host $sender_host_address is
> listed at $dnslist_domain\n$dnslist_text
>
> I am using someone else's configuration here so will appreciate your
> comments as to what to change. Thank you very much in advance! I just want
> to deny messages if someone is listed in spamhouse and does not
> authenticate or is not on the relay from list.
>
I would probably change that ACL like this:
deny
senders = :
!condition = ${if >{$recipients_count}{1}{0}{1}}
There is probably no need to treat bounces in a much different way than
other emails.
Please note that some people will probably object my reply and tell you
that bounces _may_ be sent to multiple recipients in very special cases.
So you could also remove that ACL, but that's up to you to decide.