Sendmail functions for GitLab

I hope someone who can help me fix this issue. I have setup the sendmail on my local ubuntu OS, the sendmail function works well on Gmail account.

However, after I tested using my university email, I got the error message of:

Domain of sender address tianhao@ubuntu.ubuntu-domain does not exist.

Here is the configuration I did in /etc/hosts file.

127.0.0.1       localhost.localdomain localhost ubuntu
127.0.1.1       ubuntu.ubuntu-domain ubuntu

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

I have attached the full output result after running the sendmail command.

tianhao@ubuntu:~$ echo -e "To: h.tian@mail.utoronto.ca\nSubject: This is a test\nTest\n" | sendmail -bm -t -v
h.tian@mail.utoronto.ca... Connecting to [127.0.0.1] via relay...
220 localhost.localdomain ESMTP Sendmail 8.14.4/8.14.4/Debian-4.1ubuntu1; Tue, 26 Apr 2016 13:37:15 -0400; (No UCE/UBE) logging access from: localhost.localdomain(OK)-localhost.localdomain [127.0.0.1]
>>> EHLO localhost.localdomain
250-localhost.localdomain Hello localhost.localdomain [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH DIGEST-MD5 CRAM-MD5
250-DELIVERBY
250 HELP
>>> VERB
250 2.0.0 Verbose mode
>>> MAIL From:<tianhao@localhost.localdomain> SIZE=58 AUTH=tianhao@localhost.localdomain
250 2.1.0 <tianhao@localhost.localdomain>... Sender ok
>>> RCPT To:<h.tian@mail.utoronto.ca>
>>> DATA
250 2.1.5 <h.tian@mail.utoronto.ca>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
050 <h.tian@mail.utoronto.ca>... Connecting to a.mx.utoronto.ca. via esmtp...
050 220 bureau21.ns.utoronto.ca ESMTP Sendmail 8.13.8/8.13.8; Tue, 26 Apr 2016 13:37:15 -0400
050 >>> EHLO localhost.localdomain
050 250-bureau21.ns.utoronto.ca Hello [209.171.88.55], pleased to meet you
050 250-ENHANCEDSTATUSCODES
050 250-PIPELINING
050 250-8BITMIME
050 250-SIZE 52428800
050 250-DSN
050 250-STARTTLS
050 250-DELIVERBY
050 250 HELP
050 >>> STARTTLS
050 220 2.0.0 Ready to start TLS
050 >>> EHLO localhost.localdomain
050 250-bureau21.ns.utoronto.ca Hello [209.171.88.55], pleased to meet you
050 250-ENHANCEDSTATUSCODES
050 250-PIPELINING
050 250-8BITMIME
050 250-SIZE 52428800
050 250-DSN
050 250-DELIVERBY
050 250 HELP
050 >>> MAIL From:<tianhao@ubuntu.ubuntu-domain> SIZE=343
050 553 5.1.8 <tianhao@ubuntu.ubuntu-domain>... Domain of sender address tianhao@ubuntu.ubuntu-domain does not exist
050 <tianhao@localhost.localdomain>... Connecting to local...
050 <tianhao@localhost.localdomain>... Sent
250 2.0.0 u3QHbFw6008770 Message accepted for delivery
h.tian@mail.utoronto.ca... Sent (u3QHbFw6008770 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 localhost.localdomain closing connection

Could someone tell if is there any DNS related configuration I need to do?
Thanks!