Bei mir laufen folgende Parameter ohne Probleme:
/etc/postfix/main.cf
#relayhost
relayhost = smtp.strato.de:587
#SASL stuff
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = lmdb:/etc/postfix/sasl_passwd
smtp_use_tls = yes
/etc/postfix/sasl_passwd
#your smtp.com
smtp.strato.de:587 user:password
Dann noch als Empfehlung:
/etc/php8/cli/php.ini
memory_limit = 1024M