From: Paul Enlund on
Hi

I want to stop MAIL FROM: somebody@[a.b.c.d] (IP address) being accepted.
My impression would have been the config below would do this as say [1.1.1.1]
does not have A or MX records.

smtpd_sender_restrictions =
reject_unknown_sender_domain


How can I achieve my goal.

Regards Paul Enlund.

From: mouss on
Paul Enlund a �crit :
> Hi
>
> I want to stop MAIL FROM: somebody@[a.b.c.d] (IP address) being accepted.
> My impression would have been the config below would do this as say
> [1.1.1.1]
> does not have A or MX records.
>


try a check_sender_access with a pcre map:

/@\[/ REJECT Sorry, we do not accept literal IP addresses.




> smtpd_sender_restrictions =
> reject_unknown_sender_domain
>

well, obviously, [1.1.1.1] is not a valid DNS notation, so "nothing" is
going to check it in DNS.


>
> How can I achieve my goal.
>
> Regards Paul Enlund.