I installed Mailcow server, It is sending out messages well to gmail. But when I try to send from gmail to the mail, gmail returns an error.
554 5.7.1 <>: Relay access denied
I have tried to edit the main.cf file in the postfix folder to
smtpd_recipient_restrictions = check_recipient_mx_access proxy:mysql:/opt/postfix/conf/sql/mysql_mbr_access_maps.cf,
permit_sasl_authenticated,
permit_mynetworks,
check_recipient_access proxy:mysql:/opt/postfix/conf/sql/mysql_tls_enforce_in_policy.cf
removed
reject_invalid_helo_hostname,
reject_unauth_destination
smtpd_sender_restrictions = reject_authenticated_sender_login_mismatch,
permit_mynetworks,
permit_sasl_authenticated
rremoved
reject_unlisted_sender,
reject_unknown_sender_domain
But it didn’t cause any change as the mail still fails. Please what do I do here ?