Michael Sperber:
> 
> wie...@porcupine.org (Wietse Venema) writes:
> 
> > Michael Sperber:
> >> Feb 14 15:32:32 deinprogramm postfix/submission/smtpd[61536]: 
> >> match_hostaddr: 134.2.186.48 ~? 134.2.186.48/32
> >> Feb 14 15:32:32 deinprogramm postfix/submission/smtpd[61536]: 
> >> match_list_match: permit_mynetworks: no match
> >
> > That is unexpected. Did you compile Postfix by hand, or is this
> > from a distribution?
> 
> By hand.  (I'm running 2.10.1 on FreeBSD.)

OK, the logging is misleading.

Here's a test with a host with /32 patterns in mynetworks:

# postconf mynetworks smtpd_recipient_restrictions smtpd_relay_restrictions
mynetworks = 127.0.0.1/32 192.168.1.2/32 192.168.122.1/32 168.100.189.7/32
smtpd_recipient_restrictions =
smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, 
defer_unauth_destination

Logging:

Feb 15 10:39:23 wzv postfix/smtpd[10244]: match_hostaddr: mynetworks: 
192.168.1.2 ~? 192.168.1.2/32
Feb 15 10:39:23 wzv postfix/smtpd[10244]: match_list_match: permit_mynetworks: 
no match
Feb 15 10:39:23 wzv postfix/smtpd[10244]: generic_checks: 
name=permit_mynetworks status=1
Feb 15 10:39:23 wzv postfix/smtpd[10244]: >>> END Recipient address 
RESTRICTIONS <<<
Feb 15 10:39:23 wzv postfix/smtpd[10244]: >>> CHECKING RECIPIENT MAPS <<<

The "status=1" means that there was a match.

Postfix 2.10 introduces smtpd_relay_restrictions which allows you
to separate spam control (smtpd_recipient_restrictions) from mail
relay control (smtpd_relay_restrictions).

What is your output for:

$ postconf smtpd_recipient_restrictions smtpd_relay_restrictions

        Wietse


        Wietse

Reply via email to