Sending Local email fails in Jessie 8.11
I am trying to send email to root@localhost with local configuration of postfix in jessie 8.11. However, I am getting error sending email.
--mail.log--
Nov 22 18:39:27 friend postfix/cleanup[2059]: 4B5AC64BE0: message-id=<20181122183927.4B5AC64BE0@localhost>
Nov 22 18:39:27 friend postfix/qmgr[2054]: 4B5AC64BE0: from=<>, size=2037, nrcpt=1 (queue active)
Nov 22 18:39:27 friend postfix/bounce[2063]: 4930164BDE: sender non-delivery notification: 4B5AC64BE0
Nov 22 18:39:27 friend postfix/qmgr[2054]: 4930164BDE: removed
Nov 22 18:39:27 friend postfix/error[2061]: 4B5AC64BE0: to=<root@friend>, relay=none, delay=0, delays=0/0/0/0, dsn=5.0.0, status=bounced (friend)
Nov 22 18:39:27 friend postfix/qmgr[2054]: 4B5AC64BE0: removed
--postfix main.cf--
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
default_transport = error
inet_interfaces = all
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
myhostname = localhost
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
readme_directory = no
recipient_delimiter = +
relay_transport = error
relayhost =
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
--Test sending email --
echo "Test Email message body" | mail -s "Email test subject" root@localhost
|