On Sat, Feb 13, 2021 at 09:56:52PM +0100, Dan wrote:

> It looks like that postfix don't know to handle other users. 

No, rather you have a syntax error in your main.cf file.

> Okay how to solve this?

Fix the syntax error.

> Here the logs attached.

> If I send a mail from gmail:
> 
> 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>

You have "smtpd_restriction_classes" in the wrong place.

> 
>     > /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

There must be leading whitespace in front of "smtpd_restriction_classes", as
you would see if you use "postconf -nf", rather than just pasting the file
content.  You can see just the problem settings with:

    # postconf -n | grep smtpd_restriction_classes

-- 
    Viktor.

Reply via email to