On Wed, Aug 28, 2024 at 06:22:27AM +0800, LinuxMail.cc via Postfix-users wrote:

> Thank you so much for the help. Now I have resolved the issue. The logs show
> nothing that error for now.
> 
> Aug 28 06:15:49 linuxmail postfix/smtpd[39646]: connect from
> mail-oo1-f65.google.com[209.85.161.65]
> Aug 28 06:15:49 linuxmail policyd-spf[39652]: prepend Received-SPF: Pass
> (mailfrom) identity=mailfrom; client-ip=209.85.161.65;
> helo=mail-oo1-f65.google.com; envelope-from=x...@gmail.com;
> receiver=<UNKNOWN>
> Aug 28 06:15:50 linuxmail postfix/smtpd[39646]: 2B34380410:
> client=mail-oo1-f65.google.com[209.85.161.65]
> Aug 28 06:15:50 linuxmail postfix/cleanup[39653]: 2B34380410: 
> message-id=<CAPx=cFb=PcEoWd9H+bME3TK=bjzmhe-mntgsozhq1t6z3+y...@mail.gmail.com>
> 
> 
> What I have done is remove "reject_sender_login_mismatch" from main.cf of
> this location,
> 
> smtpd_recipient_restrictions =
>    check_policy_service { unix:ratelimit/policy, default_action=DUNNO },
>    permit_mynetworks,
>    permit_sasl_authenticated,
>    reject_unauth_destination,
>    check_policy_service { unix:private/policyd-spf, default_action=DUNNO }


THe "permit_sasl_authenticated" is a pointless NOOP.
> 
> And put it into master.cf in smtps section:
> 
> smtps     inet  n       -       y       -       -       smtpd
>   -o syslog_name=postfix/smtps
>   -o smtpd_tls_wrappermode=yes
>   -o reject_sender_login_mismatch=yes

That parameter assignment serves no purpose.
"reject_sender_login_mismatch" is an action (verb) for use a restriction
list.  It isn't a boolean configuration parameter (noun).

>   -o smtpd_sasl_auth_enable=yes
>   -o smtpd_reject_unlisted_recipient=no
>   -o smtpd_client_restrictions=$mua_client_restrictions
>   -o smtpd_helo_restrictions=$mua_helo_restrictions
>   -o smtpd_sender_restrictions=$mua_sender_restrictions
>   -o smtpd_recipient_restrictions=

What you should be doing is adding "reject_sender_login_mismatch"
to one of the stock restriction classes, perhaps via
$mua_sender_restrictions (in main.cf):

    mua_sender_restrictions =
        ...
        reject_sender_login_mismatch
        ...

along with whatever else you want in there.  Each of the configuration
parameters defining the stock restriction specifies a collection (noun)
consisting of action verbs.  The verbs themselves are not configuration
parameters.  When you wrote:

    -o reject_sender_login_mismatch=yes

you were just making up a superficially similar syntax without
considering what this could mean.  Try to avoid this sort of
improvisation, and instead to understand the documentation, or
ask for help to do that.

-- 
    Viktor.
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to