Okay how to solve this? Here the logs attached. It looks like that postfix don't know to handle other users. If I send from allowed domains which I entered in the protected_destinations it works. If I send a mail from gmail:
Feb 13 21:44:06 CGSG postfix/smtpd[8296]: Anonymous TLS connection established from mail-wr1-f49.google.com[209.85.221.49]: TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 Feb 13 21:44:06 CGSG postfix/smtpd[8296]: warning: unknown smtpd restriction: "smtpd_restriction_classes" Feb 13 21:44:06 CGSG postfix/smtpd[8296]: NOQUEUE: reject: RCPT from mail-wr1-f49.google.com[209.85.221.49]: 451 4.3.5 Server configuration error; from=<da...@gmail.com> to=<da...@domain.com> proto=ESMTP helo=<mail-wr1-f49.google.com> >From allowed side it looks like: Feb 13 21:43:21 CGSG postfix/qmgr[8269]: 667C17E0061: from=<da...@domain.com>, size=2441, nrcpt=1 (queue active) Feb 13 21:43:21 CGSG cyrus/lmtpchroot[8287]: Delivered: <4a03e4aa-911d-4b3a-b07b-b81359797...@benelog.com> to mailbox: domain.net!user.test Any ideas? Best Regards David Faller Am 13.02.21, 21:40 schrieb "Viktor Dukhovni" <owner-postfix-us...@postfix.org im Auftrag von postfix-us...@dukhovni.org>: On Sat, Feb 13, 2021 at 08:49:56PM +0100, Dan wrote: > /etc/postfix/main.cf: > smtpd_recipient_restrictions = > ... > check_recipient_access hash:/etc/postfix/protected_destinations > ...the usual stuff... > > smtpd_restriction_classes = insiders_only > insiders_only = check_sender_access hash:/etc/postfix/insiders, reject > > /etc/postfix/protected_destinations: > all@my.domain insiders_only > all@my.hostname insiders_only > > /etc/postfix/insiders: > my.domain OK matches my.domain and subdomains > another.domain OK matches another.domain and subdomains > Which is working, but after creating the hash tables like in this example, other users won’t get new mails from outside. > > All other mails are rejected in the logs with “server configuration error” Fix the "server configuration error" detailed in your logs. -- Viktor.