Postfix: SASL authentication failure

Hello,
my name is Daniel and I’m from nortern germany. So my english is not the best…
I use IP fire for the first time. I like it but have some trouble with postfix as relay. Hope someone can help me?!
The first problem was, that “newaliases” didn’t create a .db file. But “postmap /etc/postfix/aliases” worked for me.
2nd problem: When i try to send emails to the smtp server (smtp.office365 .com :face_vomiting: ) i get the message:

/var/log/mail:
Mar 10 10:38:07 ipfire postfix/smtp[7210]: warning: SASL authentication failure: No worthy mechs found
Mar 10 10:38:07 ipfire postfix/smtp[7210]: 7DF8FE60394: to=<xx@yy. de>, orig_to=<xx@ yy>, relay=smtp. office365. com[52.97.162.2]:587, delay=13079, delays=13078/0.01/0.42/0, dsn=4.7.0, status=deferred (SASL authentication failed; cannot authenticate to server smtp.office365. com[52.97.162.2]: no mechanism available)

I searched and in some forums the problem was a missing “libsasl”, but there is:

[root@ipfire ~]# ls -l /usr/lib/libsas*
lrwxrwxrwx 1 root root 17 Dec 14 09:10 /usr/lib/libsasl2.so → libsasl2.so.3.0.0
lrwxrwxrwx 1 root root 17 Dec 14 09:10 /usr/lib/libsasl2.so.3 → libsasl2.so.3.0.0
-rwxr-xr-x 1 root root 141128 Dec 14 11:09 /usr/lib/libsasl2.so.3.0.0

Her my main.cf:

compatibility_level = 2
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
data_directory = /var/lib/postfix
mail_owner = postfix
unknown_local_recipient_reject_code = 550
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /etc/postfix
readme_directory = no
inet_protocols = ipv4
meta_directory = /etc/postfix
shlib_directory = no
myhostname = ipfire.xx.local
relayhost = [smtp.office365.com]:587
smtp_sasl_auth_enable = yes
smtp_generic_maps = hash:/etc/postfix/generic
smtp_tls_security_level = may
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
alias_maps = hash:/etc/postfix/aliases

And my systeminfo:

Systemversionen
IPFire-Version: IPFire 2.25 (x86_64) - core141
Pakfire-Version: 2.25-x86_64
Kernel-Version: Linux ipfire.soennebuell.local 4.14.154-ipfire #1 SMP Sat Dec 14 08:38:33 GMT 2019 x86_64 Intel(R) Celeron(R) J4105 CPU @ 1.50GHz GenuineIntel GNU/Linux

Hope that helps to help me :wink:

Thanks a lot!

Daniel