The brackets around the ip solved the problem, awesome. However, I can't sendmail out to the public like hotmail. I tried changing the line in /etc/mail/sendmail.cf
O DaemonPortOptions=Port=smtp,Addr=192.168.8.143, Name=MTA
to
O DaemonPortOptions=Port=smtp,Addr=0.0.0.0, Name=MTA so it could be public.
I can still send mail to 192.168.9.85, however, if i try sending mail to my hotmail email account it won't work. I've tried both rcpt to:xxx@hotmail.com and rcpt to:xxx@[hotmail.com]. Here are some of the logs for this error
Code:
May 25 22:16:39 (none) sm-mta[25004]: n4PMEqES024891: to=XXXX@hotmail.com, ctladdr=root@[192.168.8.143] (0/0), delay=00:00:05, xdelay=00:00:00, mailer=esmtp, pri=120011, relay=mx4.hotmail.com. [65.55.92.152], dsn=5.0.0, stat=Service unavailable
May 25 22:16:39 (none) sm-mta[25004]: n4PMEqES024891: n4PMGdEQ025004: DSN: Service unavailable
May 25 22:16:39 (none) sm-mta[25005]: n4PMGdEQ025004: Warning: program /usr/bin/procmail unsafe: No such file or directory
May 25 22:16:39 (none) sm-mta[25005]: n4PMGdEQ025004: SYSERR(root): Cannot exec /usr/bin/procmail: No such file or directory
May 25 22:16:39 (none) sm-mta[25004]: n4PMGdEQ025004: to=root@[192.168.8.143], delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31352, dsn=4.0.0, stat=Operating system error
Or is it because hotmail doesn't take mail by smtp?