Thank you very much Victor, You put me on the right track. I should have
checked the access databases more closely.

Peter

Am Mo., 13. Mai 2024 um 12:18 Uhr schrieb Viktor Dukhovni via Postfix-users
<[email protected]>:

> On Mon, May 13, 2024 at 11:56:30AM +0200, Peter Uetrecht via Postfix-users
> wrote:
>
> > I have a working multi-instance setup with Postfix version 3.8.4 What
> > surprises me is that “recipient_canonical” works for some recipients
> > but not for all.  It seems that "recipient_canonical" works for
> > orig_to recipients in "mydomain", while it does not work for orig_to
> > recipients in "other.domain".
> >
> > # postconf -c /etc/postfix-common/ -nf
> > ...
> > recipient_canonical_maps = pcre:/etc/postfix-common/recipient_canonical
> > ...
> > /etc/postfix-common/recipient_canonical
> > /[email protected]/       [email protected]
> > /[email protected]/        [email protected]
>
> These RE patterns sorely need "^" and "$" anchors, as well as "\"
> escaping of literal "." characters.
>
> > /var/log/maillog
> > 2024-05-13 11:05:46 smtp01 postfix-common/smtpd[2085384]: NOQUEUE:
> reject:
> > RCPT from unknown[10.127.0.14]: 554 5.7.1 <[email protected]>:
> > Recipient address rejected: Access denied;
> from=<[email protected]>
> > to=<[email protected]> proto=SMTP helo=<10.127.0.14>
>
> Access(5) rules are processed early, prior to address rewriting, and
> have nothing to do with accepting or rejecting of the original recipient
> address by the smtpd(8) service.  You have a "REJECT" rule matching this
> recipient, or all recipients in this domain.
>
> > 2024-05-13 11:05:46 smtp01 postfix-common/smtpd[2085384]: using
> > backwards-compatible default setting
> > smtpd_relay_before_recipient_restrictions=no to reject recipient
> > "[email protected]" from client "unknown[10.127.0.14]"
>
> Possibly via a legacy late application of "smtpd_relay_restrictions".
>
> I repeat, canonical mappings have nothing to do with this.
>
> --
>     Viktor.
> _______________________________________________
> Postfix-users mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
>
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to