I can configure my sendmail on localhost in such a way to send messages from my domain, but hotmail percieves it as junk problably because 127.0.0.1 apears in the bottom of the headers. In atempt to resolve this conflict I decided to configure sendmail to listen to 24.101.x.x instead of localhost, but I only recieve relay denied messages from sendmail. I dont understand why.

/etc/mail/access:

localhost.localdomain RELAY
localhost RELAY
127.0.0.1 RELAY
spoofed.org RELAY

I get the following when sending email:

RCPT TO <user@hotmail.com> failed: <user@hotmail.com>... Relaying denied

In my sendmail.cf I have the following:

O DaemonPortOptions=Port=smtp,Addr=24.101.x.x, Name=MTA

C{E}root
C{w}spoofed.org

So as sendmail listens on 24.101.x.x, and mail client outgoing server is 24.101.x.x

If I change DomainPortOptions back to 127.0.0.1 the 'relaying denyed' error disapears. But the hotmail problem comes back.

Can someone help me either resolve the relay denyed or tell hotmail I am not junk?