ubuntu 16.04 - mails are not forwarded to external email accounts -


i'm new using postfix. tried installing postfix mta ubuntu server. main.cf looks below:

smtpd_banner = $myhostname esmtp $mail_name (ubuntu) biff = no append_dot_mydomain = no readme_directory = no  smtpd_tls_cert_file = /etc/ssl/certs/smtpd.crt smtpd_tls_key_file = /etc/ssl/private/smtpd.key smtpd_use_tls=yes smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache  smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination myhostname = ubuntu alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases mydestination = $myhostname, ubuntu, localhost.localdomain, , localhost relayhost = mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = inet_protocols = myorigin =  home_mailbox = maildir/ mailbox_command = smtpd_sasl_local_domain = smtpd_sasl_auth_enable = yes smtpd_sasl_security_options = noanonymous broken_sasl_auth_clients = yes smtp_tls_security_level = may smtpd_tls_security_level = may smtpd_tls_auth_only = no smtp_tls_note_starttls_offer = yes smtpd_tls_cafile = /etc/ssl/certs/cacert.pem smtpd_tls_loglevel = 1 smtpd_tls_received_header = yes smtpd_tls_session_cache_timeout = 3600s tls_random_source = dev:/dev/urandom 

however, on sending email personal mail mail -s, see below

apr 07 00:56:52 ubuntu postfix/pickup[3901]: 4c0e8ba0029: uid=1000 from=<ubuntu@ubuntu> apr 07 00:56:52 ubuntu postfix/cleanup[7717]: 4c0e8ba0029: message-id=<20170407045652.4c0e8ba0029@ubuntu> apr 07 00:56:52 ubuntu postfix/qmgr[4899]: 4c0e8ba0029: from=<ubuntu@ubuntu>, size=322, nrcpt=1 (queue active) apr 07 00:56:52 ubuntu postfix/smtp[7719]: 4c0e8ba0029: to=<xxxx.xxxx@xxxx.com>, relay=xx.xxxxxxxx.xxxx.com[xx.xxx.xxx.xxx]:25, delay=0.35, delays=0.07/0/0.19/0.08, dsn=2.0.0, status=sent (250 ok:  message 84730726 accepted) apr 07 00:56:52 ubuntu postfix/qmgr[4899]: 4c0e8ba0029: removed 

but mail never delivered personal mail box. appreciate inputs.

the problem server missing fqdn. did set in hosts file , set using "hostname ubuntu.local". mail forwarding works fine now.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -