I'm pulling my hair out and really could do with some help. I want to configure my system to send all emails via Proton mail. I don't need to receive emails on this box.
I'm getting the following error:
home postfix/smtp[259268]: warning: unsupported SASL client implementation: plain
home postfix/smtp[259268]: fatal: SASL library initialization
home postfix/master[258194]: warning: process /usr/lib/postfix/sbin/smtp pid 259268 exit status 1
home postfix/master[258194]: warning: /usr/lib/postfix/sbin/smtp: bad command startup -- throttling
ChatGPT suggested I install sasl2-bin libsasl2-modules - these are already installed.
This really shouldn't be that hard. I have posted my config files below. Any help would be massively appreciated, as I've spent more than a day getting nowhere.
Thanks in advance.
My sasl_passwd:
smtp.protonmail.ch [email protected]:MYPASSWORD (Stating the obvious, these are not the actual values)
My main.cf file:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
readme_directory = no
# See http://www.postfix.org/COMPATIBILITY_README.html -- default to 3.6 on
# fresh installs.
compatibility_level = 3.6
# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_security_level=may
smtp_tls_CApath=/etc/ssl/certs
smtp_tls_security_level=may
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = host.mydomain.com
mydomain = mydomain.com
masquerade_domains = mydomain.com
smtp_sasl_logging = yes
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_type = plain
smtp_use_tls = yes
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = $mydomain
mydestination = localhost
relayhost = [smtp.protonmail.ch]:587
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = loopback-only
inet_protocols = all
debug_peer_list = smtp.protonmail.ch
I'm getting the following error:
home postfix/smtp[259268]: warning: unsupported SASL client implementation: plain
home postfix/smtp[259268]: fatal: SASL library initialization
home postfix/master[258194]: warning: process /usr/lib/postfix/sbin/smtp pid 259268 exit status 1
home postfix/master[258194]: warning: /usr/lib/postfix/sbin/smtp: bad command startup -- throttling
ChatGPT suggested I install sasl2-bin libsasl2-modules - these are already installed.
This really shouldn't be that hard. I have posted my config files below. Any help would be massively appreciated, as I've spent more than a day getting nowhere.
Thanks in advance.
My sasl_passwd:
smtp.protonmail.ch [email protected]:MYPASSWORD (Stating the obvious, these are not the actual values)
My main.cf file:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
readme_directory = no
# See http://www.postfix.org/COMPATIBILITY_README.html -- default to 3.6 on
# fresh installs.
compatibility_level = 3.6
# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_security_level=may
smtp_tls_CApath=/etc/ssl/certs
smtp_tls_security_level=may
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = host.mydomain.com
mydomain = mydomain.com
masquerade_domains = mydomain.com
smtp_sasl_logging = yes
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_type = plain
smtp_use_tls = yes
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = $mydomain
mydestination = localhost
relayhost = [smtp.protonmail.ch]:587
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = loopback-only
inet_protocols = all
debug_peer_list = smtp.protonmail.ch