Problem Postfix Webmin

OS type and version ubuntu server 20.04.6
Webmin version 2.105

I have a problem sending mail. I want to send mail via a distant mail server. It seems there is auth problem even if I configure the auth in webmin and in the postfix conf. The port I am using is open.

postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
allow_untrusted_routing = yes
append_dot_mydomain = yes
biff = no
compatibility_level = 2
inet_protocols = ipv4
mailbox_command = procmail -a “$EXTENSION”
mailbox_size_limit = 0
mynetworks_style = subnet
readme_directory = no
recipient_delimiter = +
relayhost = mail.domain. com:port
smtp_sasl_auth_enable = yes
smtp_sasl_mechanism_filter = login
smtp_sasl_password_maps = hash:/etc/postfix/smtp_sasl_password_map
smtp_sasl_security_options = noanonymous
smtp_tls_security_level = may
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtp_tls_wrappermode = yes
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_recipient_restrictions = permit_inet_interfaces permit_sasl_authenticated
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination permit_inet_interfaces
smtpd_sasl_auth_enable = yes
smtpd_tls_auth_only = yes
smtpd_tls_security_level = encrypt
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.