Maybe your localhost/server is not allowed to send email.
Check:
/etc/postfix/main.cf
and add permit_mynetworks to smtpd_recipient_restrictions example:
smtpd_recipient_restrictions =
permit_sasl_authenticated,
permit_mynetworks,
reject_unauth_destination,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_unknown_recipient_domain,
check_sender_access hash:/etc/postfix/sender_access
,reject_rbl_client zen.spamhaus.org
,reject_rbl_client bl.spamcop.net
and add to /etc/postfix/mynetworks file
127.0.0.0/8
Reload postfix with:
systemtl reload postfix.service