Outgoing email - postfix ubuntu 14.04

Hi Everyone, great product. I am a new b so please bear with me.
I am trying to set up email after a fresh ERPNext install ver =production. Postfix is installed. I can telnet from localhost to my alternative email successfully. However, when I set up Email account on ERPNext, (see screenshot) and try to save it, my /var/log/mail.log shows
Aug 21 21:39:29 MY DOMAIN HERE postfix/postfix-script[30458]: refreshing the Postfix mail system
Aug 21 21:39:29 MY DOMAIN HERE postfix/master[29358]: reload – version 3.1.0, configuration /etc/postfix
Aug 21 21:47:12 MY DOMAIN HERE postfix/smtpd[30593]: connect from localhost[::1]
Aug 21 21:47:12 MY DOMAIN HERE postfix/smtpd[30593]: lost connection after CONNECT from localhost[::1]
Aug 21 21:47:12 MY DOMAIN HERE postfix/smtpd[30593]: disconnect from localhost[::1] commands=0/0

my main.cf
“TLS parameters”
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

“See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
information on enabling SSL in the smtp client.”

smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_un$
myhostname = MY OWN DOMAIN HERE
debug_peer_list =
debug_peer_level = 3
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = $myhostname, MY OWN DOMAIN HERE.com, MY OWN DOMAIN HERE, localhost.$mydomain
relayhost =
mynetworks =, [::ffff:]/104 [::1]/128
smtpd_recipient_restrictions = permit_mynetworks
smtpd_sasl_exceptions_networks =
mailbox_size_limit = 0
message_size_limit = 20480000
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all

Outgoing email is not going out.
Please can you help.


I also tried gmail service, I am getting the familiar “somthing went wrong dialog”
File “/usr/lib/python2.7/smtplib.py”, line 368, in getreply
raise SMTPServerDisconnected(“Connection unexpectedly closed”)
SMTPServerDisconnected: Connection unexpectedly closed

used my gmail account and my gmail pwd, enable outgoing checked, port 587 gave wrong credential, port 465 gave “SMTPServerDisconnected: Connection unexpectedly closed”

any ideas, I am really stuck guys

@CoffeeHolic maybe you have a blocked firewall port ?

Yes thanks resolved.